1
0
forked from pool/spirv-headers
Jan Engelhardt 2021-11-11 20:13:13 +00:00 committed by Git OBS Bridge
parent bf75533469
commit 7aaab3369f

View File

@ -24,7 +24,7 @@ License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://github.com/KhronosGroup/SPIRV-Headers 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 Source: SPIRV-Headers-%version.tar.xz
BuildArch: noarch BuildArch: noarch
BuildRequires: cmake >= 2.8 BuildRequires: cmake >= 2.8
@ -45,18 +45,17 @@ registry. This includes:
%autosetup -n SPIRV-Headers-%version %autosetup -n SPIRV-Headers-%version
%build %build
# Because Khronos does not know what DESTDIR is. %cmake
%cmake -DCMAKE_INSTALL_PREFIX="%buildroot/%_prefix"
%cmake_build %cmake_build
%install %install
pushd build/ %cmake_install
make install-headers
popd
%fdupes %buildroot/%_prefix %fdupes %buildroot/%_prefix
%files %files
%_includedir/spirv/ %_includedir/spirv/
%_datadir/cmake/
%_datadir/pkgconfig/*.pc
%license LICENSE %license LICENSE
%changelog %changelog