[packages/spirv-headers] - updated to 1.5.5 from sdk-1.2.198.0 tag - use cmake to install (to get cmake and pkgconfig files)
qboosh
qboosh at pld-linux.org
Sat Dec 25 13:32:38 CET 2021
commit 448c75f634d738accca914a35ebe8f8e9dcf2cf4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 25 13:33:25 2021 +0100
- updated to 1.5.5 from sdk-1.2.198.0 tag
- use cmake to install (to get cmake and pkgconfig files)
spirv-headers.spec | 31 ++++++++++++++++++++++---------
1 file changed, 22 insertions(+), 9 deletions(-)
---
diff --git a/spirv-headers.spec b/spirv-headers.spec
index b00d5b5..07476bb 100644
--- a/spirv-headers.spec
+++ b/spirv-headers.spec
@@ -1,16 +1,20 @@
-%define commit 29817199b7069bac971e5365d180295d4b077ebe
+# (commit 814e728b30ddd0f4509233099a3ad96fd4318c07)
+%define gitref sdk-1.2.198.0
Summary: SPIR-V headers
Summary(pl.UTF-8): Pliki nagłówkowe SPIR-V
Name: spirv-headers
-Version: 1.5.4
-Release: 3
+# see CMakeLists.txt /VERSION or include/spirv/unified1/spirv.h /SPV_VERSION + /SPV_REVISION (whichever is greater)
+Version: 1.5.5
+Release: 1
License: MIT
Group: Libraries
-#Source0Download: https://github.com/KhronosGroup/SPIRV-Headers/releases
-Source0: https://github.com/KhronosGroup/SPIRV-Headers/archive/%{commit}/%{name}-%{commit}.tar.gz
-# Source0-md5: 6274b7fbd13c25e42d86126c734a6876
+#Source0Download: https://github.com/KhronosGroup/SPIRV-Headers/tags
+Source0: https://github.com/KhronosGroup/SPIRV-Headers/archive/%{gitref}/SPIRV-Headers-%{gitref}.tar.gz
+# Source0-md5: 298b70404ee9b6482397125c920d3c6b
URL: https://github.com/KhronosGroup/SPIRV-Headers
+BuildRequires: cmake >= 3.0
+BuildRequires: rpmbuild(macros) >= 1.605
Conflicts: spirv-tools-devel < v2016.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -30,13 +34,20 @@ Obejmują one:
SPIR-V oraz rozszerzonego zestawu instrukcji GLSL.std.450.
%prep
-%setup -qn SPIRV-Headers-%{commit}
+%setup -qn SPIRV-Headers-%{gitref}
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}
-cp -a include/spirv $RPM_BUILD_ROOT%{_includedir}/spirv
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
@@ -45,3 +56,5 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc LICENSE README.md
%{_includedir}/spirv
+%{_datadir}/cmake/SPIRV-Headers
+%{_npkgconfigdir}/SPIRV-Headers.pc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/spirv-headers.git/commitdiff/448c75f634d738accca914a35ebe8f8e9dcf2cf4
More information about the pld-cvs-commit
mailing list