From 7e3f6ad33ca0e71090469cf9db794ee6c75e11a1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 6 Feb 2024 12:51:08 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.13.6.1-1mamba;Sun Feb 04 2024] --- README.md | 2 + openshadinglanguage.spec | 118 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 openshadinglanguage.spec diff --git a/README.md b/README.md index 2374697..0f15c5c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # openshadinglanguage +Advanced shading language for production GI renderers. + diff --git a/openshadinglanguage.spec b/openshadinglanguage.spec new file mode 100644 index 0000000..8221d68 --- /dev/null +++ b/openshadinglanguage.spec @@ -0,0 +1,118 @@ +Name: openshadinglanguage +Version: 1.13.6.1 +Release: 1mamba +Summary: Advanced shading language for production GI renderers +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage +Source: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage.git/v%{version}/OpenShadingLanguage-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libboost-devel +BuildRequires: libclang-devel +BuildRequires: libgcc +BuildRequires: libglvnd-devel +BuildRequires: libimath-devel +BuildRequires: libllvm-devel +BuildRequires: libopenimageio-devel +BuildRequires: libpython3-devel +BuildRequires: libpython311-devel +BuildRequires: libstdc++6-devel +BuildRequires: pugixml-devel +BuildRequires: qt6-qtbase-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Advanced shading language for production GI renderers. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%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 -n OpenShadingLanguage-%{version} + +%build +%cmake \ + -DCMAKE_CXX_STANDARD=17 \ + -DLLVM_STATIC=0 \ + -DSTOP_ON_WARNING=OFF + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +rm -f %{buildroot}/usr/build-scripts/serialize-bc.py +rm -f %{buildroot}/usr/cmake/llvm_macros.cmake + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/oslc +%{_bindir}/oslinfo +%{_bindir}/osltoy +%{_bindir}/testrender +%{_bindir}/testshade +%{_bindir}/testshade_dso +%dir %{_datadir}/OSL +%{_datadir}/OSL/* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/liboslcomp.so.* +%{_libdir}/liboslexec.so.* +%{_libdir}/liboslnoise.so.* +%{_libdir}/liboslquery.so.* +%{_libdir}/libtestshade.so.* +%{_libdir}/osl.imageio.so +%{python3_sitearch}/oslquery.so + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/OSL +%{_includedir}/OSL/* +%{_libdir}/liboslcomp.so +%{_libdir}/liboslexec.so +%{_libdir}/liboslnoise.so +%{_libdir}/liboslquery.so +%{_libdir}/libtestshade.so +%dir %{_libdir}/cmake/OSL +%{_libdir}/cmake/OSL/OSL*.cmake +%{_libdir}/pkgconfig/oslcomp.pc +%{_libdir}/pkgconfig/oslexec.pc +%{_libdir}/pkgconfig/oslquery.pc +%dir %{_docdir}/OSL +%{_docdir}/OSL/* +%doc README.md + + +%changelog +* Sun Feb 04 2024 Silvan Calarco 1.13.6.1-1mamba +- package created using the webbuild interface