diff --git a/README.md b/README.md index baf6f8d..f58d353 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # glslang +Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator. + diff --git a/glslang.spec b/glslang.spec new file mode 100644 index 0000000..f2435a8 --- /dev/null +++ b/glslang.spec @@ -0,0 +1,97 @@ +Name: glslang +Version: 8.13.3559 +Release: 1mamba +Summary: Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/KhronosGroup +## GITSOURCE https://github.com/KhronosGroup/glslang.git 8.13.3559 +Source: https://github.com/KhronosGroup/glslang.git/%{version}/glslang-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/glslangValidator +%{_bindir}/spirv-remap + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libSPIRV.so +%{_libdir}/libSPVRemapper.so +%{_libdir}/libglslang-default-resource-limits.so +%{_libdir}/libglslang.so +%{_libdir}/libHLSL.so + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/SPIRV +%{_includedir}/SPIRV/* +%dir %{_includedir}/glslang +%dir %{_includedir}/glslang/Include +%{_includedir}/glslang/Include/*.h +%dir %{_includedir}/glslang/MachineIndependent +%{_includedir}/glslang/MachineIndependent/*.h +%dir %{_includedir}/glslang/MachineIndependent/preprocessor +%{_includedir}/glslang/MachineIndependent/preprocessor/*.h +%{_includedir}/glslang/SPIRV/spirv.hpp +%dir %{_includedir}/glslang/Public +%{_includedir}/glslang/Public/*.h +%dir %{_includedir}/glslang/SPIRV +%{_includedir}/glslang/SPIRV/*.h +%{_libdir}/cmake/*.cmake +%{_libdir}/libOGLCompiler.a +%{_libdir}/libOSDependent.a +%doc README-spirv-remap.txt README.md + +%changelog +* Tue Mar 17 2020 Silvan Calarco 8.13.3559-1mamba +- package created using the webbuild interface