add unused cmake files
This commit is contained in:
parent
6dbfeeafdb
commit
376fbbb3d3
12
fix-cmake-install.patch
Normal file
12
fix-cmake-install.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up SPIRV-Tools-3e4abc9ac382b6fc7a88316a700652404b6fb9f7/CMakeLists.txt.dma SPIRV-Tools-3e4abc9ac382b6fc7a88316a700652404b6fb9f7/CMakeLists.txt
|
||||||
|
--- SPIRV-Tools-3e4abc9ac382b6fc7a88316a700652404b6fb9f7/CMakeLists.txt.dma 2019-11-12 13:58:34.347573658 +1000
|
||||||
|
+++ SPIRV-Tools-3e4abc9ac382b6fc7a88316a700652404b6fb9f7/CMakeLists.txt 2019-11-12 13:58:47.166919110 +1000
|
||||||
|
@@ -215,7 +215,7 @@ if(ENABLE_SPIRV_TOOLS_INSTALL)
|
||||||
|
endmacro()
|
||||||
|
else()
|
||||||
|
macro(spvtools_config_package_dir TARGET PATH)
|
||||||
|
- set(${PATH} lib/cmake/${TARGET})
|
||||||
|
+ set(${PATH} ${CMAKE_INSTALL_LIBDIR}/cmake/${TARGET})
|
||||||
|
endmacro()
|
||||||
|
endif()
|
||||||
|
|
@ -12,6 +12,8 @@ License: ASL 2.0
|
|||||||
URL: https://github.com/KhronosGroup/SPIRV-Tools
|
URL: https://github.com/KhronosGroup/SPIRV-Tools
|
||||||
Source0: %url/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz
|
Source0: %url/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz
|
||||||
|
|
||||||
|
Patch0: fix-cmake-install.patch
|
||||||
|
|
||||||
BuildRequires: cmake3
|
BuildRequires: cmake3
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
@ -59,7 +61,6 @@ popd
|
|||||||
%install
|
%install
|
||||||
%ninja_install -C %_target_platform
|
%ninja_install -C %_target_platform
|
||||||
|
|
||||||
rm -rf %{buildroot}/usr/lib/cmake
|
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -83,6 +84,7 @@ rm -rf %{buildroot}/usr/lib/cmake
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/spirv-tools/
|
%{_includedir}/spirv-tools/
|
||||||
|
%{_libdir}/cmake/*
|
||||||
%{_libdir}/pkgconfig/SPIRV-Tools-shared.pc
|
%{_libdir}/pkgconfig/SPIRV-Tools-shared.pc
|
||||||
%{_libdir}/pkgconfig/SPIRV-Tools.pc
|
%{_libdir}/pkgconfig/SPIRV-Tools.pc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user