|
@@ -7,12 +7,11 @@
|
|
|
}
|
|
|
|
|
|
Name: OpenColorIO
|
|
|
-Version: 1.1.1
|
|
|
+Version: 2.1.0
|
|
|
Release: 1%{?_dist_release}
|
|
|
Summary: Enables color transforms and image display across graphics apps
|
|
|
Summary(ja): アプリケーション間での色変換と画像表示を行うためのライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
-
|
|
|
+Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
|
|
@@ -22,12 +21,15 @@ URL: https://opencolorio.org/
|
|
|
# https://github.com/imageworks/OpenColorIO/tarball/v1.0.8
|
|
|
|
|
|
Source0: https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
-Patch1: OpenColorIO-yaml_cpp3.patch
|
|
|
+# https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1296
|
|
|
+Patch0: ocio-install.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
BuildRequires: cmake
|
|
|
BuildRequires: git
|
|
|
BuildRequires: help2man
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
%if %{with doc}
|
|
|
BuildRequires: texlive-collection-fontsrecommended
|
|
|
BuildRequires: texlive-collection-latexextra
|
|
@@ -35,18 +37,28 @@ BuildRequires: texlive-collection-latexrecommended
|
|
|
%endif
|
|
|
|
|
|
# Libraries
|
|
|
-BuildRequires: python3-devel
|
|
|
-BuildRequires: python3-rpm-macros
|
|
|
-BuildRequires: mesa-libGL-devel mesa-libGLU-devel
|
|
|
-BuildRequires: libX11-devel libXmu-devel libXi-devel
|
|
|
+BuildRequires: OpenEXR-devel
|
|
|
+BuildRequires: libboost-devel
|
|
|
+BuildRequires: expat-devel
|
|
|
BuildRequires: freeglut-devel
|
|
|
BuildRequires: glew-devel
|
|
|
+BuildRequires: libX11-devel libXmu-devel libXi-devel
|
|
|
+BuildRequires: mesa-libGL-devel mesa-libGLU-devel
|
|
|
+#BuildRequires: opencv-devel
|
|
|
+BuildRequires: pybind11-devel
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: python3-pip
|
|
|
+#BuildRequires: pystring-devel
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
+# WARNING: OpenColorIO and OpenImageIO are cross dependent.
|
|
|
+# If an ABI incompatible update is done in one, the other also needs to be
|
|
|
+# rebuilt.
|
|
|
+BuildRequires: OpenImageIO-devel
|
|
|
+
|
|
|
#######################
|
|
|
# Unbundled libraries #
|
|
|
#######################
|
|
|
-BuildRequires: tinyxml-devel
|
|
|
BuildRequires: lcms2-devel
|
|
|
#BuildRequires: yaml-cpp-devel
|
|
|
|
|
@@ -61,7 +73,6 @@ BuildRequires: lcms2-devel
|
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
|
%endif
|
|
|
|
|
|
-
|
|
|
%description
|
|
|
OCIO enables color transforms and image display to be handled in a consistent
|
|
|
manner across multiple graphics applications. Unlike other color management
|
|
@@ -72,7 +83,7 @@ emphasis on visual effects and animation color pipelines.
|
|
|
%package devel
|
|
|
Summary: Development libraries and headers for %{name}
|
|
|
Summary(ja): %{name} の開発用ライブラリおよびヘッダファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
@@ -82,7 +93,7 @@ Development libraries and headers for %{name}.
|
|
|
%package doc
|
|
|
Summary: API Documentation for %{name}
|
|
|
Summary(ja): %{name} API のドキュメント
|
|
|
-Group: Documentation
|
|
|
+Group: documentation
|
|
|
BuildArch: noarch
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
@@ -90,18 +101,15 @@ Requires: %{name} = %{version}-%{release}
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
-%prep
|
|
|
-%setup -q
|
|
|
-#patch1 -p1 -b .yaml3
|
|
|
+%debug_package
|
|
|
|
|
|
-# Remove what bundled libraries
|
|
|
-rm -f ext/lcms*
|
|
|
-rm -f ext/tinyxml*
|
|
|
-#rm -f ext/yaml*
|
|
|
+
|
|
|
+%prep
|
|
|
+%autosetup -p1
|
|
|
|
|
|
|
|
|
%build
|
|
|
-rm -rf build && mkdir build && pushd build
|
|
|
+rm -rf %{_vpath_builddir}
|
|
|
|
|
|
export CXXFLAGS="%{optflags} -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-function"
|
|
|
|
|
@@ -115,37 +123,36 @@ export CXXFLAGS="%{optflags} -Wno-deprecated-declarations -Wno-cast-function-typ
|
|
|
-DOCIO_BUILD_DOCS=OFF \
|
|
|
%endif
|
|
|
-DOCIO_BUILD_TESTS=ON \
|
|
|
+ -DOCIO_USE_HEADLESS=ON \
|
|
|
-DOCIO_PYGLUE_SONAME=OFF \
|
|
|
-DUSE_EXTERNAL_YAML=FALSE \
|
|
|
- -DUSE_EXTERNAL_TINYXML=TRUE \
|
|
|
-DUSE_EXTERNAL_LCMS=TRUE \
|
|
|
%ifnarch x86_64
|
|
|
-DOCIO_USE_SSE=OFF \
|
|
|
%endif
|
|
|
- -DCMAKE_SKIP_RPATH=OFF \
|
|
|
- ..
|
|
|
+ -DOpenGL_GL_PREFERENCE=GLVND
|
|
|
|
|
|
-# -DUSE_EXTERNAL_YAML=FALSE \
|
|
|
+%cmake_build
|
|
|
|
|
|
-make %{_smp_mflags}
|
|
|
|
|
|
-
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
-pushd build
|
|
|
-%make_install
|
|
|
+%cmake_install
|
|
|
+
|
|
|
+# Remove static libs
|
|
|
+find %{buildroot} -type f -name "*.a" -exec rm -f {} \;
|
|
|
|
|
|
# Generate man pages
|
|
|
+pushd %{_vpath_builddir}/src/apps
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
-help2man -N -s 1 --version-string=%{version} \
|
|
|
- -o %{buildroot}%{_mandir}/man1/ociocheck.1 \
|
|
|
- src/apps/ociocheck/ociocheck
|
|
|
-help2man -N -s 1 --version-string=%{version} \
|
|
|
- -o %{buildroot}%{_mandir}/man1/ociobakelut.1 \
|
|
|
- src/apps/ociobakelut/ociobakelut
|
|
|
+for app in ociobakelut ociocheck ociochecklut ocioconvert ociolutimage ociomakeclf ocioperf ociowrite; do \
|
|
|
+help2man -N -s 1 %{?fedora:--version-string=%{version}} \
|
|
|
+ -o %{buildroot}%{_mandir}/man1/$app.1 \
|
|
|
+ $app/$app
|
|
|
+done
|
|
|
+popd
|
|
|
|
|
|
# Move installed documentation back so it doesn't conflict with the main package
|
|
|
-popd
|
|
|
|
|
|
%if %{with doc}
|
|
|
rm -rf _tmpdoc
|
|
@@ -153,17 +160,12 @@ mkdir -p _tmpdoc
|
|
|
mv %{buildroot}%{_docdir}/%{name}/* _tmpdoc/
|
|
|
%endif
|
|
|
|
|
|
-mv -f %{buildroot}%{_prefix}/cmake %{buildroot}%{_libdir}/
|
|
|
-mv -f %{buildroot}%{_prefix}/*.cmake %{buildroot}%{_libdir}/cmake/
|
|
|
|
|
|
%check
|
|
|
# Testing passes locally in mock but fails on the fedora build servers.
|
|
|
#pushd build && make test
|
|
|
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
-
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
@@ -180,7 +182,6 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files devel
|
|
|
%{_includedir}/OpenColorIO/
|
|
|
-%{_includedir}/PyOpenColorIO/
|
|
|
%{_libdir}/*.so
|
|
|
%dir %{_libdir}/pkgconfig
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
@@ -194,6 +195,12 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Sep 01 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1
|
|
|
+- new upstream release.
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+- dropped Patch1.
|
|
|
+- imported Patch0 from rawhide.
|
|
|
+
|
|
|
* Sat Oct 26 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.1.1-1
|
|
|
- new upstream release.
|
|
|
|