1
0
Dominique Leuenberger 2020-11-11 19:48:08 +00:00 committed by Git OBS Bridge
commit a7b17e9227
4 changed files with 36 additions and 18 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36d942fea5ef64ad2ecc421e7d2e1191fae5af4ce1e81f7937bfe759d6788259
size 14109747

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f111db4450901f0686c11a9b44b1a5b9d176702a22337c97c555e35cf8c6442
size 14137334

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sat Nov 7 11:35:53 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
- Update to v1.11.9.0, see included CHANGES.md or
https://github.com/imageworks/OpenShadingLanguage/blob/Release-1.11.9.0/CHANGES.md
- Add new build dependency python3-pybind11
- Remove stray python3 oslquery module
- Add loplevel markdown documents to doc package
-------------------------------------------------------------------
Tue Jul 28 20:19:30 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
- disable RPATH handling - fixes 15.1 build
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 5 17:41:36 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de> Sun Jul 5 17:41:36 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -23,13 +23,13 @@
%define oiio_major_minor_ver %(rpm -q --queryformat='%%{version}' OpenImageIO-devel | cut -d . -f 1-2) %define oiio_major_minor_ver %(rpm -q --queryformat='%%{version}' OpenImageIO-devel | cut -d . -f 1-2)
Name: OpenShadingLanguage Name: OpenShadingLanguage
Version: 1.11.6.0 Version: 1.11.9.0
Release: 0 Release: 0
Summary: A language for programmable shading Summary: A language for programmable shading
License: BSD-3-Clause License: BSD-3-Clause
Group: Productivity/Graphics/Other Group: Productivity/Graphics/Other
URL: https://github.com/imageworks/OpenShadingLanguage URL: https://github.com/imageworks/OpenShadingLanguage
Source0: https://github.com/imageworks/OpenShadingLanguage/archive/Release-%{version}-dev.tar.gz#/%{name}-Release-%{version}.tar.gz Source0: https://github.com/imageworks/OpenShadingLanguage/archive/Release-%{version}.tar.gz#/%{name}-Release-%{version}.tar.gz
Source1: https://creativecommons.org/licenses/by/3.0/legalcode.txt#/CC-BY-3.0.txt Source1: https://creativecommons.org/licenses/by/3.0/legalcode.txt#/CC-BY-3.0.txt
BuildRequires: OpenEXR-devel BuildRequires: OpenEXR-devel
BuildRequires: bison BuildRequires: bison
@ -41,7 +41,8 @@ BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_system-devel BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel BuildRequires: libboost_thread-devel
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: python3-base BuildRequires: python3-devel
BuildRequires: python3-pybind11-devel
BuildRequires: cmake(OpenImageIO) >= 2.0 BuildRequires: cmake(OpenImageIO) >= 2.0
BuildRequires: cmake(pugixml) BuildRequires: cmake(pugixml)
Requires: %{name}-common-headers = %{version} Requires: %{name}-common-headers = %{version}
@ -189,11 +190,12 @@ The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. developing applications that use %{name}.
%prep %prep
%setup -q -n %{name}-Release-%{version}-dev %setup -q -n %{name}-Release-%{version}
find . -iname CMakeLists.txt -exec sed "-i" "-e s/COMMAND python/COMMAND python3/" "{}" \; find . -iname CMakeLists.txt -exec sed "-i" "-e s/COMMAND python/COMMAND python3/" "{}" \;
%build %build
%cmake \ %cmake \
-DCMAKE_SKIP_RPATH:BOOL=TRUE \
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \ -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
-DOSL_SHADER_INSTALL_DIR:PATH=%{_datadir}/%{name}/shaders/ \ -DOSL_SHADER_INSTALL_DIR:PATH=%{_datadir}/%{name}/shaders/ \
-DOSL_BUILD_MATERIALX:BOOL=ON \ -DOSL_BUILD_MATERIALX:BOOL=ON \
@ -208,9 +210,11 @@ cp -v %{SOURCE1} .
mkdir %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver} mkdir %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}
mv %{buildroot}%{_libdir}/osl.imageio.so %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/ mv %{buildroot}%{_libdir}/osl.imageio.so %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/
find %{buildroot} -name LICENSE -print -delete find %{buildroot} -name LICENSE.md -print -delete
find %{buildroot} -name README.md -print -delete # add top level markdowns to the doc package
find %{buildroot} -name CHANGES.md -print -delete cp -p *.md %{buildroot}%{_docdir}/%{name}/
# TODO: package python module
find %{buildroot}%{python3_sitearch} -name oslquery.so -print -delete
%post -n liboslcomp%{sufx} -p /sbin/ldconfig %post -n liboslcomp%{sufx} -p /sbin/ldconfig
%postun -n liboslcomp%{sufx} -p /sbin/ldconfig %postun -n liboslcomp%{sufx} -p /sbin/ldconfig
@ -228,7 +232,7 @@ find %{buildroot} -name CHANGES.md -print -delete
%postun -n libtestshade%{sufx} -p /sbin/ldconfig %postun -n libtestshade%{sufx} -p /sbin/ldconfig
%files %files
%license LICENSE %license LICENSE.md
%{_bindir}/* %{_bindir}/*
%files doc %files doc
@ -248,31 +252,31 @@ find %{buildroot} -name CHANGES.md -print -delete
%{_datadir}/%{name}/shaders/*.h %{_datadir}/%{name}/shaders/*.h
%files -n liboslcomp%{sufx} %files -n liboslcomp%{sufx}
%license LICENSE %license LICENSE.md
%{_libdir}/liboslcomp.so.%{sover}* %{_libdir}/liboslcomp.so.%{sover}*
%files -n liboslexec%{sufx} %files -n liboslexec%{sufx}
%license LICENSE %license LICENSE.md
%{_libdir}/liboslexec.so.%{sover}* %{_libdir}/liboslexec.so.%{sover}*
%files -n liboslnoise%{sufx} %files -n liboslnoise%{sufx}
%license LICENSE %license LICENSE.md
%{_libdir}/liboslnoise.so.%{sover}* %{_libdir}/liboslnoise.so.%{sover}*
%files -n liboslquery%{sufx} %files -n liboslquery%{sufx}
%license LICENSE %license LICENSE.md
%{_libdir}/liboslquery.so.%{sover}* %{_libdir}/liboslquery.so.%{sover}*
%files -n libtestshade%{sufx} %files -n libtestshade%{sufx}
%license LICENSE %license LICENSE.md
%{_libdir}/libtestshade.so.%{sover}* %{_libdir}/libtestshade.so.%{sover}*
%files -n OpenImageIO-plugin-osl %files -n OpenImageIO-plugin-osl
%license LICENSE %license LICENSE.md
%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/osl.imageio.so %{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/osl.imageio.so
%files devel %files devel
%license LICENSE %license LICENSE.md
%{_includedir}/* %{_includedir}/*
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/cmake/ %{_libdir}/cmake/