2018-01-02 23:38:38 +00:00
|
|
|
%global commit 5834719fc17d4735fce0102738b87b70255cfd5f
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global commit_date 20171023
|
|
|
|
%global gitrel .%{commit_date}.git%{shortcommit}
|
|
|
|
|
|
|
|
Name: spirv-tools
|
|
|
|
Version: 2016.7
|
2018-01-22 09:17:49 +00:00
|
|
|
Release: 0.3%{?gitrel}%{?dist}
|
2018-01-02 23:38:38 +00:00
|
|
|
Summary: API and commands for processing SPIR-V modules
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/KhronosGroup
|
|
|
|
Source0: %url/SPIRV-Tools/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz
|
|
|
|
Patch0: SPIRV-Tools_staticlib.patch
|
|
|
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
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
|
|
|
|
|
|
|
|
%description
|
|
|
|
The package includes an assembler, binary module parser,
|
|
|
|
disassembler, and validator for SPIR-V..
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2018-01-03 18:30:58 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2018-01-02 23:38:38 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The SPIR-V Tool library contains all of the implementation details
|
|
|
|
driving the SPIR-V assembler, binary module parser, disassembler and
|
|
|
|
validator, and is used in the standalone tools whilst also enabling
|
|
|
|
integration into other code bases directly.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n SPIRV-Tools-%{commit}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__mkdir_p %_target_platform
|
|
|
|
pushd %_target_platform
|
|
|
|
%cmake3 -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
|
|
|
-DSPIRV-Headers_SOURCE_DIR=%{_prefix} ..
|
|
|
|
%{make_build}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{make_install} -C %_target_platform
|
|
|
|
|
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-01-03 18:30:58 +00:00
|
|
|
|
|
|
|
%files devel
|
2018-01-02 23:38:38 +00:00
|
|
|
%{_includedir}/spirv-tools/
|
|
|
|
%{_libdir}/libSPIRV-Tools-link.a
|
|
|
|
%{_libdir}/libSPIRV-Tools-opt.a
|
|
|
|
%{_libdir}/libSPIRV-Tools.a
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|