From 7aaab3369fbce4c160df5e7cfee567ab0f5151d99281fcc7cf5bb102f60b486a Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 11 Nov 2021 20:13:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-headers?expand=0&rev=63 --- spirv-headers.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spirv-headers.spec b/spirv-headers.spec index ef6c387..2f3949e 100644 --- a/spirv-headers.spec +++ b/spirv-headers.spec @@ -24,7 +24,7 @@ License: MIT Group: Development/Libraries/C and C++ URL: https://github.com/KhronosGroup/SPIRV-Headers -#Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/%version.tar.gz +#Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/%%version.tar.gz Source: SPIRV-Headers-%version.tar.xz BuildArch: noarch BuildRequires: cmake >= 2.8 @@ -45,18 +45,17 @@ registry. This includes: %autosetup -n SPIRV-Headers-%version %build -# Because Khronos does not know what DESTDIR is. -%cmake -DCMAKE_INSTALL_PREFIX="%buildroot/%_prefix" +%cmake %cmake_build %install -pushd build/ -make install-headers -popd +%cmake_install %fdupes %buildroot/%_prefix %files %_includedir/spirv/ +%_datadir/cmake/ +%_datadir/pkgconfig/*.pc %license LICENSE %changelog