[12440] | 1 | #global commit 67f4838659f475d618c120e13d1a196d7e00ba4b |
---|
| 2 | #global shortcommit %(c=%{commit}; echo ${c:0:7}) |
---|
| 3 | #global commit_date 20200421 |
---|
| 4 | #global gitrel .%{commit_date}.git%{shortcommit} |
---|
| 5 | |
---|
| 6 | Name: spirv-tools |
---|
| 7 | Summary: API and commands for processing SPIR-V modules |
---|
| 8 | Version: 2020.3 |
---|
| 9 | Release: 1%{?gitrel}%{?_dist_release} |
---|
| 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | |
---|
| 13 | License: ASL 2.0 |
---|
| 14 | URL: https://github.com/KhronosGroup/SPIRV-Tools |
---|
| 15 | %if 0%{?commit_date} |
---|
| 16 | Source0: %url/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz |
---|
| 17 | %else |
---|
| 18 | Source0: %url/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
---|
| 19 | %endif |
---|
| 20 | |
---|
| 21 | BuildRequires: cmake |
---|
| 22 | BuildRequires: gcc-c++ |
---|
| 23 | BuildRequires: ninja |
---|
| 24 | BuildRequires: python3-devel |
---|
| 25 | BuildRequires: python3-rpm-macros |
---|
| 26 | BuildRequires: spirv-headers-devel |
---|
| 27 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | The package includes an assembler, binary module parser, |
---|
| 31 | disassembler, and validator for SPIR-V.. |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | %package libs |
---|
| 35 | Summary: Library files for %{name} |
---|
| 36 | Provides: %{name}-libs%{?_isa} = %{version} |
---|
| 37 | |
---|
| 38 | %description libs |
---|
| 39 | library files for %{name} |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Development files for %{name} |
---|
| 44 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 45 | |
---|
| 46 | %description devel |
---|
| 47 | Development files for %{name} |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %if 0%{?commit_date} |
---|
| 52 | %autosetup -p1 -n SPIRV-Tools-%{commit} |
---|
| 53 | %else |
---|
| 54 | %autosetup -p1 -n SPIRV-Tools-%{version} |
---|
| 55 | %endif |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %build |
---|
| 59 | %__mkdir_p %_target_platform |
---|
| 60 | pushd %_target_platform |
---|
| 61 | %cmake3 -DCMAKE_BUILD_TYPE=Release \ |
---|
| 62 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
---|
| 63 | -DSPIRV-Headers_SOURCE_DIR=%{_prefix} \ |
---|
| 64 | -DPYTHON_EXECUTABLE=%{__python3} \ |
---|
| 65 | -GNinja .. |
---|
| 66 | %ninja_build |
---|
| 67 | popd |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %install |
---|
| 71 | %ninja_install -C %_target_platform |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %post libs -p /sbin/ldconfig |
---|
| 75 | %postun libs -p /sbin/ldconfig |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | %files |
---|
| 79 | %license LICENSE |
---|
| 80 | %doc README.md CHANGES |
---|
| 81 | %{_bindir}/spirv-as |
---|
| 82 | %{_bindir}/spirv-cfg |
---|
| 83 | %{_bindir}/spirv-dis |
---|
| 84 | %{_bindir}/spirv-lesspipe.sh |
---|
| 85 | %{_bindir}/spirv-link |
---|
| 86 | %{_bindir}/spirv-opt |
---|
| 87 | %{_bindir}/spirv-reduce |
---|
| 88 | %{_bindir}/spirv-val |
---|
| 89 | |
---|
| 90 | %files libs |
---|
| 91 | %{_libdir}/libSPIRV-Tools-link.so |
---|
| 92 | %{_libdir}/libSPIRV-Tools-opt.so |
---|
| 93 | %{_libdir}/libSPIRV-Tools-shared.so |
---|
| 94 | %{_libdir}/libSPIRV-Tools-reduce.so |
---|
| 95 | %{_libdir}/libSPIRV-Tools.so |
---|
| 96 | |
---|
| 97 | %files devel |
---|
| 98 | %{_includedir}/spirv-tools/ |
---|
| 99 | %{_libdir}/cmake/* |
---|
| 100 | %{_libdir}/pkgconfig/SPIRV-Tools-shared.pc |
---|
| 101 | %{_libdir}/pkgconfig/SPIRV-Tools.pc |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %changelog |
---|
| 105 | * Wed Jul 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2020.3-1 |
---|
| 106 | - initial build for Vine Linux. |
---|
| 107 | - new upstream release. |
---|
| 108 | |
---|
| 109 | * Wed Apr 22 2020 Dave Airlie <airlied@redhat.cvom> - 2019.5-2 |
---|
| 110 | - git snapshot for newer glslang/validation layers |
---|
| 111 | |
---|
| 112 | * Wed Jan 29 2020 Dave Airlie <airlied@redhat.com> - 2019.5-1 |
---|
| 113 | - git snapshot for newer glslang/validation layers |
---|
| 114 | |
---|
| 115 | * Tue Nov 12 2019 Dave Airlie <airlied@redhat.com> - 2019.4-1 |
---|
| 116 | - git snapshot for newer glslang/validation layers |
---|
| 117 | |
---|
| 118 | * Thu Aug 01 2019 Dave Airlie <airlied@redhat.com> - 2019.4-0.1 |
---|
| 119 | - git snapshot to let newer vulkan validation layers build |
---|
| 120 | - stats removed upstream |
---|
| 121 | |
---|
| 122 | * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.3-2 |
---|
| 123 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
---|
| 124 | |
---|
| 125 | * Mon Jun 10 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.3-1 |
---|
| 126 | - Release 2019.3 |
---|
| 127 | |
---|
| 128 | * Thu Mar 07 2019 Dave Airlie <airlied@redhat.com> - 2019.1-2 |
---|
| 129 | - Add patch to let vulkan-validation-layers build |
---|
| 130 | |
---|
| 131 | * Mon Feb 04 2019 Dave Airlie <airlied@redhat.com> - 2019.1-1 |
---|
| 132 | - Update to 2019.1 release |
---|
| 133 | |
---|
| 134 | * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.4-2 |
---|
| 135 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 136 | |
---|
| 137 | * Mon Jul 23 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.4-1 |
---|
| 138 | - Update to 2018.4 release |
---|
| 139 | |
---|
| 140 | * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.3.0-0.3.20180407.git26a698c |
---|
| 141 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 142 | |
---|
| 143 | * Mon Jun 25 2018 Dave Airlie <airlied@redhat.com> - 2018.3.0-0.2.20180407.git26a698c |
---|
| 144 | - Move to python3 and drop the simplejson buildreq. |
---|
| 145 | |
---|
| 146 | * Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.3.0-0.1.20180407.git26a698c |
---|
| 147 | - Bump version to 2018.3.0 to match .pc files |
---|
| 148 | |
---|
| 149 | * Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.4.20180407.git26a698c |
---|
| 150 | - Bump provides to 2018.3.0 |
---|
| 151 | |
---|
| 152 | * Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.3.20180407.git26a698c |
---|
| 153 | - Update for vulkan 1.1.73.0 |
---|
| 154 | |
---|
| 155 | * Wed Feb 14 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.2.20180205.git9e19fc0 |
---|
| 156 | - Add isa to the provides |
---|
| 157 | |
---|
| 158 | * Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.1.20180205.git9e19fc0 |
---|
| 159 | - Fix version |
---|
| 160 | - Fix pkgconfig file |
---|
| 161 | - Add version provides to -libs package |
---|
| 162 | |
---|
| 163 | * Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.5.20180205.git9e19fc0 |
---|
| 164 | - Update for vulkan 1.0.68.0 |
---|
| 165 | - Try building as shared object |
---|
| 166 | - Split libs into -libs subpackage |
---|
| 167 | |
---|
| 168 | * Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.4.20171023.git5834719 |
---|
| 169 | - Use ninja to build |
---|
| 170 | |
---|
| 171 | * Mon Jan 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.3.20171023.git5834719 |
---|
| 172 | - Add python prefix to fix the stupid Bodhi tests |
---|
| 173 | |
---|
| 174 | * Wed Jan 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.2.20171023.git5834719 |
---|
| 175 | - Split binaries into main package |
---|
| 176 | |
---|
| 177 | * Thu Jul 13 2017 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.1.20171023.git5834719 |
---|
| 178 | - First build |
---|
| 179 | |
---|