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 doc # 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 #Source0Download: https://github.com/imageworks/OpenColorIO/releases
23 Source0: https://github.com/imageworks/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
24 # Source0-md5: 23d8b9ac81599305539a5a8674b94a3d
25 Patch0: %{name}-system-libs.patch
26 Patch1: %{name}-java.patch
27 Patch2: %{name}-libsuffix.patch
28 Patch3: %{name}-missing.patch
29 Patch4: %{name}-yaml-cpp.patch
30 Patch5: %{name}-no-Werror.patch
31 Patch6: %{name}-oiio.patch
32 Patch7: %{name}-cmake-dir.patch
33 Patch8: %{name}-disable-latex.patch
34 URL: http://opencolorio.org/
35 BuildRequires: cmake >= 2.8
36 %{?with_java:BuildRequires: jdk}
37 BuildRequires: libstdc++-devel >= 6:4.7
38 BuildRequires: pkgconfig
39 BuildRequires: python-devel
41 BuildRequires: sphinx-pdg >= 1.1
43 BuildRequires: tinyxml-devel >= 2.6.1
44 BuildRequires: yaml-cpp-devel >= 0.3.0
46 BuildRequires: OpenGL-devel
47 BuildRequires: OpenGL-glut-devel
48 BuildRequires: glew-devel >= 1.5.1
51 BuildRequires: OpenImageIO-devel
52 BuildRequires: lcms2-devel >= 2.1
54 Requires: tinyxml >= 2.6.1
55 Requires: yaml-cpp >= 0.3.0
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 OpenColorIO (OCIO) is a complete color management solution geared
60 towards motion picture production with an emphasis on visual effects
61 and computer animation. OCIO provides a straightforward and consistent
62 user experience across all supporting applications while allowing for
63 sophisticated back-end configuration options suitable for high-end
64 production usage. OCIO is compatible with the Academy Color Encoding
65 Specification (ACES) and is LUT-format agnostic, supporting many
68 %description -l pl.UTF-8
69 OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
70 przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
71 wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
72 elementy we wszystkich współpracujących aplikacjach, pozwalając na
73 wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
74 produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
75 (Academy Color Encoding Specification) i jest niezależne od formatu
76 LUT dzięki obsłudze wielu popularnych formatów.
79 Summary: OpenColorIO convert tool
80 Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
81 Group: Applications/Graphics
82 Requires: %{name} = %{version}-%{release}
83 Requires: lcms2 >= 2.1
86 OpenColorIO convert tool.
88 %description convert -l pl.UTF-8
89 Narzędzie OpenColorIO do konwersji.
92 Summary: OpenColorIO viewer based on OpenGL
93 Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
94 Group: X11/Applications/Graphics
95 Requires: %{name} = %{version}-%{release}
98 OpenColorIO viewer based on OpenGL.
100 %description display -l pl.UTF-8
101 Przeglądarka OpenColorIO oparta na OpenGL-u.
104 Summary: Header files for OpenColorIO library
105 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
106 Group: Development/Libraries
107 Requires: %{name} = %{version}-%{release}
108 Requires: libstdc++-devel
111 Header files for OpenColorIO library.
113 %description devel -l pl.UTF-8
114 Pliki nagłówkowe biblioteki OpenColorIO.
117 Summary: Static OpenColorIO library
118 Summary(pl.UTF-8): Statyczna biblioteka OpenColorIO
119 Group: Development/Libraries
120 Requires: %{name}-devel = %{version}-%{release}
123 Static OpenColorIO library.
125 %description static -l pl.UTF-8
126 Statyczna biblioteka OpenColorIO.
128 %package -n java-OpenColorIO
129 Summary: Java binding for OpenColorIO library
130 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
131 Group: Libraries/Java
132 Requires: %{name} = %{version}-%{release}
134 %description -n java-OpenColorIO
135 Java binding for OpenColorIO library.
137 %description -n java-OpenColorIO -l pl.UTF-8
138 Wiązanie Javy do biblioteki OpenColorIO.
140 %package -n python-OpenColorIO
141 Summary: Python binding for OpenColorIO library
142 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
143 Group: Libraries/Python
144 Requires: %{name} = %{version}-%{release}
146 %description -n python-OpenColorIO
147 Python binding for OpenColorIO library.
149 %description -n python-OpenColorIO -l pl.UTF-8
150 Wiązanie Pythona do biblioteki OpenColorIO.
152 %package -n python-OpenColorIO-devel
153 Summary: Header file for PyOpenColorIO API
154 Summary(pl.UTF-8): Plik nagłówkowy API PyOpenColorIO
155 Group: Development/Libraries
156 Requires: %{name}-devel = %{version}-%{release}
157 Requires: python-OpenColorIO = %{version}-%{release}
159 %description -n python-OpenColorIO-devel
160 Header file for PyOpenColorIO API.
162 %description -n python-OpenColorIO-devel -l pl.UTF-8
163 Plik nagłówkowy API PyOpenColorIO.
178 # required for cmake to find JNI headers/libs when lib64 is in use
179 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
183 # yaml-cpp 0.6.x requires C++11
184 CXXFLAGS="%{rpmcxxflags} -std=c++11"
186 %{!?with_oiio:-DDISABLE_OIIO=ON} \
187 -DOCIO_BUILD_DOCS=ON \
189 -DOCIO_BUILD_JNIGLUE=ON \
190 -DOCIO_STATIC_JNIGLUE=OFF \
192 %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
193 -DUSE_EXTERNAL_LCMS=ON \
194 -DUSE_EXTERNAL_TINYXML=ON \
195 -DUSE_EXTERNAL_YAML=ON
200 rm -rf $RPM_BUILD_ROOT
202 %{__make} -C build install \
203 DESTDIR=$RPM_BUILD_ROOT
205 # not needed when installing to /usr
206 %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
208 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO
211 rm -rf $RPM_BUILD_ROOT
213 %post -p /sbin/ldconfig
214 %postun -p /sbin/ldconfig
216 %post -n java-OpenColorIO -p /sbin/ldconfig
217 %postun -n java-OpenColorIO -p /sbin/ldconfig
219 %post -n python-OpenColorIO -p /sbin/ldconfig
220 %postun -n python-OpenColorIO -p /sbin/ldconfig
223 %defattr(644,root,root,755)
224 %doc ChangeLog LICENSE README.md
225 %attr(755,root,root) %{_bindir}/ociobakelut
226 %attr(755,root,root) %{_bindir}/ociocheck
227 %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
228 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.1
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_bindir}/ocioconvert
234 %attr(755,root,root) %{_bindir}/ociolutimage
237 %if %{with oiio} && %{with opengl}
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/ociodisplay
244 %defattr(644,root,root,755)
245 %doc build/docs/build-html/*
246 %attr(755,root,root) %{_libdir}/libOpenColorIO.so
247 %{_includedir}/OpenColorIO
248 %{_pkgconfigdir}/OpenColorIO.pc
249 %{_libdir}/cmake/OpenColorIO
252 %defattr(644,root,root,755)
253 %{_libdir}/libOpenColorIO.a
256 %files -n java-OpenColorIO
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so.*.*.*
259 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO-JNI.so.1
260 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so
261 %dir %{_datadir}/ocio
262 %{_datadir}/ocio/OpenColorIO-%{version}.jar
265 %files -n python-OpenColorIO
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{py_sitedir}/PyOpenColorIO.so
269 %files -n python-OpenColorIO-devel
270 %defattr(644,root,root,755)
271 %{_includedir}/PyOpenColorIO