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: 7bd5521d8671be9f9f92339b32497908
24 Patch0: %{name}-system-libs.patch
25 Patch1: %{name}-java.patch
26 URL: http://opencolorio.org/
27 # g++ with tr1 support or...
28 #BuildRequires: boost-devel >= 1.34
29 BuildRequires: cmake >= 2.8
30 %{?with_java:BuildRequires: jdk}
31 BuildRequires: libstdc++-devel
32 BuildRequires: pkgconfig
33 BuildRequires: python-devel
34 %{?with_docs:BuildRequires: sphinx-pdg >= 1.1}
35 BuildRequires: tinyxml-devel >= 2.6.1
36 BuildRequires: yaml-cpp-devel >= 0.2.6
38 BuildRequires: OpenGL-devel
39 BuildRequires: OpenGL-glut-devel
40 BuildRequires: glew-devel >= 1.5.1
43 BuildRequires: OpenImageIO-devel
44 BuildRequires: lcms2-devel >= 2.1
46 Requires: tinyxml >= 2.6.1
47 Requires: yaml-cpp >= 0.2.6
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 OpenColorIO (OCIO) is a complete color management solution geared
52 towards motion picture production with an emphasis on visual effects
53 and computer animation. OCIO provides a straightforward and consistent
54 user experience across all supporting applications while allowing for
55 sophisticated back-end configuration options suitable for high-end
56 production usage. OCIO is compatible with the Academy Color Encoding
57 Specification (ACES) and is LUT-format agnostic, supporting many
60 %description -l pl.UTF-8
61 OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
62 przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
63 wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
64 elementy we wszystkich współpracujących aplikacjach, pozwalając na
65 wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
66 produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
67 (Academy Color Encoding Specification) i jest niezależne od formatu
68 LUT dzięki obsłudze wielu popularnych formatów.
71 Summary: OpenColorIO convert tool
72 Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
73 Group: Applications/Graphics
74 Requires: %{name} = %{version}-%{release}
77 OpenColorIO convert tool.
79 %description convert -l pl.UTF-8
80 Narzędzie OpenColorIO do konwersji.
83 Summary: OpenColorIO viewer based on OpenGL
84 Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
85 Group: X11/Applications/Graphics
86 Requires: %{name} = %{version}-%{release}
89 OpenColorIO viewer based on OpenGL.
91 %description display -l pl.UTF-8
92 Przeglądarka OpenColorIO oparta na OpenGL-u.
95 Summary: Header files for OpenColorIO library
96 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
97 Group: Development/Libraries
98 Requires: %{name} = %{version}-%{release}
99 Requires: libstdc++-devel
102 Header files for OpenColorIO library.
104 %description devel -l pl.UTF-8
105 Pliki nagłówkowe biblioteki OpenColorIO.
108 Summary: Static OpenColorIO library
109 Summary(pl.UTF-8): Statyczna biblioteka OpenColorIO
110 Group: Development/Libraries
111 Requires: %{name}-devel = %{version}-%{release}
114 Static OpenColorIO library.
116 %description static -l pl.UTF-8
117 Statyczna biblioteka OpenColorIO.
119 %package -n java-OpenColorIO
120 Summary: Java binding for OpenColorIO library
121 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
122 Group: Libraries/Java
123 Requires: %{name} = %{version}-%{release}
125 %description -n java-OpenColorIO
126 Java binding for OpenColorIO library.
128 %description -n java-OpenColorIO -l pl.UTF-8
129 Wiązanie Javy do biblioteki OpenColorIO.
131 %package -n python-OpenColorIO
132 Summary: Python binding for OpenColorIO library
133 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
134 Group: Libraries/Python
135 Requires: %{name} = %{version}-%{release}
137 %description -n python-OpenColorIO
138 Python binding for OpenColorIO library.
140 %description -n python-OpenColorIO -l pl.UTF-8
141 Wiązanie Pythona do biblioteki OpenColorIO.
143 %package -n python-OpenColorIO-devel
144 Summary: Header file for PyOpenColorIO API
145 Summary(pl.UTF-8): Plik nagłówkowy API PyOpenColorIO
146 Group: Development/Libraries
147 Requires: %{name}-devel = %{version}-%{release}
148 Requires: python-OpenColorIO = %{version}-%{release}
150 %description -n python-OpenColorIO-devel
151 Header file for PyOpenColorIO API.
153 %description -n python-OpenColorIO-devel -l pl.UTF-8
154 Plik nagłówkowy API PyOpenColorIO.
157 %setup -q -n imageworks-OpenColorIO-a16d9ac
162 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
167 -DOCIO_BUILD_DOCS=ON \
169 -DOCIO_BUILD_JNIGLUE=ON \
170 -DOCIO_STATIC_JNIGLUE=OFF \
172 %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
173 -DPYTHON_INCLUDE_LIB_PREFIX=ON
178 rm -rf $RPM_BUILD_ROOT
180 %{__make} -C build install \
181 DESTDIR=$RPM_BUILD_ROOT
183 # we use PYTHON_INCLUDE_LIB_PREFIX=ON so library is useful as C++ API
184 # but allow it to be loaded without lib prefix
185 ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libPyOpenColorIO.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/PyOpenColorIO.so
187 # not needed when installing to /usr
188 %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
190 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO
193 rm -rf $RPM_BUILD_ROOT
195 %post -p /sbin/ldconfig
196 %postun -p /sbin/ldconfig
198 %post -n java-OpenColorIO -p /sbin/ldconfig
199 %postun -n java-OpenColorIO -p /sbin/ldconfig
201 %post -n python-OpenColorIO -p /sbin/ldconfig
202 %postun -n python-OpenColorIO -p /sbin/ldconfig
205 %defattr(644,root,root,755)
206 %doc ChangeLog LICENSE README
207 %attr(755,root,root) %{_bindir}/ociobakelut
208 %attr(755,root,root) %{_bindir}/ociocheck
209 %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
210 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.1
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/ocioconvert
218 %if %{with oiio} && %{with opengl}
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/ociodisplay
225 %defattr(644,root,root,755)
226 %doc build/docs/build-html/*
227 %attr(755,root,root) %{_libdir}/libOpenColorIO.so
228 %{_includedir}/OpenColorIO
229 %{_pkgconfigdir}/OpenColorIO.pc
232 %defattr(644,root,root,755)
233 %{_libdir}/libOpenColorIO.a
236 %files -n java-OpenColorIO
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so.*.*.*
239 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO-JNI.so.1
240 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so
241 %dir %{_datadir}/ocio
242 %{_datadir}/ocio/OpenColorIO-1.0.6.jar
245 %files -n python-OpenColorIO
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/libPyOpenColorIO.so.*.*.*
248 %attr(755,root,root) %ghost %{_libdir}/libPyOpenColorIO.so.1
249 %attr(755,root,root) %{_libdir}/PyOpenColorIO.so
251 %files -n python-OpenColorIO-devel
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libPyOpenColorIO.so
254 %{_includedir}/PyOpenColorIO