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: ad3c4ea59c010a18d79276ab9d83af95
24 Patch0: %{name}-system-libs.patch
25 Patch1: %{name}-java.patch
26 Patch2: %{name}-libsuffix.patch
27 Patch3: %{name}-missing.patch
28 Patch4: %{name}-yaml-cpp.patch
29 URL: http://opencolorio.org/
30 # g++ with tr1 support or...
31 #BuildRequires: boost-devel >= 1.34
32 BuildRequires: cmake >= 2.8
33 %{?with_java:BuildRequires: jdk}
34 BuildRequires: libstdc++-devel
35 BuildRequires: pkgconfig
36 BuildRequires: python-devel
38 BuildRequires: sphinx-pdg >= 1.1
39 BuildRequires: texlive-latex-ams
41 BuildRequires: tinyxml-devel >= 2.6.1
42 BuildRequires: yaml-cpp-devel >= 0.2.6
44 BuildRequires: OpenGL-devel
45 BuildRequires: OpenGL-glut-devel
46 BuildRequires: glew-devel >= 1.5.1
49 BuildRequires: OpenImageIO-devel
50 BuildRequires: lcms2-devel >= 2.1
52 Requires: tinyxml >= 2.6.1
53 Requires: yaml-cpp >= 0.2.6
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 OpenColorIO (OCIO) is a complete color management solution geared
58 towards motion picture production with an emphasis on visual effects
59 and computer animation. OCIO provides a straightforward and consistent
60 user experience across all supporting applications while allowing for
61 sophisticated back-end configuration options suitable for high-end
62 production usage. OCIO is compatible with the Academy Color Encoding
63 Specification (ACES) and is LUT-format agnostic, supporting many
66 %description -l pl.UTF-8
67 OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
68 przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
69 wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
70 elementy we wszystkich współpracujących aplikacjach, pozwalając na
71 wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
72 produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
73 (Academy Color Encoding Specification) i jest niezależne od formatu
74 LUT dzięki obsłudze wielu popularnych formatów.
77 Summary: OpenColorIO convert tool
78 Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
79 Group: Applications/Graphics
80 Requires: %{name} = %{version}-%{release}
83 OpenColorIO convert tool.
85 %description convert -l pl.UTF-8
86 Narzędzie OpenColorIO do konwersji.
89 Summary: OpenColorIO viewer based on OpenGL
90 Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
91 Group: X11/Applications/Graphics
92 Requires: %{name} = %{version}-%{release}
95 OpenColorIO viewer based on OpenGL.
97 %description display -l pl.UTF-8
98 Przeglądarka OpenColorIO oparta na OpenGL-u.
101 Summary: Header files for OpenColorIO library
102 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
103 Group: Development/Libraries
104 Requires: %{name} = %{version}-%{release}
105 Requires: libstdc++-devel
108 Header files for OpenColorIO library.
110 %description devel -l pl.UTF-8
111 Pliki nagłówkowe biblioteki OpenColorIO.
114 Summary: Static OpenColorIO library
115 Summary(pl.UTF-8): Statyczna biblioteka OpenColorIO
116 Group: Development/Libraries
117 Requires: %{name}-devel = %{version}-%{release}
120 Static OpenColorIO library.
122 %description static -l pl.UTF-8
123 Statyczna biblioteka OpenColorIO.
125 %package -n java-OpenColorIO
126 Summary: Java binding for OpenColorIO library
127 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
128 Group: Libraries/Java
129 Requires: %{name} = %{version}-%{release}
131 %description -n java-OpenColorIO
132 Java binding for OpenColorIO library.
134 %description -n java-OpenColorIO -l pl.UTF-8
135 Wiązanie Javy do biblioteki OpenColorIO.
137 %package -n python-OpenColorIO
138 Summary: Python binding for OpenColorIO library
139 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
140 Group: Libraries/Python
141 Requires: %{name} = %{version}-%{release}
143 %description -n python-OpenColorIO
144 Python binding for OpenColorIO library.
146 %description -n python-OpenColorIO -l pl.UTF-8
147 Wiązanie Pythona do biblioteki OpenColorIO.
149 %package -n python-OpenColorIO-devel
150 Summary: Header file for PyOpenColorIO API
151 Summary(pl.UTF-8): Plik nagłówkowy API PyOpenColorIO
152 Group: Development/Libraries
153 Requires: %{name}-devel = %{version}-%{release}
154 Requires: python-OpenColorIO = %{version}-%{release}
156 %description -n python-OpenColorIO-devel
157 Header file for PyOpenColorIO API.
159 %description -n python-OpenColorIO-devel -l pl.UTF-8
160 Plik nagłówkowy API PyOpenColorIO.
163 %setup -q -n imageworks-OpenColorIO-2b12063
171 # required for cmake to find JNI headers/libs when lib64 is in use
172 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
177 -DOCIO_BUILD_DOCS=ON \
179 -DOCIO_BUILD_JNIGLUE=ON \
180 -DOCIO_STATIC_JNIGLUE=OFF \
182 %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
183 -DUSE_EXTERNAL_TINYXML=ON \
184 -DUSE_EXTERNAL_YAML=ON
189 rm -rf $RPM_BUILD_ROOT
191 %{__make} -C build install \
192 DESTDIR=$RPM_BUILD_ROOT
194 # not needed when installing to /usr
195 %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
197 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO
200 rm -rf $RPM_BUILD_ROOT
202 %post -p /sbin/ldconfig
203 %postun -p /sbin/ldconfig
205 %post -n java-OpenColorIO -p /sbin/ldconfig
206 %postun -n java-OpenColorIO -p /sbin/ldconfig
208 %post -n python-OpenColorIO -p /sbin/ldconfig
209 %postun -n python-OpenColorIO -p /sbin/ldconfig
212 %defattr(644,root,root,755)
213 %doc ChangeLog LICENSE README
214 %attr(755,root,root) %{_bindir}/ociobakelut
215 %attr(755,root,root) %{_bindir}/ociocheck
216 %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.1
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_bindir}/ocioconvert
223 %attr(755,root,root) %{_bindir}/ociolutimage
226 %if %{with oiio} && %{with opengl}
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_bindir}/ociodisplay
233 %defattr(644,root,root,755)
234 %doc build/docs/build-html/*
235 %attr(755,root,root) %{_libdir}/libOpenColorIO.so
236 %{_includedir}/OpenColorIO
237 %{_pkgconfigdir}/OpenColorIO.pc
240 %defattr(644,root,root,755)
241 %{_libdir}/libOpenColorIO.a
244 %files -n java-OpenColorIO
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so.*.*.*
247 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO-JNI.so.1
248 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so
249 %dir %{_datadir}/ocio
250 %{_datadir}/ocio/OpenColorIO-%{version}.jar
253 %files -n python-OpenColorIO
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{py_sitedir}/PyOpenColorIO.so
257 %files -n python-OpenColorIO-devel
258 %defattr(644,root,root,755)
259 %{_includedir}/PyOpenColorIO