]>
Commit | Line | Data |
---|---|---|
52901ddc JB |
1 | # TODO: |
2 | # - OpenFX plugin | |
3 | # - truelight http://www.filmlight.ltd.uk/products/truelight/overview_tl.php (proprietary?) | |
4 | # - nuke: http://docs.thefoundry.co.uk/products/nuke/ (proprietary) | |
27b6cb64 JB |
5 | # |
6 | # Conditional build: | |
27b6cb64 | 7 | %bcond_without opengl # OpenGL-dependent app (ociodisplay) |
52901ddc JB |
8 | %bcond_with java # JNI glue (outdated as of 2.2.1) |
9 | %bcond_without doc # documentation | |
27b6cb64 JB |
10 | %bcond_with sse2 # use SSE2 instructions |
11 | # | |
52901ddc | 12 | %ifarch %{x8664} pentium4 x32 |
27b6cb64 JB |
13 | %define with_sse2 1 |
14 | %endif | |
15 | Summary: Complete color management solution | |
16 | Summary(pl.UTF-8): Kompletny pakiet do zarządzania kolorami | |
17 | Name: OpenColorIO | |
52901ddc | 18 | Version: 2.2.1 |
77885945 | 19 | Release: 3 |
27b6cb64 JB |
20 | License: BSD |
21 | Group: Libraries | |
9158e0fc | 22 | #Source0Download: https://github.com/imageworks/OpenColorIO/releases |
b9df10ac | 23 | Source0: https://github.com/imageworks/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz |
52901ddc JB |
24 | # Source0-md5: 372d6982cf01818a21a12f9628701a91 |
25 | Patch0: %{name}-java.patch | |
09e1f3a9 | 26 | Patch1: %{name}-yaml-cpp.patch |
27b6cb64 | 27 | URL: http://opencolorio.org/ |
0da099bd | 28 | BuildRequires: Imath-devel >= 3.1.2 |
52901ddc JB |
29 | BuildRequires: OpenEXR-devel >= 3.0 |
30 | BuildRequires: cmake >= 3.12 | |
31 | BuildRequires: expat-devel >= 2.4.1 | |
27b6cb64 | 32 | %{?with_java:BuildRequires: jdk} |
52901ddc JB |
33 | BuildRequires: libstdc++-devel >= 6:5 |
34 | BuildRequires: minizip-ng-devel >= 3.0.7 | |
27b6cb64 | 35 | BuildRequires: pkgconfig |
52901ddc | 36 | BuildRequires: pystring-devel >= 1.1.3 |
0da099bd | 37 | BuildRequires: python3-devel |
52901ddc JB |
38 | BuildRequires: python3-pybind11 >= 2.9.2 |
39 | BuildRequires: rpm-build >= 4.6 | |
40 | BuildRequires: rpmbuild(macros) >= 1.742 | |
41 | BuildRequires: tinyxml-devel >= 2.6.1 | |
09e1f3a9 | 42 | BuildRequires: yaml-cpp-devel >= 0.8.0 |
52901ddc | 43 | BuildRequires: zlib-devel >= 1.2.13 |
b3e55b33 | 44 | %if %{with doc} |
52901ddc | 45 | BuildRequires: python3-breathe |
0da099bd | 46 | BuildRequires: python3-recommonmark |
52901ddc JB |
47 | BuildRequires: python3-six |
48 | BuildRequires: python3-sphinx_press_theme | |
49 | BuildRequires: python3-sphinx_tabs | |
0da099bd | 50 | BuildRequires: python3-testresources |
68f4aba6 | 51 | BuildRequires: sphinx-pdg >= 1.1 |
68f4aba6 | 52 | %endif |
27b6cb64 | 53 | %if %{with opengl} |
52901ddc | 54 | BuildRequires: OpenGL-GLX-devel |
27b6cb64 JB |
55 | BuildRequires: OpenGL-devel |
56 | BuildRequires: OpenGL-glut-devel | |
57 | BuildRequires: glew-devel >= 1.5.1 | |
58 | %endif | |
52901ddc JB |
59 | Requires: expat >= 2.4.1 |
60 | Requires: minizip-ng >= 3.0.7 | |
27b6cb64 | 61 | Requires: tinyxml >= 2.6.1 |
09e1f3a9 | 62 | Requires: yaml-cpp >= 0.8.0 |
52901ddc JB |
63 | Requires: zlib >= 1.2.13 |
64 | %if %{without java} | |
65 | Obsoletes: java-OpenColorIO < 2 | |
66 | %endif | |
27b6cb64 JB |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
69 | %description | |
70 | OpenColorIO (OCIO) is a complete color management solution geared | |
71 | towards motion picture production with an emphasis on visual effects | |
72 | and computer animation. OCIO provides a straightforward and consistent | |
73 | user experience across all supporting applications while allowing for | |
74 | sophisticated back-end configuration options suitable for high-end | |
75 | production usage. OCIO is compatible with the Academy Color Encoding | |
76 | Specification (ACES) and is LUT-format agnostic, supporting many | |
77 | popular formats. | |
78 | ||
79 | %description -l pl.UTF-8 | |
80 | OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami | |
81 | przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów | |
82 | wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne | |
83 | elementy we wszystkich współpracujących aplikacjach, pozwalając na | |
84 | wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań | |
85 | produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES | |
86 | (Academy Color Encoding Specification) i jest niezależne od formatu | |
87 | LUT dzięki obsłudze wielu popularnych formatów. | |
88 | ||
89 | %package convert | |
90 | Summary: OpenColorIO convert tool | |
91 | Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji | |
92 | Group: Applications/Graphics | |
93 | Requires: %{name} = %{version}-%{release} | |
52901ddc | 94 | Requires: lcms2 >= 2.2 |
27b6cb64 JB |
95 | |
96 | %description convert | |
97 | OpenColorIO convert tool. | |
98 | ||
99 | %description convert -l pl.UTF-8 | |
100 | Narzędzie OpenColorIO do konwersji. | |
101 | ||
102 | %package display | |
103 | Summary: OpenColorIO viewer based on OpenGL | |
104 | Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u | |
105 | Group: X11/Applications/Graphics | |
106 | Requires: %{name} = %{version}-%{release} | |
107 | ||
108 | %description display | |
109 | OpenColorIO viewer based on OpenGL. | |
110 | ||
111 | %description display -l pl.UTF-8 | |
112 | Przeglądarka OpenColorIO oparta na OpenGL-u. | |
113 | ||
114 | %package devel | |
115 | Summary: Header files for OpenColorIO library | |
116 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO | |
117 | Group: Development/Libraries | |
118 | Requires: %{name} = %{version}-%{release} | |
52901ddc | 119 | Requires: libstdc++-devel >= 6:5 |
27b6cb64 JB |
120 | |
121 | %description devel | |
122 | Header files for OpenColorIO library. | |
123 | ||
124 | %description devel -l pl.UTF-8 | |
125 | Pliki nagłówkowe biblioteki OpenColorIO. | |
126 | ||
52901ddc JB |
127 | %package apidocs |
128 | Summary: API documentation for OpenColorIO library | |
129 | Summary(pl.UTF-8): Dokumentacja API biblioteki OpenColorIO | |
130 | Group: Documentation | |
131 | BuildArch: noarch | |
132 | ||
133 | %description apidocs | |
134 | API documentation for OpenColorIO library. | |
135 | ||
136 | %description apidocs -l pl.UTF-8 | |
137 | Dokumentacja API biblioteki OpenColorIO. | |
138 | ||
27b6cb64 JB |
139 | %package -n java-OpenColorIO |
140 | Summary: Java binding for OpenColorIO library | |
141 | Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO | |
142 | Group: Libraries/Java | |
143 | Requires: %{name} = %{version}-%{release} | |
144 | ||
145 | %description -n java-OpenColorIO | |
146 | Java binding for OpenColorIO library. | |
147 | ||
148 | %description -n java-OpenColorIO -l pl.UTF-8 | |
149 | Wiązanie Javy do biblioteki OpenColorIO. | |
150 | ||
0da099bd | 151 | %package -n python3-OpenColorIO |
27b6cb64 JB |
152 | Summary: Python binding for OpenColorIO library |
153 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO | |
154 | Group: Libraries/Python | |
155 | Requires: %{name} = %{version}-%{release} | |
156 | ||
0da099bd | 157 | %description -n python3-OpenColorIO |
27b6cb64 JB |
158 | Python binding for OpenColorIO library. |
159 | ||
0da099bd | 160 | %description -n python3-OpenColorIO -l pl.UTF-8 |
27b6cb64 JB |
161 | Wiązanie Pythona do biblioteki OpenColorIO. |
162 | ||
27b6cb64 | 163 | %prep |
b9df10ac | 164 | %setup -q |
52901ddc | 165 | %patch0 -p1 |
09e1f3a9 | 166 | %patch1 -p1 |
27b6cb64 JB |
167 | |
168 | %build | |
1ebfdec0 | 169 | # required for cmake to find JNI headers/libs when lib64 is in use |
29d4f210 JB |
170 | %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java} |
171 | ||
27b6cb64 JB |
172 | install -d build |
173 | cd build | |
174 | %cmake .. \ | |
0da099bd | 175 | -DCMAKE_CONFIGURATION_TYPES=PLD \ |
e9435103 | 176 | -DCMAKE_CXX_STANDARD=14 \ |
52901ddc JB |
177 | %{cmake_on_off doc OCIO_BUILD_DOCS} \ |
178 | %{cmake_on_off java OCIO_BUILD_JAVA} \ | |
52901ddc | 179 | %{!?with_sse2:-DOCIO_USE_SSE=OFF} |
27b6cb64 JB |
180 | |
181 | %{__make} | |
182 | ||
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} -C build install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT | |
188 | ||
27b6cb64 JB |
189 | # not needed when installing to /usr |
190 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh | |
52901ddc JB |
191 | # packaged as %doc |
192 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenColorIO | |
27b6cb64 JB |
193 | |
194 | %clean | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | %post -p /sbin/ldconfig | |
198 | %postun -p /sbin/ldconfig | |
199 | ||
200 | %post -n java-OpenColorIO -p /sbin/ldconfig | |
201 | %postun -n java-OpenColorIO -p /sbin/ldconfig | |
202 | ||
0da099bd JR |
203 | %post -n python3-OpenColorIO -p /sbin/ldconfig |
204 | %postun -n python3-OpenColorIO -p /sbin/ldconfig | |
27b6cb64 JB |
205 | |
206 | %files | |
207 | %defattr(644,root,root,755) | |
0da099bd | 208 | %doc CHANGELOG.md LICENSE README.md |
52901ddc | 209 | %attr(755,root,root) %{_bindir}/ocioarchive |
27b6cb64 JB |
210 | %attr(755,root,root) %{_bindir}/ociobakelut |
211 | %attr(755,root,root) %{_bindir}/ociocheck | |
0da099bd JR |
212 | %attr(755,root,root) %{_bindir}/ociochecklut |
213 | %attr(755,root,root) %{_bindir}/ociomakeclf | |
52901ddc | 214 | %attr(755,root,root) %{_bindir}/ocioperf |
0da099bd | 215 | %attr(755,root,root) %{_bindir}/ociowrite |
27b6cb64 | 216 | %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.* |
52901ddc | 217 | %attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.2.2 |
27b6cb64 | 218 | |
27b6cb64 JB |
219 | %files convert |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_bindir}/ocioconvert | |
d8e33fed | 222 | %attr(755,root,root) %{_bindir}/ociolutimage |
27b6cb64 | 223 | |
52901ddc | 224 | %if %{with opengl} |
27b6cb64 JB |
225 | %files display |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_bindir}/ociodisplay | |
228 | %endif | |
229 | ||
230 | %files devel | |
231 | %defattr(644,root,root,755) | |
27b6cb64 | 232 | %attr(755,root,root) %{_libdir}/libOpenColorIO.so |
52901ddc | 233 | %{_libdir}/libOpenColorIOimageioapphelpers.a |
0da099bd | 234 | %{_libdir}/libOpenColorIOoglapphelpers.a |
27b6cb64 JB |
235 | %{_includedir}/OpenColorIO |
236 | %{_pkgconfigdir}/OpenColorIO.pc | |
b9df10ac | 237 | %{_libdir}/cmake/OpenColorIO |
27b6cb64 | 238 | |
52901ddc JB |
239 | %files apidocs |
240 | %defattr(644,root,root,755) | |
241 | %doc build/docs/build-html/{_images,_static,api,aswf,concepts,configurations,guides,quick_start,releases,tutorials,*.html,*.js} | |
242 | ||
27b6cb64 JB |
243 | %if %{with java} |
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 | |
a05bc41e | 250 | %{_datadir}/ocio/OpenColorIO-%{version}.jar |
27b6cb64 JB |
251 | %endif |
252 | ||
0da099bd | 253 | %files -n python3-OpenColorIO |
27b6cb64 | 254 | %defattr(644,root,root,755) |
0da099bd | 255 | %attr(755,root,root) %{py3_sitedir}/PyOpenColorIO.so |