glslang/glslang.spec

82 lines
2.4 KiB
RPMSpec
Raw Normal View History

2023-04-23 23:46:02 +00:00
%global sdkver 1.3.243.0
2018-01-02 17:14:43 +00:00
Name: glslang
2022-02-15 22:39:38 +00:00
Version: 11.9.0
2022-11-09 04:37:07 +00:00
Release: %autorelease
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
2022-06-17 00:02:14 +00:00
URL: https://github.com/KhronosGroup/%{name}
Source0: %url/archive/sdk-%{sdkver}.tar.gz#/%{name}-sdk-%{sdkver}.tar.gz
2018-01-02 17:14:43 +00:00
Patch1: glslang-default-resource-limits_staticlib.patch
2020-01-29 00:30:50 +00:00
# Patch to build against system spirv-tools (rebased locally)
#Patch3: https://patch-diff.githubusercontent.com/raw/KhronosGroup/glslang/pull/1722.patch#/0001-pkg-config-compatibility.patch
Patch3: 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
2022-06-17 00:02:14 +00:00
%autosetup -p1 -n %{name}-sdk-%{sdkver}
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
2020-08-05 01:16:16 +00:00
%cmake3 -DBUILD_SHARED_LIBS=OFF
%cmake_build
2018-01-02 17:14:43 +00:00
%install
2020-08-03 18:41:06 +00:00
%{cmake_install}
2018-01-02 17:14:43 +00:00
# Install libglslang-default-resource-limits.a
install -pm 0644 %{_vpath_builddir}/StandAlone/libglslang-default-resource-limits.a %{buildroot}%{_libdir}/
# we don't want them in here
rm -rf %{buildroot}%{_includedir}/SPIRV
%ifnarch s390x ppc64
2018-01-03 12:14:28 +00:00
%check
pushd Test
2020-08-05 01:16:16 +00:00
./runtests localResults ../%{_vpath_builddir}/StandAlone/glslangValidator ../%{_vpath_builddir}/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
%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}/glslang/
%{_libdir}/libHLSL.a
%{_libdir}/libOGLCompiler.a
%{_libdir}/libOSDependent.a
%{_libdir}/libSPIRV.a
%{_libdir}/libSPVRemapper.a
%{_libdir}/libglslang.a
2020-08-05 01:16:16 +00:00
%{_libdir}/libGenericCodeGen.a
%{_libdir}/libMachineIndependent.a
2018-01-02 17:14:43 +00:00
%{_libdir}/libglslang-default-resource-limits.a
%{_libdir}/pkgconfig/glslang.pc
%{_libdir}/pkgconfig/spirv.pc
2019-11-13 05:16:50 +00:00
%{_libdir}/cmake/*
2018-01-02 17:14:43 +00:00
%changelog
2022-11-09 04:37:07 +00:00
%autochangelog