2 # - truelight http://www.filmlight.ltd.uk/products/truelight/overview_tl.php
3 # - nuke: http://docs.thefoundry.co.uk/products/nuke/
6 %bcond_without oiio # OpenImageIO-dependent apps (ocioconvert,ociodisplay)
7 %bcond_without opengl # OpenGL-dependent app (ociodisplay)
8 %bcond_without java # JNI glue
9 %bcond_without docs # documentation
10 %bcond_with sse2 # use SSE2 instructions
12 %ifarch %{x8664} pentrium4
15 Summary: Complete color management solution
16 Summary(pl.UTF-8): Kompletny pakiet do zarządzania kolorami
22 Source0: https://github.com/imageworks/OpenColorIO/tarball/v%{version}/%{name}-%{version}.tar.gz
23 # Source0-md5: 9838f5f1cf624a3d1253241f22e2179a
24 Patch0: %{name}-system-libs.patch
25 Patch1: %{name}-java.patch
26 Patch2: %{name}-libsuffix.patch
27 URL: http://opencolorio.org/
28 # g++ with tr1 support or...
29 #BuildRequires: boost-devel >= 1.34
30 BuildRequires: cmake >= 2.8
31 %{?with_java:BuildRequires: jdk}
32 BuildRequires: libstdc++-devel
33 BuildRequires: pkgconfig
34 BuildRequires: python-devel
35 %{?with_docs:BuildRequires: sphinx-pdg >= 1.1}
36 BuildRequires: tinyxml-devel >= 2.6.1
37 BuildRequires: yaml-cpp-devel >= 0.2.6
39 BuildRequires: OpenGL-devel
40 BuildRequires: OpenGL-glut-devel
41 BuildRequires: glew-devel >= 1.5.1
44 BuildRequires: OpenImageIO-devel
45 BuildRequires: lcms2-devel >= 2.1
47 Requires: tinyxml >= 2.6.1
48 Requires: yaml-cpp >= 0.2.6
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 OpenColorIO (OCIO) is a complete color management solution geared
53 towards motion picture production with an emphasis on visual effects
54 and computer animation. OCIO provides a straightforward and consistent
55 user experience across all supporting applications while allowing for
56 sophisticated back-end configuration options suitable for high-end
57 production usage. OCIO is compatible with the Academy Color Encoding
58 Specification (ACES) and is LUT-format agnostic, supporting many
61 %description -l pl.UTF-8
62 OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
63 przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
64 wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
65 elementy we wszystkich współpracujących aplikacjach, pozwalając na
66 wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
67 produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
68 (Academy Color Encoding Specification) i jest niezależne od formatu
69 LUT dzięki obsłudze wielu popularnych formatów.
72 Summary: OpenColorIO convert tool
73 Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
74 Group: Applications/Graphics
75 Requires: %{name} = %{version}-%{release}
78 OpenColorIO convert tool.
80 %description convert -l pl.UTF-8
81 Narzędzie OpenColorIO do konwersji.
84 Summary: OpenColorIO viewer based on OpenGL
85 Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
86 Group: X11/Applications/Graphics
87 Requires: %{name} = %{version}-%{release}
90 OpenColorIO viewer based on OpenGL.
92 %description display -l pl.UTF-8
93 Przeglądarka OpenColorIO oparta na OpenGL-u.
96 Summary: Header files for OpenColorIO library
97 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
98 Group: Development/Libraries
99 Requires: %{name} = %{version}-%{release}
100 Requires: libstdc++-devel
103 Header files for OpenColorIO library.
105 %description devel -l pl.UTF-8
106 Pliki nagłówkowe biblioteki OpenColorIO.
109 Summary: Static OpenColorIO library
110 Summary(pl.UTF-8): Statyczna biblioteka OpenColorIO
111 Group: Development/Libraries
112 Requires: %{name}-devel = %{version}-%{release}
115 Static OpenColorIO library.
117 %description static -l pl.UTF-8
118 Statyczna biblioteka OpenColorIO.
120 %package -n java-OpenColorIO
121 Summary: Java binding for OpenColorIO library
122 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
123 Group: Libraries/Java
124 Requires: %{name} = %{version}-%{release}
126 %description -n java-OpenColorIO
127 Java binding for OpenColorIO library.
129 %description -n java-OpenColorIO -l pl.UTF-8
130 Wiązanie Javy do biblioteki OpenColorIO.
132 %package -n python-OpenColorIO
133 Summary: Python binding for OpenColorIO library
134 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
135 Group: Libraries/Python
136 Requires: %{name} = %{version}-%{release}
138 %description -n python-OpenColorIO
139 Python binding for OpenColorIO library.
141 %description -n python-OpenColorIO -l pl.UTF-8
142 Wiązanie Pythona do biblioteki OpenColorIO.
144 %package -n python-OpenColorIO-devel
145 Summary: Header file for PyOpenColorIO API
146 Summary(pl.UTF-8): Plik nagłówkowy API PyOpenColorIO
147 Group: Development/Libraries
148 Requires: %{name}-devel = %{version}-%{release}
149 Requires: python-OpenColorIO = %{version}-%{release}
151 %description -n python-OpenColorIO-devel
152 Header file for PyOpenColorIO API.
154 %description -n python-OpenColorIO-devel -l pl.UTF-8
155 Plik nagłówkowy API PyOpenColorIO.
158 %setup -q -n imageworks-OpenColorIO-8883824
164 # required for cmake to find JNI headers/libs when lib64 is in use
165 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
170 -DOCIO_BUILD_DOCS=ON \
172 -DOCIO_BUILD_JNIGLUE=ON \
173 -DOCIO_STATIC_JNIGLUE=OFF \
175 %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
176 -DUSE_EXTERNAL_TINYXML=ON \
177 -DUSE_EXTERNAL_YAML=ON \
178 -DPYTHON_INCLUDE_LIB_PREFIX=ON
183 rm -rf $RPM_BUILD_ROOT
185 %{__make} -C build install \
186 DESTDIR=$RPM_BUILD_ROOT
188 # we use PYTHON_INCLUDE_LIB_PREFIX=ON so library is useful as C++ API
189 # but allow it to be loaded without lib prefix
190 ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libPyOpenColorIO.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/PyOpenColorIO.so
192 # not needed when installing to /usr
193 %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
195 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO
198 rm -rf $RPM_BUILD_ROOT
200 %post -p /sbin/ldconfig
201 %postun -p /sbin/ldconfig
203 %post -n java-OpenColorIO -p /sbin/ldconfig
204 %postun -n java-OpenColorIO -p /sbin/ldconfig
206 %post -n python-OpenColorIO -p /sbin/ldconfig
207 %postun -n python-OpenColorIO -p /sbin/ldconfig
210 %defattr(644,root,root,755)
211 %doc ChangeLog LICENSE README
212 %attr(755,root,root) %{_bindir}/ociobakelut
213 %attr(755,root,root) %{_bindir}/ociocheck
214 %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
215 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.1
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_bindir}/ocioconvert
223 %if %{with oiio} && %{with opengl}
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_bindir}/ociodisplay
230 %defattr(644,root,root,755)
231 %doc build/docs/build-html/*
232 %attr(755,root,root) %{_libdir}/libOpenColorIO.so
233 %{_includedir}/OpenColorIO
234 %{_pkgconfigdir}/OpenColorIO.pc
237 %defattr(644,root,root,755)
238 %{_libdir}/libOpenColorIO.a
241 %files -n java-OpenColorIO
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so.*.*.*
244 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO-JNI.so.1
245 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so
246 %dir %{_datadir}/ocio
247 %{_datadir}/ocio/OpenColorIO-1.0.6.jar
250 %files -n python-OpenColorIO
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libPyOpenColorIO.so.*.*.*
253 %attr(755,root,root) %ghost %{_libdir}/libPyOpenColorIO.so.1
254 %attr(755,root,root) %{_libdir}/PyOpenColorIO.so
256 %files -n python-OpenColorIO-devel
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_libdir}/libPyOpenColorIO.so
259 %{_includedir}/PyOpenColorIO