]> git.pld-linux.org Git - packages/OpenColorIO.git/blame - OpenColorIO.spec
- release 3 (with ZLIB_VERSION fixed)
[packages/OpenColorIO.git] / OpenColorIO.spec
CommitLineData
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
15Summary: Complete color management solution
16Summary(pl.UTF-8): Kompletny pakiet do zarządzania kolorami
17Name: OpenColorIO
52901ddc 18Version: 2.2.1
77885945 19Release: 3
27b6cb64
JB
20License: BSD
21Group: Libraries
9158e0fc 22#Source0Download: https://github.com/imageworks/OpenColorIO/releases
b9df10ac 23Source0: https://github.com/imageworks/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
52901ddc
JB
24# Source0-md5: 372d6982cf01818a21a12f9628701a91
25Patch0: %{name}-java.patch
09e1f3a9 26Patch1: %{name}-yaml-cpp.patch
27b6cb64 27URL: http://opencolorio.org/
0da099bd 28BuildRequires: Imath-devel >= 3.1.2
52901ddc
JB
29BuildRequires: OpenEXR-devel >= 3.0
30BuildRequires: cmake >= 3.12
31BuildRequires: expat-devel >= 2.4.1
27b6cb64 32%{?with_java:BuildRequires: jdk}
52901ddc
JB
33BuildRequires: libstdc++-devel >= 6:5
34BuildRequires: minizip-ng-devel >= 3.0.7
27b6cb64 35BuildRequires: pkgconfig
52901ddc 36BuildRequires: pystring-devel >= 1.1.3
0da099bd 37BuildRequires: python3-devel
52901ddc
JB
38BuildRequires: python3-pybind11 >= 2.9.2
39BuildRequires: rpm-build >= 4.6
40BuildRequires: rpmbuild(macros) >= 1.742
41BuildRequires: tinyxml-devel >= 2.6.1
09e1f3a9 42BuildRequires: yaml-cpp-devel >= 0.8.0
52901ddc 43BuildRequires: zlib-devel >= 1.2.13
b3e55b33 44%if %{with doc}
52901ddc 45BuildRequires: python3-breathe
0da099bd 46BuildRequires: python3-recommonmark
52901ddc
JB
47BuildRequires: python3-six
48BuildRequires: python3-sphinx_press_theme
49BuildRequires: python3-sphinx_tabs
0da099bd 50BuildRequires: python3-testresources
68f4aba6 51BuildRequires: sphinx-pdg >= 1.1
68f4aba6 52%endif
27b6cb64 53%if %{with opengl}
52901ddc 54BuildRequires: OpenGL-GLX-devel
27b6cb64
JB
55BuildRequires: OpenGL-devel
56BuildRequires: OpenGL-glut-devel
57BuildRequires: glew-devel >= 1.5.1
58%endif
52901ddc
JB
59Requires: expat >= 2.4.1
60Requires: minizip-ng >= 3.0.7
27b6cb64 61Requires: tinyxml >= 2.6.1
09e1f3a9 62Requires: yaml-cpp >= 0.8.0
52901ddc
JB
63Requires: zlib >= 1.2.13
64%if %{without java}
65Obsoletes: java-OpenColorIO < 2
66%endif
27b6cb64
JB
67BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
69%description
70OpenColorIO (OCIO) is a complete color management solution geared
71towards motion picture production with an emphasis on visual effects
72and computer animation. OCIO provides a straightforward and consistent
73user experience across all supporting applications while allowing for
74sophisticated back-end configuration options suitable for high-end
75production usage. OCIO is compatible with the Academy Color Encoding
76Specification (ACES) and is LUT-format agnostic, supporting many
77popular formats.
78
79%description -l pl.UTF-8
80OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
81przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
82wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
83elementy we wszystkich współpracujących aplikacjach, pozwalając na
84wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
85produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
86(Academy Color Encoding Specification) i jest niezależne od formatu
87LUT dzięki obsłudze wielu popularnych formatów.
88
89%package convert
90Summary: OpenColorIO convert tool
91Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
92Group: Applications/Graphics
93Requires: %{name} = %{version}-%{release}
52901ddc 94Requires: lcms2 >= 2.2
27b6cb64
JB
95
96%description convert
97OpenColorIO convert tool.
98
99%description convert -l pl.UTF-8
100Narzędzie OpenColorIO do konwersji.
101
102%package display
103Summary: OpenColorIO viewer based on OpenGL
104Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
105Group: X11/Applications/Graphics
106Requires: %{name} = %{version}-%{release}
107
108%description display
109OpenColorIO viewer based on OpenGL.
110
111%description display -l pl.UTF-8
112Przeglądarka OpenColorIO oparta na OpenGL-u.
113
114%package devel
115Summary: Header files for OpenColorIO library
116Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
117Group: Development/Libraries
118Requires: %{name} = %{version}-%{release}
52901ddc 119Requires: libstdc++-devel >= 6:5
27b6cb64
JB
120
121%description devel
122Header files for OpenColorIO library.
123
124%description devel -l pl.UTF-8
125Pliki nagłówkowe biblioteki OpenColorIO.
126
52901ddc
JB
127%package apidocs
128Summary: API documentation for OpenColorIO library
129Summary(pl.UTF-8): Dokumentacja API biblioteki OpenColorIO
130Group: Documentation
131BuildArch: noarch
132
133%description apidocs
134API documentation for OpenColorIO library.
135
136%description apidocs -l pl.UTF-8
137Dokumentacja API biblioteki OpenColorIO.
138
27b6cb64
JB
139%package -n java-OpenColorIO
140Summary: Java binding for OpenColorIO library
141Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
142Group: Libraries/Java
143Requires: %{name} = %{version}-%{release}
144
145%description -n java-OpenColorIO
146Java binding for OpenColorIO library.
147
148%description -n java-OpenColorIO -l pl.UTF-8
149Wiązanie Javy do biblioteki OpenColorIO.
150
0da099bd 151%package -n python3-OpenColorIO
27b6cb64
JB
152Summary: Python binding for OpenColorIO library
153Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
154Group: Libraries/Python
155Requires: %{name} = %{version}-%{release}
156
0da099bd 157%description -n python3-OpenColorIO
27b6cb64
JB
158Python binding for OpenColorIO library.
159
0da099bd 160%description -n python3-OpenColorIO -l pl.UTF-8
27b6cb64
JB
161Wią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
172install -d build
173cd 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
184rm -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
195rm -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
This page took 0.314323 seconds and 4 git commands to generate.