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 # for yaml-cpp 0.5.0 (unfinished)
28 Patch3: %{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
37 %{?with_docs:BuildRequires: sphinx-pdg >= 1.1}
38 BuildRequires: tinyxml-devel >= 2.6.1
39 BuildRequires: yaml-cpp-devel >= 0.2.6
40 BuildRequires: yaml-cpp-devel < 0.4.0
42 BuildRequires: OpenGL-devel
43 BuildRequires: OpenGL-glut-devel
44 BuildRequires: glew-devel >= 1.5.1
47 BuildRequires: OpenImageIO-devel
48 BuildRequires: lcms2-devel >= 2.1
50 Requires: tinyxml >= 2.6.1
51 Requires: yaml-cpp >= 0.2.6
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 OpenColorIO (OCIO) is a complete color management solution geared
56 towards motion picture production with an emphasis on visual effects
57 and computer animation. OCIO provides a straightforward and consistent
58 user experience across all supporting applications while allowing for
59 sophisticated back-end configuration options suitable for high-end
60 production usage. OCIO is compatible with the Academy Color Encoding
61 Specification (ACES) and is LUT-format agnostic, supporting many
64 %description -l pl.UTF-8
65 OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
66 przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
67 wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
68 elementy we wszystkich współpracujących aplikacjach, pozwalając na
69 wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
70 produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
71 (Academy Color Encoding Specification) i jest niezależne od formatu
72 LUT dzięki obsłudze wielu popularnych formatów.
75 Summary: OpenColorIO convert tool
76 Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
77 Group: Applications/Graphics
78 Requires: %{name} = %{version}-%{release}
81 OpenColorIO convert tool.
83 %description convert -l pl.UTF-8
84 Narzędzie OpenColorIO do konwersji.
87 Summary: OpenColorIO viewer based on OpenGL
88 Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
89 Group: X11/Applications/Graphics
90 Requires: %{name} = %{version}-%{release}
93 OpenColorIO viewer based on OpenGL.
95 %description display -l pl.UTF-8
96 Przeglądarka OpenColorIO oparta na OpenGL-u.
99 Summary: Header files for OpenColorIO library
100 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
101 Group: Development/Libraries
102 Requires: %{name} = %{version}-%{release}
103 Requires: libstdc++-devel
106 Header files for OpenColorIO library.
108 %description devel -l pl.UTF-8
109 Pliki nagłówkowe biblioteki OpenColorIO.
112 Summary: Static OpenColorIO library
113 Summary(pl.UTF-8): Statyczna biblioteka OpenColorIO
114 Group: Development/Libraries
115 Requires: %{name}-devel = %{version}-%{release}
118 Static OpenColorIO library.
120 %description static -l pl.UTF-8
121 Statyczna biblioteka OpenColorIO.
123 %package -n java-OpenColorIO
124 Summary: Java binding for OpenColorIO library
125 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
126 Group: Libraries/Java
127 Requires: %{name} = %{version}-%{release}
129 %description -n java-OpenColorIO
130 Java binding for OpenColorIO library.
132 %description -n java-OpenColorIO -l pl.UTF-8
133 Wiązanie Javy do biblioteki OpenColorIO.
135 %package -n python-OpenColorIO
136 Summary: Python binding for OpenColorIO library
137 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
138 Group: Libraries/Python
139 Requires: %{name} = %{version}-%{release}
141 %description -n python-OpenColorIO
142 Python binding for OpenColorIO library.
144 %description -n python-OpenColorIO -l pl.UTF-8
145 Wiązanie Pythona do biblioteki OpenColorIO.
147 %package -n python-OpenColorIO-devel
148 Summary: Header file for PyOpenColorIO API
149 Summary(pl.UTF-8): Plik nagłówkowy API PyOpenColorIO
150 Group: Development/Libraries
151 Requires: %{name}-devel = %{version}-%{release}
152 Requires: python-OpenColorIO = %{version}-%{release}
154 %description -n python-OpenColorIO-devel
155 Header file for PyOpenColorIO API.
157 %description -n python-OpenColorIO-devel -l pl.UTF-8
158 Plik nagłówkowy API PyOpenColorIO.
161 %setup -q -n imageworks-OpenColorIO-8883824
167 # required for cmake to find JNI headers/libs when lib64 is in use
168 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
173 -DOCIO_BUILD_DOCS=ON \
175 -DOCIO_BUILD_JNIGLUE=ON \
176 -DOCIO_STATIC_JNIGLUE=OFF \
178 %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
179 -DUSE_EXTERNAL_TINYXML=ON \
180 -DUSE_EXTERNAL_YAML=ON
185 rm -rf $RPM_BUILD_ROOT
187 %{__make} -C build install \
188 DESTDIR=$RPM_BUILD_ROOT
190 # not needed when installing to /usr
191 %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
193 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO
196 rm -rf $RPM_BUILD_ROOT
198 %post -p /sbin/ldconfig
199 %postun -p /sbin/ldconfig
201 %post -n java-OpenColorIO -p /sbin/ldconfig
202 %postun -n java-OpenColorIO -p /sbin/ldconfig
204 %post -n python-OpenColorIO -p /sbin/ldconfig
205 %postun -n python-OpenColorIO -p /sbin/ldconfig
208 %defattr(644,root,root,755)
209 %doc ChangeLog LICENSE README
210 %attr(755,root,root) %{_bindir}/ociobakelut
211 %attr(755,root,root) %{_bindir}/ociocheck
212 %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.1
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_bindir}/ocioconvert
221 %if %{with oiio} && %{with opengl}
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/ociodisplay
228 %defattr(644,root,root,755)
229 %doc build/docs/build-html/*
230 %attr(755,root,root) %{_libdir}/libOpenColorIO.so
231 %{_includedir}/OpenColorIO
232 %{_pkgconfigdir}/OpenColorIO.pc
235 %defattr(644,root,root,755)
236 %{_libdir}/libOpenColorIO.a
239 %files -n java-OpenColorIO
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so.*.*.*
242 %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO-JNI.so.1
243 %attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so
244 %dir %{_datadir}/ocio
245 %{_datadir}/ocio/OpenColorIO-%{version}.jar
248 %files -n python-OpenColorIO
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{py_sitedir}/PyOpenColorIO.so
252 %files -n python-OpenColorIO-devel
253 %defattr(644,root,root,755)
254 %{_includedir}/PyOpenColorIO