[packages/vulkan-headers] new package

jajcus jajcus at pld-linux.org
Thu May 23 19:59:19 CEST 2019


commit 1ca687d2d45ae76a581f3cfae2b9afa79b284287
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Thu May 23 19:58:38 2019 +0200

    new package
    
    to replace the headers from vulkan-devel built from the vulkan-sdk
    package

 vulkan-headers.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/vulkan-headers.spec b/vulkan-headers.spec
new file mode 100644
index 0000000..1ad851f
--- /dev/null
+++ b/vulkan-headers.spec
@@ -0,0 +1,51 @@
+
+%define	api_version	1.1.107
+
+Summary:	Vulkan API headers and registry
+Summary(pl.UTF-8):	Pliki nagłówkowe i rejestr API Vulkan
+Name:		vulkan-headers
+Version:	%{api_version}
+Release:	1
+License:	Apache v2.0, parts MIT-like
+Group:		Development
+Source0:	https://github.com/KhronosGroup/Vulkan-Headers/archive/v%{version}/Vulkan-Headers-%{version}.tar.gz
+# Source0-md5:	98dd2be8b74dff529085f078863ef407
+URL:		https://github.com/KhronosGroup/Vulkan-Headers/
+BuildRequires:	cmake >= 2.8.11
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Header files and registry for Vulkan API.
+
+%description -l pl.UTF-8
+Pliki nagłówkowe i rejestr API Vulkan.
+
+%prep
+%setup -qn Vulkan-Headers-%{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}
+
+%{__make}
+
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}/vulkan
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_includedir}/vulkan
+%{_datadir}/vulkan/registry
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vulkan-headers.git/commitdiff/1ca687d2d45ae76a581f3cfae2b9afa79b284287



More information about the pld-cvs-commit mailing list