spirv-tools/spirv-tools.spec

118 lines
3.4 KiB
RPMSpec
Raw Normal View History

2018-04-24 09:23:26 +00:00
%global commit 26a698c34788bb69123a1f3789970a16cf4d9641
2018-01-02 23:38:38 +00:00
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2018-04-24 09:23:26 +00:00
%global commit_date 20180407
2018-01-02 23:38:38 +00:00
%global gitrel .%{commit_date}.git%{shortcommit}
Name: spirv-tools
Version: 2018.3.0
Release: 0.1%{?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
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
2018-01-02 23:38:38 +00:00
BuildRequires: python2-devel
2018-01-09 12:12:35 +00:00
BuildRequires: python2-simplejson
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}
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
%autosetup -p1 -n SPIRV-Tools-%{commit}
%build
%__mkdir_p %_target_platform
pushd %_target_platform
%cmake3 -DCMAKE_BUILD_TYPE=Release \
2018-02-09 12:26:22 +00:00
-DPYTHON_EXECUTABLE:FILEPATH=%{_bindir}/python%{python2_version} \
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} \
-GNinja ..
%ninja_build
2018-01-02 23:38:38 +00:00
popd
%install
2018-02-09 12:26:22 +00:00
%ninja_install -C %_target_platform
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
%{_bindir}/spirv-stats
%{_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
2018-04-24 09:23:26 +00:00
%{_libdir}/libSPIRV-Tools-shared.so
2018-02-09 20:56:43 +00:00
%{_libdir}/libSPIRV-Tools.so
2018-01-03 18:30:58 +00:00
%files devel
2018-01-02 23:38:38 +00:00
%{_includedir}/spirv-tools/
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
* 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
* 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