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