glslang/glslang.spec

135 lines
4.6 KiB
RPMSpec
Raw Normal View History

2019-11-13 05:19:01 +00:00
%global commit 7f77b2e8669ae06acbee9c9867be8b13e4054f9c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20191102
%global gitrel .%{commit_date}.git%{shortcommit}
2018-01-02 17:14:43 +00:00
Name: glslang
2019-11-13 05:19:01 +00:00
Version: 7.13.3496
Release: 1%{?gitrel}%{?dist}
2018-01-02 17:14:43 +00:00
Summary: OpenGL and OpenGL ES shader front end and validator
License: BSD and GPLv3+ and ASL 2.0
URL: https://github.com/KhronosGroup
Source0: %url/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
2018-01-02 17:14:43 +00:00
Patch1: glslang-default-resource-limits_staticlib.patch
# Patch to build against system spirv-tools
Patch3: https://patch-diff.githubusercontent.com/raw/KhronosGroup/glslang/pull/1722.patch#/0001-pkg-config-compatibility.patch
2018-01-02 17:14:43 +00:00
BuildRequires: cmake3
BuildRequires: gcc-c++
2018-02-09 12:29:27 +00:00
BuildRequires: ninja-build
BuildRequires: spirv-tools-devel
2018-01-02 17:14:43 +00:00
%description
%{name} is the official reference compiler front end for the OpenGL
ES and OpenGL shading languages. It implements a strict
interpretation of the specifications for these languages.
%package devel
Summary: Development files for %{name}
2018-01-03 12:14:28 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2018-01-02 17:14:43 +00:00
%description devel
%{name} is the official reference compiler front end for the OpenGL
ES and OpenGL shading languages. It implements a strict
interpretation of the specifications for these languages.
%prep
%autosetup -p1 -n %{name}-%{commit}
2018-01-02 17:14:43 +00:00
# Fix rpmlint warning on debuginfo
find . -name '*.h' -or -name '*.cpp' -or -name '*.hpp'| xargs chmod a-x
%build
2018-01-03 12:14:28 +00:00
%__mkdir_p build
pushd build
2018-01-02 17:14:43 +00:00
%cmake3 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
2018-02-09 12:29:27 +00:00
-DCMAKE_SKIP_RPATH:BOOL=yes \
2018-04-24 00:17:26 +00:00
-DBUILD_SHARED_LIBS=OFF \
2018-02-09 12:29:27 +00:00
-GNinja ..
%{ninja_build}
2018-01-02 17:14:43 +00:00
popd
%install
2018-02-09 12:29:27 +00:00
%{ninja_install} -C build
2018-01-02 17:14:43 +00:00
%ifnarch s390x ppc64
2018-01-03 12:14:28 +00:00
%check
pushd Test
2019-11-13 04:22:29 +00:00
./runtests localResults ../build/StandAlone/glslangValidator ../build/StandAlone/spirv-remap
2018-01-03 12:14:28 +00:00
popd
%endif
2018-01-02 17:14:43 +00:00
2018-01-03 12:14:28 +00:00
# Install libglslang-default-resource-limits.a
install -pm 0644 build/StandAlone/libglslang-default-resource-limits.a %{buildroot}%{_libdir}/
2018-01-02 17:14:43 +00:00
2018-01-03 12:14:28 +00:00
%files
2018-01-02 17:14:43 +00:00
%doc README.md README-spirv-remap.txt
%{_bindir}/glslangValidator
%{_bindir}/spirv-remap
2018-01-03 12:14:28 +00:00
%files devel
2018-01-02 17:14:43 +00:00
%{_includedir}/SPIRV/
%{_includedir}/glslang/
%{_libdir}/libHLSL.a
%{_libdir}/libOGLCompiler.a
%{_libdir}/libOSDependent.a
%{_libdir}/libSPIRV.a
%{_libdir}/libSPVRemapper.a
%{_libdir}/libglslang.a
%{_libdir}/libglslang-default-resource-limits.a
%{_libdir}/pkgconfig/glslang.pc
%{_libdir}/pkgconfig/spirv.pc
2018-01-02 17:14:43 +00:00
%changelog
* Sat Aug 03 2019 Dave Airlie <airlied@redhat.com> - 7.11.3214-3
- Latest upstream snapshot for validation layers build
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.11.3214-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jun 10 01:27:27 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 7.11.3214-1
- Release 7.11.3214
- Add patch to build against system spirv-tools
2019-03-29 00:40:35 +00:00
* Fri Mar 29 2019 Dave Airlie <airlied@redhat.com> - 3.1-0.13.20190329.gite0d59bb
- Update for vulkan 1.1.101.0
2019-02-12 05:55:07 +00:00
* Tue Feb 12 2019 Dave Airlie <airlied@redhat.com> - 3.1-0.12.20190212.git05d12a9
- Update for vulkan 1.1.92.0
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-0.11.20180727.gite99a268
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-08-07 11:28:11 +00:00
* Tue Aug 07 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.10.20180727.gite99a268
- Update for vulkan 1.1.82.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-0.9.20180416.git3bb4c48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-04-24 00:17:26 +00:00
* Mon Apr 23 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.8.20180416.git3bb4c48
2018-04-23 23:53:44 +00:00
- Update for vulkan 1.1.73.0
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 3.1-0.7.20180205.git2651cca
- Rebuild to fix GCC 8 mis-compilation
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
2018-02-09 19:32:10 +00:00
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.6.20180205.git2651cca
- Update for vulkan 1.0.68.0
2018-02-09 12:29:27 +00:00
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.5.20171028.git715c353
- Use ninja to build
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-0.4.20171028.git715c353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.3.20171028.git715c353
- Exclude s390x and ppc64 from check section
2018-01-03 12:14:28 +00:00
* Wed Jan 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.2.20171028.git715c353
- Add check section to run tests
- Split binaries into main package
2018-01-02 17:14:43 +00:00
* Thu Jul 13 2017 Leigh Scott <leigh123linux@googlemail.com> - 3.1-0.1.20171028.git715c353
- First build