|
|
@ -4,18 +4,16 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: OpenColorIO
|
|
|
|
Name: OpenColorIO
|
|
|
|
Version: 2.1.2
|
|
|
|
Version: 2.2.1
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Enables color transforms and image display across graphics apps
|
|
|
|
Summary: Enables color transforms and image display across graphics apps
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: http://opencolorio.org/
|
|
|
|
URL: http://opencolorio.org/
|
|
|
|
Source0: https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: OCIO-strlen.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# OIIO is only built for these arches due to Libraw
|
|
|
|
# OIIO is only built for these arches due to Libraw
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
%if 0%{?rhel} >= 8 && 0%{?rhel} < 9
|
|
|
|
ExclusiveArch: x86_64 ppc64le
|
|
|
|
ExclusiveArch: x86_64 ppc64le
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -27,13 +25,14 @@ BuildRequires: python3-markupsafe
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
# Libraries
|
|
|
|
# Libraries
|
|
|
|
BuildRequires: OpenEXR-devel
|
|
|
|
BuildRequires: cmake(OpenEXR)
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: glew-devel
|
|
|
|
BuildRequires: glew-devel
|
|
|
|
BuildRequires: libX11-devel libXmu-devel libXi-devel
|
|
|
|
BuildRequires: libX11-devel libXmu-devel libXi-devel
|
|
|
|
BuildRequires: mesa-libGL-devel mesa-libGLU-devel
|
|
|
|
BuildRequires: mesa-libGL-devel mesa-libGLU-devel
|
|
|
|
|
|
|
|
BuildRequires: minizip-ng-devel >= 3.0.6
|
|
|
|
BuildRequires: opencv-devel
|
|
|
|
BuildRequires: opencv-devel
|
|
|
|
BuildRequires: pybind11-devel
|
|
|
|
BuildRequires: pybind11-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
@ -44,7 +43,7 @@ BuildRequires: zlib-devel
|
|
|
|
# WARNING: OpenColorIO and OpenImageIO are cross dependent.
|
|
|
|
# WARNING: OpenColorIO and OpenImageIO are cross dependent.
|
|
|
|
# If an ABI incompatible update is done in one, the other also needs to be
|
|
|
|
# If an ABI incompatible update is done in one, the other also needs to be
|
|
|
|
# rebuilt.
|
|
|
|
# rebuilt.
|
|
|
|
BuildRequires: OpenImageIO-devel
|
|
|
|
BuildRequires: cmake(OpenImageIO)
|
|
|
|
BuildRequires: OpenImageIO-iv
|
|
|
|
BuildRequires: OpenImageIO-iv
|
|
|
|
BuildRequires: OpenImageIO-utils
|
|
|
|
BuildRequires: OpenImageIO-utils
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +51,7 @@ BuildRequires: OpenImageIO-utils
|
|
|
|
# Unbundled libraries #
|
|
|
|
# Unbundled libraries #
|
|
|
|
#######################
|
|
|
|
#######################
|
|
|
|
BuildRequires: lcms2-devel
|
|
|
|
BuildRequires: lcms2-devel
|
|
|
|
BuildRequires: yaml-cpp-devel >= 0.5.0
|
|
|
|
BuildRequires: yaml-cpp-devel >= 0.7.0
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?docs}
|
|
|
|
%if 0%{?docs}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: doxygen
|
|
|
@ -104,6 +103,9 @@ Development libraries and headers for %{name}.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{name}-%{version}%{?relcan:-rc%{relcan}}
|
|
|
|
%autosetup -p1 -n %{name}-%{version}%{?relcan:-rc%{relcan}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fedora maps minzip-ng back to minizip so work around it here:
|
|
|
|
|
|
|
|
sed -i "s/minizip-ng/minizip/g" src/OpenColorIO/OCIOZArchive.cpp src/apps/ocioarchive/main.cpp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cmake -DCMAKE_CXX_STANDARD=14 \
|
|
|
|
%cmake -DCMAKE_CXX_STANDARD=14 \
|
|
|
@ -114,6 +116,9 @@ Development libraries and headers for %{name}.
|
|
|
|
%ifnarch x86_64
|
|
|
|
%ifnarch x86_64
|
|
|
|
-DOCIO_USE_SSE=OFF \
|
|
|
|
-DOCIO_USE_SSE=OFF \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
-Dminizip-ng_LIBRARY=%{_libdir}/libminizip.so \
|
|
|
|
|
|
|
|
-Dminizip-ng_INCLUDE_DIR=%{_includedir}/minizip \
|
|
|
|
|
|
|
|
-Dminizip-ng_DIR=TRUE \
|
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND
|
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND
|
|
|
|
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
%cmake_build
|
|
|
@ -126,14 +131,14 @@ Development libraries and headers for %{name}.
|
|
|
|
find %{buildroot} -type f -name "*.a" -exec rm -f {} \;
|
|
|
|
find %{buildroot} -type f -name "*.a" -exec rm -f {} \;
|
|
|
|
|
|
|
|
|
|
|
|
# Generate man pages
|
|
|
|
# Generate man pages
|
|
|
|
pushd %{__cmake_builddir}/src/apps
|
|
|
|
#pushd %{__cmake_builddir}/src/apps
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
#mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
for app in ociobakelut ociocheck ociochecklut ocioconvert ociolutimage ociomakeclf ocioperf ociowrite; do \
|
|
|
|
#for app in ociobakelut ociocheck ociochecklut ocioconvert ociolutimage ociomakeclf ocioperf ociowrite; do \
|
|
|
|
help2man -N -s 1 %{?fedora:--version-string=%{version}} \
|
|
|
|
#help2man -N -s 1 %{?fedora:--version-string=%{version}} \
|
|
|
|
-o %{buildroot}%{_mandir}/man1/$app.1 \
|
|
|
|
# -o %{buildroot}%{_mandir}/man1/$app.1 \
|
|
|
|
$app/$app
|
|
|
|
# $app/$app
|
|
|
|
done
|
|
|
|
#done
|
|
|
|
popd
|
|
|
|
#popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
@ -154,7 +159,7 @@ popd
|
|
|
|
%files tools
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/ocio/
|
|
|
|
%{_datadir}/ocio/
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
#{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?docs}
|
|
|
|
%if 0%{?docs}
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
@ -169,6 +174,19 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 12 2023 Richard Shaw <hobbes1069@gmail.com> - 2.2.1-1
|
|
|
|
|
|
|
|
- Update to 2.2.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 15 2022 Richard Shaw <hobbes1069@gmail.com> - 2.1.2-5.1
|
|
|
|
|
|
|
|
- Rebuild post OIIO bootstrap.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 14 2022 Richard Shaw <hobbes1069@gmail.com> - 2.1.2-5
|
|
|
|
|
|
|
|
- Rebuild for yaml-cpp 0.7.0.
|
|
|
|
|
|
|
|
- Disable BR for OIIO to bootstrap.
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 07 2022 Richard Shaw <hobbes1069@gmail.com> - 2.1.2-4
|
|
|
|
* Fri Oct 07 2022 Richard Shaw <hobbes1069@gmail.com> - 2.1.2-4
|
|
|
|
- Rebuild for OpenImageIO 2.4.4.2.
|
|
|
|
- Rebuild for OpenImageIO 2.4.4.2.
|
|
|
|
|
|
|
|
|
|
|
|