2020-07-08 14:57:00 +00:00
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
2023-06-20 02:23:04 +00:00
|
|
|
%global sdkver 1.3.250.0
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
Name: spirv-tools
|
2023-04-20 07:19:14 +00:00
|
|
|
Version: 2023.2
|
2022-11-09 03:04:20 +00:00
|
|
|
Release: %autorelease
|
2018-01-02 23:38:38 +00:00
|
|
|
Summary: API and commands for processing SPIR-V modules
|
|
|
|
|
|
|
|
License: ASL 2.0
|
2018-02-09 23:52:54 +00:00
|
|
|
URL: https://github.com/KhronosGroup/SPIRV-Tools
|
2022-06-16 20:37:36 +00:00
|
|
|
Source0: %url/archive/sdk-%{sdkver}.tar.gz#/SPIRV-Tools-sdk-%{sdkver}.tar.gz
|
2018-01-02 23:38:38 +00:00
|
|
|
|
2022-02-15 22:21:55 +00:00
|
|
|
Patch0: fix-gcc12-build.patch
|
|
|
|
|
2018-01-02 23:38:38 +00:00
|
|
|
BuildRequires: cmake3
|
|
|
|
BuildRequires: gcc-c++
|
2018-02-09 12:26:22 +00:00
|
|
|
BuildRequires: ninja-build
|
2019-02-20 16:25:42 +00:00
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
BuildRequires: python36-devel
|
|
|
|
%else
|
2018-09-18 20:11:58 +00:00
|
|
|
BuildRequires: python3-devel
|
2019-02-20 16:25:42 +00:00
|
|
|
%endif
|
2018-07-23 10:21:20 +00:00
|
|
|
BuildRequires: python3-rpm-macros
|
2018-01-02 23:38:38 +00:00
|
|
|
BuildRequires: spirv-headers-devel
|
2018-02-09 22:31:47 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The package includes an assembler, binary module parser,
|
|
|
|
disassembler, and validator for SPIR-V..
|
|
|
|
|
2018-02-09 22:31:47 +00:00
|
|
|
%package libs
|
|
|
|
Summary: Library files for %{name}
|
2018-04-24 10:10:14 +00:00
|
|
|
Provides: %{name}-libs%{?_isa} = %{version}
|
2018-02-09 22:31:47 +00:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
library files for %{name}
|
|
|
|
|
2018-01-02 23:38:38 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2018-02-09 22:31:47 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%description devel
|
2018-02-09 22:31:47 +00:00
|
|
|
Development files for %{name}
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%prep
|
2022-06-16 20:37:36 +00:00
|
|
|
%autosetup -p1 -n SPIRV-Tools-sdk-%{sdkver}
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake3 -DCMAKE_BUILD_TYPE=Release \
|
2018-02-09 23:52:54 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
2018-02-09 12:26:22 +00:00
|
|
|
-DSPIRV-Headers_SOURCE_DIR=%{_prefix} \
|
2018-07-23 10:12:41 +00:00
|
|
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
2020-11-03 03:14:47 +00:00
|
|
|
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
|
2020-07-08 14:57:00 +00:00
|
|
|
-GNinja
|
|
|
|
%cmake3_build
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%install
|
2020-07-08 14:57:00 +00:00
|
|
|
%cmake3_install
|
2018-01-02 23:38:38 +00:00
|
|
|
|
2018-02-09 22:31:47 +00:00
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
2018-01-03 18:30:58 +00:00
|
|
|
%files
|
2018-01-02 23:38:38 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CHANGES
|
|
|
|
%{_bindir}/spirv-as
|
|
|
|
%{_bindir}/spirv-cfg
|
|
|
|
%{_bindir}/spirv-dis
|
|
|
|
%{_bindir}/spirv-lesspipe.sh
|
|
|
|
%{_bindir}/spirv-link
|
2021-09-07 06:39:10 +00:00
|
|
|
%{_bindir}/spirv-lint
|
2023-06-20 09:38:09 +00:00
|
|
|
%{_bindir}/spirv-objdump
|
2018-01-02 23:38:38 +00:00
|
|
|
%{_bindir}/spirv-opt
|
2019-02-04 07:10:08 +00:00
|
|
|
%{_bindir}/spirv-reduce
|
2018-01-02 23:38:38 +00:00
|
|
|
%{_bindir}/spirv-val
|
2018-02-09 22:31:47 +00:00
|
|
|
|
|
|
|
%files libs
|
2022-04-27 03:28:46 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-diff.so
|
2018-02-09 20:56:43 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-link.so
|
2021-09-07 06:39:10 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-lint.so
|
2018-02-09 20:56:43 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-opt.so
|
2020-08-04 21:49:51 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools.so
|
2019-02-04 07:10:08 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-reduce.so
|
2020-08-04 04:27:43 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-shared.so
|
2018-01-03 18:30:58 +00:00
|
|
|
|
|
|
|
%files devel
|
2018-01-02 23:38:38 +00:00
|
|
|
%{_includedir}/spirv-tools/
|
2019-11-12 03:59:56 +00:00
|
|
|
%{_libdir}/cmake/*
|
2018-04-24 09:23:26 +00:00
|
|
|
%{_libdir}/pkgconfig/SPIRV-Tools-shared.pc
|
2018-02-09 20:56:43 +00:00
|
|
|
%{_libdir}/pkgconfig/SPIRV-Tools.pc
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-11-09 03:04:20 +00:00
|
|
|
%autochangelog
|