2020-07-08 14:57:00 +00:00
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
2020-11-02 06:20:35 +00:00
|
|
|
%global commit f7da527757140ae701be58274ce6db2f4234d9ff
|
2019-11-12 03:40:00 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
2020-11-02 06:20:35 +00:00
|
|
|
%global commit_date 20201031
|
2019-11-12 03:40:00 +00:00
|
|
|
%global gitrel .%{commit_date}.git%{shortcommit}
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
Name: spirv-tools
|
2020-08-04 04:12:56 +00:00
|
|
|
Version: 2020.5
|
2020-11-02 06:20:35 +00:00
|
|
|
Release: 2%{?gitrel}%{?dist}
|
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
|
2019-08-01 03:30:32 +00:00
|
|
|
Source0: %url/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz
|
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
|
2019-08-01 03:30:32 +00:00
|
|
|
%autosetup -p1 -n SPIRV-Tools-%{commit}
|
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 02:27:05 +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
|
|
|
|
%{_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
|
2018-02-09 20:56:43 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-link.so
|
|
|
|
%{_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
|
2020-11-02 06:20:35 +00:00
|
|
|
* Mon Nov 02 2020 Dave Airlie <airlied@redhat.com> - 2020.5-2.20201031.gitf7da5277
|
|
|
|
- update to latest spirv-tools
|
|
|
|
|
2020-08-04 04:12:56 +00:00
|
|
|
* Tue Aug 04 2020 Dave Airlie <airlied@redhat.com> - 2029.5-1.20200803.git92a71657
|
2020-08-04 03:38:58 +00:00
|
|
|
- update to latest spirv-tools
|
|
|
|
|
2020-07-29 11:18:35 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.5-3.20200421.git67f4838
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-04-22 00:20:29 +00:00
|
|
|
* Wed Apr 22 2020 Dave Airlie <airlied@redhat.cvom> - 2019.5-2
|
|
|
|
- git snapshot for newer glslang/validation layers
|
|
|
|
|
2020-01-28 23:40:13 +00:00
|
|
|
* Wed Jan 29 2020 Dave Airlie <airlied@redhat.com> - 2019.5-1
|
|
|
|
- git snapshot for newer glslang/validation layers
|
|
|
|
|
2019-11-12 03:40:00 +00:00
|
|
|
* Tue Nov 12 2019 Dave Airlie <airlied@redhat.com> - 2019.4-1
|
|
|
|
- git snapshot for newer glslang/validation layers
|
|
|
|
|
2019-08-01 03:30:32 +00:00
|
|
|
* Thu Aug 01 2019 Dave Airlie <airlied@redhat.com> - 2019.4-0.1
|
|
|
|
- git snapshot to let newer vulkan validation layers build
|
2019-08-02 00:30:55 +00:00
|
|
|
- stats removed upstream
|
2019-08-01 03:30:32 +00:00
|
|
|
|
2019-07-26 23:55:57 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-10 15:43:41 +00:00
|
|
|
* Mon Jun 10 13:46:33 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.3-1
|
|
|
|
- Release 2019.3
|
|
|
|
|
2019-03-06 20:02:11 +00:00
|
|
|
* Thu Mar 07 2019 Dave Airlie <airlied@redhat.com> - 2019.1-2
|
|
|
|
- Add patch to let vulkan-validation-layers build
|
|
|
|
|
2019-02-04 07:10:08 +00:00
|
|
|
* Mon Feb 04 2019 Dave Airlie <airlied@redhat.com> - 2019.1-1
|
2019-02-04 06:51:38 +00:00
|
|
|
- Update to 2019.1 release
|
|
|
|
|
2019-02-03 08:21:27 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-23 10:12:41 +00:00
|
|
|
* Mon Jul 23 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.4-1
|
|
|
|
- Update to 2018.4 release
|
|
|
|
|
2018-07-14 06:34:16 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.3.0-0.3.20180407.git26a698c
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-25 20:04:05 +00:00
|
|
|
* Mon Jun 25 2018 Dave Airlie <airlied@redhat.com> - 2018.3.0-0.2.20180407.git26a698c
|
|
|
|
- Move to python3 and drop the simplejson buildreq.
|
|
|
|
|
2018-04-24 10:10:14 +00:00
|
|
|
* Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.3.0-0.1.20180407.git26a698c
|
|
|
|
- Bump version to 2018.3.0 to match .pc files
|
|
|
|
|
2018-04-24 09:37:34 +00:00
|
|
|
* Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.4.20180407.git26a698c
|
|
|
|
- Bump provides to 2018.3.0
|
|
|
|
|
2018-04-24 09:23:26 +00:00
|
|
|
* Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.3.20180407.git26a698c
|
|
|
|
- Update for vulkan 1.1.73.0
|
|
|
|
|
2018-02-14 11:36:18 +00:00
|
|
|
* Wed Feb 14 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.2.20180205.git9e19fc0
|
|
|
|
- Add isa to the provides
|
|
|
|
|
2018-02-10 00:03:28 +00:00
|
|
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.1.20180205.git9e19fc0
|
|
|
|
- Fix version
|
2018-02-09 23:52:54 +00:00
|
|
|
- Fix pkgconfig file
|
|
|
|
- Add version provides to -libs package
|
|
|
|
|
2018-02-09 20:56:43 +00:00
|
|
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.5.20180205.git9e19fc0
|
|
|
|
- Update for vulkan 1.0.68.0
|
|
|
|
- Try building as shared object
|
2018-02-09 22:31:47 +00:00
|
|
|
- Split libs into -libs subpackage
|
2018-02-09 20:56:43 +00:00
|
|
|
|
2018-02-09 12:26:22 +00:00
|
|
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.4.20171023.git5834719
|
|
|
|
- Use ninja to build
|
|
|
|
|
2018-01-22 09:17:49 +00:00
|
|
|
* Mon Jan 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.3.20171023.git5834719
|
|
|
|
- Add python prefix to fix the stupid Bodhi tests
|
|
|
|
|
2018-01-03 18:30:58 +00:00
|
|
|
* Wed Jan 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.2.20171023.git5834719
|
|
|
|
- Split binaries into main package
|
|
|
|
|
2018-01-02 23:38:38 +00:00
|
|
|
* Thu Jul 13 2017 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.1.20171023.git5834719
|
|
|
|
- First build
|
|
|
|
|