diff --git a/sdk-1.1.92.0.tar.gz b/sdk-1.1.92.0.tar.gz new file mode 100644 index 0000000..5c037ba Binary files /dev/null and b/sdk-1.1.92.0.tar.gz differ diff --git a/vulkan-loader.spec b/vulkan-loader.spec new file mode 100644 index 0000000..b0f52d9 --- /dev/null +++ b/vulkan-loader.spec @@ -0,0 +1,63 @@ +Name: vulkan-loader +Version: 1.1.92.0 +Release: 2 +Summary: A desktop loader for Vulkan ICD +License: ASL 2.0 +URL: https://github.com/KhronosGroup/Vulkan-Loader +Source0: %url/archive/sdk-%{version}.tar.gz#/Vulkan-Loader-sdk-%{version}.tar.gz + +BuildRequires: gcc-c++ cmake3 ninja-build python%{python3_pkgversion}-devel vulkan-headers = %{version} +BuildRequires: pkgconfig(wayland-client) pkgconfig(wayland-cursor) pkgconfig(wayland-server) +BuildRequires: pkgconfig(wayland-egl) pkgconfig(x11) pkgconfig(xrandr) + +Provides: vulkan = %{version}-%{release} vulkan-filesystem = %{version}-%{release} +Provides: vulkan%{?_isa} = %{version}-%{release} +Obsoletes: vulkan < %{version}-%{release} vulkan-filesystem < %{version}-%{release} + +Requires: mesa-vulkan-drivers + +%description +This package supplies system like Windows, Linux, and MacOS +with the Khronos official Vulkan ICD desktop loader. + +%package devel +Summary: Libraries and header files for developing applications that use vulkan-loader +Requires: %{name} = %{version}-%{release} vulkan-headers +Provides: vulkan-devel%{?_isa} = %{version}-%{release} +Provides: vulkan-devel = %{version}-%{release} +Obsoletes: vulkan-devel < %{version}-%{release} + +%description devel +Libraries and header files for developing applications that use vulkan-loader. + +%prep +%autosetup -n Vulkan-Loader-sdk-%{version} -p1 + +%build +%cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release . +%ninja_build + +%install +%ninja_install + +install -d %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \ + %{buildroot}%{_datadir}/vulkan/{explicit,implicit}_layer.d/ \ + %{buildroot}{%{_sysconfdir},%{_datadir}}/vulkan/icd.d + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license LICENSE.txt COPYRIGHT.txt +%doc README.md CONTRIBUTING.md +%dir %{_sysconfdir}/{vulkan/,vulkan/explicit_layer.d/,vulkan/icd.d/,vulkan/implicit_layer.d/} +%dir %{_datadir}/{vulkan/,vulkan/explicit_layer.d/,vulkan/icd.d/,vulkan/implicit_layer.d/} +%{_libdir}/*.so.* + +%files devel +%{_libdir}/pkgconfig/vulkan.pc +%{_libdir}/*.so + +%changelog +* Wed Jan 8 2020 wutao - 1.1.92.0-2 +- Package init