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++
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