[packages/Vulkan-Loader] new package
jajcus
jajcus at pld-linux.org
Thu May 23 20:13:47 CEST 2019
commit be90d7c75b58b3c8705fe9b2b676c1b3ce2e86ff
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Thu May 23 20:13:05 2019 +0200
new package
To replace vulkan-loader built from the vulkan-sdk package. Now from the
official Khronos repository.
Vulkan-Loader.spec | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 110 insertions(+)
---
diff --git a/Vulkan-Loader.spec b/Vulkan-Loader.spec
new file mode 100644
index 0000000..de94c14
--- /dev/null
+++ b/Vulkan-Loader.spec
@@ -0,0 +1,110 @@
+
+# Conditional build:
+%bcond_with tests # run tests (requires Google Test)
+%bcond_without wayland # Wayland support in loader
+%bcond_without x11 # XLib support in loader
+
+%define api_version 1.1.107
+
+Summary: Vulkan API loader
+Summary(pl.UTF-8): Biblioteka wczytująca sterowniki Vulkan
+Name: Vulkan-Loader
+Version: %{api_version}
+Release: 1
+License: Apache v2.0, parts MIT-like
+Group: Development
+Source0: https://github.com/KhronosGroup/Vulkan-Loader/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: aec66f05e2d16794f9365aecce01f60e
+URL: https://github.com/KhronosGroup/Vulkan-Loader/
+BuildRequires: cmake >= 3.4
+%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
+BuildRequires: Vulkan-Headers = %{api_version}
+%{?with_x11:BuildRequires: libxcb-devel}
+BuildRequires: pkgconfig
+BuildRequires: python3 >= 3
+BuildRequires: python3-lxml
+BuildRequires: python3-modules >= 3
+%{?with_wayland:BuildRequires: wayland-devel}
+%{?with_x11:BuildRequires: xorg-lib-libX11-devel}
+Provides: vulkan(loader) = %{api_version}
+Obsoletes: vulkan-loader
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Common loader for Vulkan API drivers.
+
+%description -l pl.UTF-8
+Wspólna biblioteka wczytująca sterowniki Vulkan.
+
+%package devel
+Summary: Development files files for the Vulkan loader
+Summary(pl.UTF-8): Pliki nagłówkowe loadera Vulkan
+Group: Development/Libraries
+Requires: Vulkan-Headers = %{api_version}
+Requires: Vulkan-Loader = %{version}-%{release}
+Obsoletes: vulkan-devel < 1.1.106
+
+%description devel
+Development files for the Vulkan loader.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe loadera Vulkan.
+
+%prep
+%setup -qn %{name}-%{version}
+
+%build
+install -d build
+cd build
+
+# .pc file creation expect CMAKE_INSTALL_LIBDIR to be relative (to CMAKE_INSTALL_PREFIX)
+%cmake .. \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib} \
+ -DBUILD_TESTS=%{?with_tests:ON}%{!?with_tests:OFF} \
+ -DBUILD_WSI_WAYLAND_SUPPORT=%{?with_wayland:ON}%{!?with_wayland:OFF} \
+ -DBUILD_WSI_XLIB_SUPPORT=%{?with_x11:ON}%{!?with_x11:OFF} \
+ -DBUILD_WSI_XCB_SUPPORT=%{?with_x11:ON}%{!?with_x11:OFF}
+
+%{__make}
+
+%if %{with tests}
+cd tests
+LC_ALL=C.UTF-8 VK_LAYER_PATH=layers LD_LIBRARY_PATH=../loader:layers ./run_loader_tests.sh
+cd ..
+%endif
+
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_datadir}}/vulkan/{icd.d,explicit_layer.d,implicit_layer.d}
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md GOVERNANCE.md CONTRIBUTING.md
+%dir %{_sysconfdir}/vulkan
+%dir %{_sysconfdir}/vulkan/icd.d
+%dir %{_sysconfdir}/vulkan/explicit_layer.d
+%dir %{_sysconfdir}/vulkan/implicit_layer.d
+%dir %{_datadir}/vulkan
+%dir %{_datadir}/vulkan/icd.d
+%dir %{_datadir}/vulkan/explicit_layer.d
+%dir %{_datadir}/vulkan/implicit_layer.d
+%attr(755,root,root) %{_libdir}/libvulkan.so.1.*.*
+%attr(755,root,root) %ghost %{_libdir}/libvulkan.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libvulkan.so
+%{_pkgconfigdir}/vulkan.pc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Vulkan-Loader.git/commitdiff/be90d7c75b58b3c8705fe9b2b676c1b3ce2e86ff
More information about the pld-cvs-commit
mailing list