]> git.pld-linux.org Git - packages/OpenColorIO.git/blame - OpenColorIO.spec
rebuild with python 3.10
[packages/OpenColorIO.git] / OpenColorIO.spec
CommitLineData
ad263843
JB
1# TODO (proprietary?):
2# - truelight http://www.filmlight.ltd.uk/products/truelight/overview_tl.php
3# - nuke: http://docs.thefoundry.co.uk/products/nuke/
27b6cb64
JB
4#
5# Conditional build:
6%bcond_without oiio # OpenImageIO-dependent apps (ocioconvert,ociodisplay)
7%bcond_without opengl # OpenGL-dependent app (ociodisplay)
0da099bd
JR
8%bcond_with java # JNI glue
9%bcond_with doc # documentation
27b6cb64
JB
10%bcond_with sse2 # use SSE2 instructions
11#
12%ifarch %{x8664} pentrium4
13%define with_sse2 1
14%endif
15Summary: Complete color management solution
16Summary(pl.UTF-8): Kompletny pakiet do zarządzania kolorami
17Name: OpenColorIO
0da099bd 18Version: 2.1.1
f8bbab2d 19Release: 2
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
0da099bd 24# Source0-md5: 604f562e073f23d88ce89ed4f7f709ba
27b6cb64 25URL: http://opencolorio.org/
0da099bd 26BuildRequires: Imath-devel >= 3.1.2
27b6cb64
JB
27BuildRequires: cmake >= 2.8
28%{?with_java:BuildRequires: jdk}
b9df10ac 29BuildRequires: libstdc++-devel >= 6:4.7
27b6cb64 30BuildRequires: pkgconfig
920ae112 31BuildRequires: pystring-devel
0da099bd
JR
32BuildRequires: python3-devel
33BuildRequires: python3-pybind11 >= 2.6.1
b3e55b33 34%if %{with doc}
0da099bd
JR
35BuildRequires: python3-recommonmark
36BuildRequires: python3-testresources
68f4aba6 37BuildRequires: sphinx-pdg >= 1.1
68f4aba6 38%endif
27b6cb64 39BuildRequires: tinyxml-devel >= 2.6.1
b9df10ac 40BuildRequires: yaml-cpp-devel >= 0.3.0
27b6cb64
JB
41%if %{with opengl}
42BuildRequires: OpenGL-devel
43BuildRequires: OpenGL-glut-devel
44BuildRequires: glew-devel >= 1.5.1
45%endif
46%if %{with oiio}
47BuildRequires: OpenImageIO-devel
48BuildRequires: lcms2-devel >= 2.1
49%endif
0da099bd 50BuildRequires: rpmbuild(macros) >= 1.742
27b6cb64 51Requires: tinyxml >= 2.6.1
b9df10ac 52Requires: yaml-cpp >= 0.3.0
27b6cb64
JB
53BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55%description
56OpenColorIO (OCIO) is a complete color management solution geared
57towards motion picture production with an emphasis on visual effects
58and computer animation. OCIO provides a straightforward and consistent
59user experience across all supporting applications while allowing for
60sophisticated back-end configuration options suitable for high-end
61production usage. OCIO is compatible with the Academy Color Encoding
62Specification (ACES) and is LUT-format agnostic, supporting many
63popular formats.
64
65%description -l pl.UTF-8
66OpenColorIO (OCIO) to kompletne rozwiązanie zarządzania kolorami
67przeznaczone do tworzenia obrazów ruchomych, w szczególności efektów
68wizualnych i animacji komputerowej. OCIO zapewnia proste i spójne
69elementy we wszystkich współpracujących aplikacjach, pozwalając na
70wyszukane opcje konfiguracyjne backendu, nadające się do zastosowań
71produkcyjnych wysokiej jakości. OCIO jest zgodne ze specyfikacją ACES
72(Academy Color Encoding Specification) i jest niezależne od formatu
73LUT dzięki obsłudze wielu popularnych formatów.
74
75%package convert
76Summary: OpenColorIO convert tool
77Summary(pl.UTF-8): Narzędzie OpenColorIO do konwersji
78Group: Applications/Graphics
79Requires: %{name} = %{version}-%{release}
b9df10ac 80Requires: lcms2 >= 2.1
27b6cb64
JB
81
82%description convert
83OpenColorIO convert tool.
84
85%description convert -l pl.UTF-8
86Narzędzie OpenColorIO do konwersji.
87
88%package display
89Summary: OpenColorIO viewer based on OpenGL
90Summary(pl.UTF-8): Przeglądarka OpenColorIO oparta na OpenGL-u
91Group: X11/Applications/Graphics
92Requires: %{name} = %{version}-%{release}
93
94%description display
95OpenColorIO viewer based on OpenGL.
96
97%description display -l pl.UTF-8
98Przeglądarka OpenColorIO oparta na OpenGL-u.
99
100%package devel
101Summary: Header files for OpenColorIO library
102Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenColorIO
103Group: Development/Libraries
104Requires: %{name} = %{version}-%{release}
105Requires: libstdc++-devel
106
107%description devel
108Header files for OpenColorIO library.
109
110%description devel -l pl.UTF-8
111Pliki nagłówkowe biblioteki OpenColorIO.
112
27b6cb64
JB
113%package -n java-OpenColorIO
114Summary: Java binding for OpenColorIO library
115Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenColorIO
116Group: Libraries/Java
117Requires: %{name} = %{version}-%{release}
118
119%description -n java-OpenColorIO
120Java binding for OpenColorIO library.
121
122%description -n java-OpenColorIO -l pl.UTF-8
123Wiązanie Javy do biblioteki OpenColorIO.
124
0da099bd 125%package -n python3-OpenColorIO
27b6cb64
JB
126Summary: Python binding for OpenColorIO library
127Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenColorIO
128Group: Libraries/Python
129Requires: %{name} = %{version}-%{release}
130
0da099bd 131%description -n python3-OpenColorIO
27b6cb64
JB
132Python binding for OpenColorIO library.
133
0da099bd 134%description -n python3-OpenColorIO -l pl.UTF-8
27b6cb64
JB
135Wiązanie Pythona do biblioteki OpenColorIO.
136
27b6cb64 137%prep
b9df10ac 138%setup -q
27b6cb64
JB
139
140%build
1ebfdec0 141# required for cmake to find JNI headers/libs when lib64 is in use
29d4f210
JB
142%{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
143
27b6cb64
JB
144install -d build
145cd build
146%cmake .. \
0da099bd 147 -DCMAKE_CONFIGURATION_TYPES=PLD \
e9435103 148 -DCMAKE_CXX_STANDARD=14 \
0da099bd
JR
149 %cmake_on_off doc OCIO_BUILD_DOCS \
150 %cmake_on_off java OCIO_BUILD_JAVA \
b9df10ac 151 %{!?with_oiio:-DDISABLE_OIIO=ON} \
27b6cb64 152 %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
b9df10ac 153 -DUSE_EXTERNAL_LCMS=ON \
57720a49 154 -DUSE_EXTERNAL_TINYXML=ON \
a05bc41e 155 -DUSE_EXTERNAL_YAML=ON
27b6cb64
JB
156
157%{__make}
158
159%install
160rm -rf $RPM_BUILD_ROOT
161
162%{__make} -C build install \
163 DESTDIR=$RPM_BUILD_ROOT
164
27b6cb64
JB
165# not needed when installing to /usr
166%{__rm} $RPM_BUILD_ROOT%{_datadir}/ocio/setup_ocio.sh
27b6cb64
JB
167
168%clean
169rm -rf $RPM_BUILD_ROOT
170
171%post -p /sbin/ldconfig
172%postun -p /sbin/ldconfig
173
174%post -n java-OpenColorIO -p /sbin/ldconfig
175%postun -n java-OpenColorIO -p /sbin/ldconfig
176
0da099bd
JR
177%post -n python3-OpenColorIO -p /sbin/ldconfig
178%postun -n python3-OpenColorIO -p /sbin/ldconfig
27b6cb64
JB
179
180%files
181%defattr(644,root,root,755)
0da099bd 182%doc CHANGELOG.md LICENSE README.md
27b6cb64
JB
183%attr(755,root,root) %{_bindir}/ociobakelut
184%attr(755,root,root) %{_bindir}/ociocheck
0da099bd
JR
185%attr(755,root,root) %{_bindir}/ociochecklut
186%attr(755,root,root) %{_bindir}/ociomakeclf
187%attr(755,root,root) %{_bindir}/ociowrite
27b6cb64 188%attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
0da099bd 189%attr(755,root,root) %ghost %{_libdir}/libOpenColorIO.so.2.1
27b6cb64
JB
190
191%if %{with oiio}
192%files convert
193%defattr(644,root,root,755)
194%attr(755,root,root) %{_bindir}/ocioconvert
d8e33fed 195%attr(755,root,root) %{_bindir}/ociolutimage
e9435103 196%attr(755,root,root) %{_bindir}/ocioperf
27b6cb64
JB
197%endif
198
199%if %{with oiio} && %{with opengl}
200%files display
201%defattr(644,root,root,755)
202%attr(755,root,root) %{_bindir}/ociodisplay
203%endif
204
205%files devel
206%defattr(644,root,root,755)
0da099bd 207%{?with_doc:%doc build/docs/build-html/*}
27b6cb64 208%attr(755,root,root) %{_libdir}/libOpenColorIO.so
0da099bd 209%{_libdir}/libOpenColorIOoglapphelpers.a
a7185576 210%{?with_oiio:%{_libdir}/libOpenColorIOoiiohelpers.a}
27b6cb64
JB
211%{_includedir}/OpenColorIO
212%{_pkgconfigdir}/OpenColorIO.pc
b9df10ac 213%{_libdir}/cmake/OpenColorIO
27b6cb64 214
27b6cb64
JB
215%if %{with java}
216%files -n java-OpenColorIO
217%defattr(644,root,root,755)
218%attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so.*.*.*
219%attr(755,root,root) %ghost %{_libdir}/libOpenColorIO-JNI.so.1
220%attr(755,root,root) %{_libdir}/libOpenColorIO-JNI.so
221%dir %{_datadir}/ocio
a05bc41e 222%{_datadir}/ocio/OpenColorIO-%{version}.jar
27b6cb64
JB
223%endif
224
0da099bd 225%files -n python3-OpenColorIO
27b6cb64 226%defattr(644,root,root,755)
0da099bd 227%attr(755,root,root) %{py3_sitedir}/PyOpenColorIO.so
This page took 0.095288 seconds and 4 git commands to generate.