glslang/glslang.spec

100 lines
2.9 KiB
RPMSpec
Raw Normal View History

2018-02-09 19:32:10 +00:00
%global commit 2651ccaec8170b3257642b3c438f50dc4f181fdd
2018-01-02 17:14:43 +00:00
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2018-02-09 19:32:10 +00:00
%global commit_date 20180205
2018-01-02 17:14:43 +00:00
%global gitrel .%{commit_date}.git%{shortcommit}
Name: glslang
Version: 3.1
2018-02-09 19:32:10 +00:00
Release: 0.6%{?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}.tar.gz#/%{name}-%{commit}.tar.gz
Patch0: nodate.patch
Patch1: glslang-default-resource-limits_staticlib.patch
2018-01-03 12:14:28 +00:00
Patch2: glslang_tests.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
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}
# 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 \
-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
./runtests
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
%changelog
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