File vulkanscenegraph.spec of Package VulkanSceneGraph
%define soname 11
Name: vulkanscenegraph
Version: 1.1.11
Release: 1
Summary: Vulkan-based scene graph library
Group: Development/Libraries/C and C++
License: MIT
URL: https://github.com/vsg-dev/VulkanSceneGraph
Source0: vulkanscenegraph-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: vulkan-devel
BuildRequires: glslang-devel
BuildRequires: spirv-tools
BuildRequires: libxcb-devel
BuildRequires: cmake
BuildRequires: gcc-c++
%description
VulkanSceneGraph (VSG), is a modern, cross platform, high performance
scene graph library built upon Vulkan graphics/compute API. The
software is written in C++17, and follows the CppCoreGuidelines and
FOSS Best Practices.
%package -n lib%{name}%{soname}
Summary: Library files for %{name}
Group: Development/Libraries/C and C++
%description -n lib%{name}%{soname}
The lib%{name}%{soname} package contains runtime libraries for
developing applications that use %{name}.
%package -n lib%{name}-devel
Summary: Headers and development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{name}%{soname} = %{version}
Requires: vulkan-devel
Requires: glslang-devel
Requires: libxcb-devel
%description -n lib%{name}-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n vulkanscenegraph-%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
%clean
%post -n lib%{name}%{soname}
/sbin/ldconfig
%postun -n lib%{name}%{soname}
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README.md LICENSE.md
%files -n lib%{name}%{soname}
%{_libdir}/libvsg*.so.*
%files -n lib%{name}-devel
%defattr(-,root,root,-)
%{_includedir}/vsg
%{_libdir}/libvsg*.so
%{_libdir}/cmake/vsg
%changelog