]> git.pld-linux.org Git - packages/spirv-headers.git/commitdiff
- updated to 1.5.5 from sdk-1.2.198.0 tag auto/th/spirv-headers-1.5.5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 Dec 2021 12:33:25 +0000 (13:33 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 Dec 2021 12:33:25 +0000 (13:33 +0100)
- use cmake to install (to get cmake and pkgconfig files)

spirv-headers.spec

index b00d5b5d0876260c94746055cd9e684c9027beb6..07476bb663b3279cf8bfdf4bae098f44218c56a4 100644 (file)
@@ -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
This page took 0.183795 seconds and 4 git commands to generate.