openshadinglanguage/openshadinglanguage.spec

136 lines
3.9 KiB
RPMSpec
Raw Normal View History

Name: openshadinglanguage
Version: 1.13.11.0
Release: 2mamba
Summary: Advanced shading language for production GI renderers
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
Source: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage.git/v%{version}/OpenShadingLanguage-%{version}.tar.bz2
Patch0: openshadinglanguage-1.13.11.0-llvm-19.patch
Patch1: openshadinglanguage-1.13.11.0-upstream_fix_typo_dual_h.patch
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: libclang-devel >= 0:19.1.1-1mamba
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}
%patch 0 -p1 -b .llvm-19
%patch 1 -p1 -b .upstream_fix_typo_dual_h
%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}"
%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
* Sat Oct 05 2024 Automatic Build System <autodist@mambasoft.it> 1.13.11.0-2mamba
- rebuilt by autoport with build requirements: libclang-devel>=0:19.1.1-1mamba
* Wed Sep 04 2024 Automatic Build System <autodist@openmamba.org> 1.13.11.0-1mamba
- automatic version update by autodist
* Mon Jun 03 2024 Automatic Build System <autodist@openmamba.org> 1.13.10.0-1mamba
- automatic version update by autodist
* Sat May 04 2024 Automatic Build System <autodist@openmamba.org> 1.13.9.0-1mamba
- automatic version update by autodist
* Sat Mar 02 2024 Automatic Build System <autodist@openmamba.org> 1.13.7.0-1mamba
- automatic version update by autodist
* Sun Feb 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.6.1-1mamba
- package created using the webbuild interface