X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=OpenColorIO.spec;h=91cd6c13742dcb43c652faf7802fb582a65a4af2;hb=HEAD;hp=7af892139d74ad0484900e105b2ac2a5f534de8d;hpb=52901ddc2c37452e2251356a7e34b315967c00ef;p=packages%2FOpenColorIO.git diff --git a/OpenColorIO.spec b/OpenColorIO.spec index 7af8921..91cd6c1 100644 --- a/OpenColorIO.spec +++ b/OpenColorIO.spec @@ -1,14 +1,21 @@ # TODO: -# - OpenFX plugin +# - OpenFX plugin (OpenFX >= 1.4, https://github.com/ofxa/openfx) # - truelight http://www.filmlight.ltd.uk/products/truelight/overview_tl.php (proprietary?) # - nuke: http://docs.thefoundry.co.uk/products/nuke/ (proprietary) # # Conditional build: -%bcond_without oiio # use OpenImageIO in apps (ocioconvert,ociodisplay,ociolutimage) instead of OpenEXR %bcond_without opengl # OpenGL-dependent app (ociodisplay) %bcond_with java # JNI glue (outdated as of 2.2.1) %bcond_without doc # documentation %bcond_with sse2 # use SSE2 instructions +%bcond_with sse3 # use SSE3 instructions +%bcond_with ssse3 # use SSSE3 instructions +%bcond_with sse4 # use SSE4 instructions +%bcond_with sse42 # use SSE4.2 instructions +%bcond_with avx # use AVX instructions +%bcond_with avx2 # use AVX2 instructions +%bcond_with avx512 # use AVX512 instructions +%bcond_with f16c # use F16C instructions # %ifarch %{x8664} pentium4 x32 %define with_sse2 1 @@ -16,20 +23,21 @@ Summary: Complete color management solution Summary(pl.UTF-8): Kompletny pakiet do zarządzania kolorami Name: OpenColorIO -Version: 2.2.1 -Release: 0.1 +Version: 2.3.2 +Release: 1 License: BSD Group: Libraries #Source0Download: https://github.com/imageworks/OpenColorIO/releases Source0: https://github.com/imageworks/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz -# Source0-md5: 372d6982cf01818a21a12f9628701a91 +# Source0-md5: 8af74fcb8c4820ab21204463a06ba490 Patch0: %{name}-java.patch URL: http://opencolorio.org/ -BuildRequires: Imath-devel >= 3.1.2 -BuildRequires: OpenEXR-devel >= 3.0 -BuildRequires: cmake >= 3.12 -BuildRequires: expat-devel >= 2.4.1 +BuildRequires: Imath-devel >= 3.1.6 +BuildRequires: OpenEXR-devel >= 3.0.5 +BuildRequires: cmake >= 3.13 +BuildRequires: expat-devel >= 1:2.5.0 %{?with_java:BuildRequires: jdk} +BuildRequires: lcms2-devel >= 2.2 BuildRequires: libstdc++-devel >= 6:5 BuildRequires: minizip-ng-devel >= 3.0.7 BuildRequires: pkgconfig @@ -39,7 +47,7 @@ BuildRequires: python3-pybind11 >= 2.9.2 BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.742 BuildRequires: tinyxml-devel >= 2.6.1 -BuildRequires: yaml-cpp-devel >= 0.7.0 +BuildRequires: yaml-cpp-devel >= 0.8.0 BuildRequires: zlib-devel >= 1.2.13 %if %{with doc} BuildRequires: python3-breathe @@ -56,14 +64,11 @@ BuildRequires: OpenGL-devel BuildRequires: OpenGL-glut-devel BuildRequires: glew-devel >= 1.5.1 %endif -%if %{with oiio} -BuildRequires: OpenImageIO-devel >= 2.2.14 -BuildRequires: lcms2-devel >= 2.2 -%endif -Requires: expat >= 2.4.1 +Requires: Imath >= 3.1.6 +Requires: expat >= 1:2.5.0 Requires: minizip-ng >= 3.0.7 Requires: tinyxml >= 2.6.1 -Requires: yaml-cpp >= 0.7.0 +Requires: yaml-cpp >= 0.8.0 Requires: zlib >= 1.2.13 %if %{without java} Obsoletes: java-OpenColorIO < 2 @@ -95,6 +100,7 @@ Summary: OpenColorIO convert tool Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji Group: Applications/Graphics Requires: %{name} = %{version}-%{release} +Requires: OpenEXR >= 3.0.5 Requires: lcms2 >= 2.2 %description convert @@ -172,17 +178,22 @@ Wiązanie Pythona do biblioteki OpenColorIO. # required for cmake to find JNI headers/libs when lib64 is in use %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java} -install -d build -cd build -%cmake .. \ +%cmake -B build \ -DCMAKE_CONFIGURATION_TYPES=PLD \ -DCMAKE_CXX_STANDARD=14 \ %{cmake_on_off doc OCIO_BUILD_DOCS} \ %{cmake_on_off java OCIO_BUILD_JAVA} \ - %{?with_oiio:-DOCIO_USE_OIIO_FOR_APPS=ON} \ - %{!?with_sse2:-DOCIO_USE_SSE=OFF} - -%{__make} + %{!?with_sse2:-DOCIO_USE_SSE2=OFF} \ + %{!?with_sse3:-DOCIO_USE_SSE3=OFF} \ + %{!?with_ssse3:-DOCIO_USE_SSSE3=OFF} \ + %{!?with_sse4:-DOCIO_USE_SSE4=OFF} \ + %{!?with_sse42:-DOCIO_USE_SSE42=OFF} \ + %{!?with_avx:-DOCIO_USE_AVX=OFF} \ + %{!?with_avx2:-DOCIO_USE_AVX2=OFF} \ + %{!?with_avx512:-DOCIO_USE_AVX512=OFF} \ + %{!?with_f16c:-DOCIO_USE_F16C=OFF} + +%{__make} -C build %install rm -rf $RPM_BUILD_ROOT @@ -190,6 +201,9 @@ rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT +%py3_comp $RPM_BUILD_ROOT%{py3_sitedir} +%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} + # not needed when installing to /usr %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh # packaged as %doc @@ -218,7 +232,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/ocioperf %attr(755,root,root) %{_bindir}/ociowrite %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.2.2 +%attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.2.3 %files convert %defattr(644,root,root,755) @@ -236,7 +250,6 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/libOpenColorIO.so %{_libdir}/libOpenColorIOimageioapphelpers.a %{_libdir}/libOpenColorIOoglapphelpers.a -%{?with_oiio:%{_libdir}/libOpenColorIOoiiohelpers.a} %{_includedir}/OpenColorIO %{_pkgconfigdir}/OpenColorIO.pc %{_libdir}/cmake/OpenColorIO @@ -257,4 +270,7 @@ rm -rf $RPM_BUILD_ROOT %files -n python3-OpenColorIO %defattr(644,root,root,755) -%attr(755,root,root) %{py3_sitedir}/PyOpenColorIO.so +%dir %{py3_sitedir}/PyOpenColorIO +%attr(755,root,root) %{py3_sitedir}/PyOpenColorIO/PyOpenColorIO.so +%{py3_sitedir}/PyOpenColorIO/__init__.py +%{py3_sitedir}/PyOpenColorIO/__pycache__