]>
Commit | Line | Data |
---|---|---|
8b3f44c7 JB |
1 | # |
2 | # Conditional build: | |
3ab7d698 | 3 | %bcond_without static_libs # static libraries |
8b3f44c7 JB |
4 | %bcond_without fltk # FLTK GUI tools (oyranos-config-fltk) |
5 | %bcond_without qt # Qt GUI tools (qscmevents) | |
f33c1f91 | 6 | |
8b3f44c7 JB |
7 | Summary: Colour Management System on operating system level |
8 | Summary(pl.UTF-8): System zarządzania kolorami na poziomie systemu operacyjnego | |
9 | Name: oyranos | |
3ab7d698 JB |
10 | Version: 0.9.6 |
11 | Release: 1 | |
8b3f44c7 JB |
12 | License: BSD |
13 | Group: Applications/Graphics | |
3ab7d698 JB |
14 | #Source0Download: https://github.com/oyranos-cms/oyranos/releases |
15 | Source0: https://github.com/oyranos-cms/oyranos/archive/%{version}/%{name}-%{version}.tar.gz | |
16 | # Source0-md5: 2a8c9783f762906ba7ff9ef43612041f | |
16c9036b | 17 | Patch0: no-mesa10.patch |
c4c320e2 | 18 | Patch1: %{name}-libraw.patch |
d538f728 | 19 | Patch2: %{name}-exiv2.patch |
3ab7d698 JB |
20 | Patch3: %{name}-elektra.patch |
21 | Patch4: %{name}-qt.patch | |
22 | # not working currently (Aug 2023) | |
23 | #URL: http://www.oyranos.org/ | |
24 | URL: https://github.com/oyranos-cms/oyranos | |
aea89ab1 | 25 | BuildRequires: OpenICC-devel |
8b3f44c7 | 26 | BuildRequires: cairo-devel |
f33c1f91 | 27 | BuildRequires: cmake >= 2.6.4 |
8b3f44c7 | 28 | BuildRequires: cups-devel |
3ab7d698 | 29 | BuildRequires: doxygen >= 1.5.8 |
8b3f44c7 JB |
30 | BuildRequires: elektra-devel >= 0.7 |
31 | BuildRequires: exiv2-devel | |
16c9036b JR |
32 | %if %{with fltk} |
33 | BuildRequires: fltk-devel | |
ca6fadaf | 34 | BuildRequires: fltk-fluid |
16c9036b JR |
35 | BuildRequires: fltk-gl-devel |
36 | %endif | |
8b3f44c7 | 37 | BuildRequires: gcc >= 6:4.2 |
f46794ce | 38 | BuildRequires: gettext-tools |
9faf0cb8 JB |
39 | # not required for releases (generated code included) |
40 | #BuildRequires: grantlee >= 0.2.0 | |
8b3f44c7 JB |
41 | BuildRequires: lcms-devel |
42 | BuildRequires: lcms2-devel | |
3ab7d698 | 43 | BuildRequires: libXcm-devel >= 0.5.4 |
8b3f44c7 JB |
44 | BuildRequires: libgomp-devel |
45 | BuildRequires: libltdl-devel | |
46 | BuildRequires: libpng-devel | |
c4c320e2 | 47 | BuildRequires: libraw-devel >= 0.21 |
3ab7d698 | 48 | BuildRequires: libtiff-devel |
8b3f44c7 JB |
49 | BuildRequires: libxml2-devel >= 2 |
50 | BuildRequires: pkgconfig | |
d538f728 | 51 | BuildRequires: rpm-build >= 4.6 |
c4c320e2 | 52 | BuildRequires: rpmbuild(macros) >= 1.605 |
3ab7d698 | 53 | BuildRequires: sane-backends-devel |
8b3f44c7 JB |
54 | BuildRequires: xorg-lib-libX11-devel |
55 | BuildRequires: xorg-lib-libXfixes-devel | |
56 | BuildRequires: xorg-lib-libXinerama-devel | |
3ab7d698 | 57 | BuildRequires: xorg-lib-libXmu-devel |
8b3f44c7 JB |
58 | BuildRequires: xorg-lib-libXrandr-devel |
59 | BuildRequires: xorg-lib-libXxf86vm-devel | |
60 | BuildRequires: yajl-devel | |
61 | %if %{with qt} | |
3ab7d698 JB |
62 | BuildRequires: Qt5Core-devel >= 5 |
63 | BuildRequires: Qt5Gui-devel >= 5 | |
64 | BuildRequires: Qt5Widgets-devel >= 5 | |
65 | BuildRequires: Qt5X11Extras-devel >= 5 | |
66 | BuildRequires: Qt5Xml-devel >= 5 | |
67 | BuildRequires: Qt5Svg-devel >= 5 | |
68 | BuildRequires: qt5-build >= 5 | |
8b3f44c7 JB |
69 | %endif |
70 | Requires: %{name}-libs = %{version}-%{release} | |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
72 | ||
73 | %description | |
74 | Oyranos is a Colour Management System (CMS) on operating system level. | |
75 | It allows to match predictably input device colours to output device | |
76 | colours across supporting applications. One goal is to make colour | |
77 | management useful for all users in a automated fashion and regardless | |
78 | of any technical knowledge. | |
79 | ||
80 | %description -l pl.UTF-8 | |
81 | Oyranos to system zarządzania kolorami (CMS - Colour Management | |
82 | System) na poziomie systemu operacyjnego. Pozwala na przewidywalne | |
83 | powiązanie kolorów urządzeń wejściowych z kolorami urządzeń | |
84 | wyjściowych poprzez wszystkie aplikacje obsługujące ten system. Celem | |
85 | jest uprzystępnienie zarządzania kolorami dla wszystkich użytkowników | |
86 | w sposób zautomatyzowany, niezależny od wiedzy technicznej. | |
87 | ||
9faf0cb8 JB |
88 | %package module-cups |
89 | Summary: CUPS device support for Oyranos Colour Management System | |
90 | Summary(pl.UTF-8): Obsługa urządzeń CUPS dla systemu zarządzania kolorami Oyranos | |
91 | Group: Applications/Graphics | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | ||
94 | %description module-cups | |
95 | CUPS device support for Oyranos Colour Management System. | |
96 | ||
97 | %description module-cups -l pl.UTF-8 | |
98 | Obsługa urządzeń CUPS dla systemu zarządzania kolorami Oyranos. | |
99 | ||
3ab7d698 JB |
100 | %package module-sane |
101 | Summary: SANE device support for Oyranos Colour Management System | |
102 | Summary(pl.UTF-8): Obsługa urządzeń SANE dla systemu zarządzania kolorami Oyranos | |
103 | Group: Applications/Graphics | |
104 | Requires: %{name} = %{version}-%{release} | |
105 | ||
106 | %description module-sane | |
107 | SANE device support for Oyranos Colour Management System. | |
108 | ||
109 | %description module-sane -l pl.UTF-8 | |
110 | Obsługa urządzeń SANE dla systemu zarządzania kolorami Oyranos. | |
111 | ||
9faf0cb8 JB |
112 | %package module-x11 |
113 | Summary: X11 and monitor support for Oyranos Colour Management System | |
114 | Summary(pl.UTF-8): Obsługa X11 i monitorów dla systemu zarządzania kolorami Oyranos | |
115 | Group: X11/Applications/Graphics | |
116 | Requires: %{name} = %{version}-%{release} | |
aea89ab1 | 117 | Requires: xcalib |
9faf0cb8 JB |
118 | |
119 | %description module-x11 | |
120 | X11 and monitor support for Oyranos Colour Management System. | |
121 | ||
122 | %description module-x11 -l pl.UTF-8 | |
123 | Obsługa X11 i monitorów dla systemu zarządzania kolorami Oyranos. | |
124 | ||
125 | %package profile-graph | |
126 | Summary: Profile 2D graph tool | |
127 | Summary(pl.UTF-8): Narzędzie do rysowania dwuwymiarowych wykresów profili | |
128 | Group: Applications/Graphics | |
129 | Requires: %{name} = %{version}-%{release} | |
130 | ||
131 | %description profile-graph | |
132 | The grapher renders a simple gamut hull of a ICC profile in 2D. | |
133 | ||
134 | %description profile-graph -l pl.UTF-8 | |
135 | Program rysujący w dwóch wymiarach prosty obraz gamy kolorów z profilu | |
136 | ICC. | |
137 | ||
138 | %package ui-fltk | |
8b3f44c7 JB |
139 | Summary: FLTK-based GUI for Oyranos Colour Management System |
140 | Summary(pl.UTF-8): Oparty na FLTK graficzny interfejs dla systemu zarządzania kolorami Oyranos | |
141 | Group: X11/Applications/Graphics | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | ||
9faf0cb8 | 144 | %description ui-fltk |
8b3f44c7 JB |
145 | FLTK-based configuration GUI for Oyranos Colour Management System. |
146 | ||
9faf0cb8 | 147 | %description ui-fltk -l pl.UTF-8 |
8b3f44c7 JB |
148 | Oparty na FLTK graficzny interfejs konfiguracyjny do systemu |
149 | zarządzania kolorami Oyranos. | |
150 | ||
9faf0cb8 | 151 | %package ui-qt |
8b3f44c7 JB |
152 | Summary: Qt-based GUI for Oyranos Colour Management System |
153 | Summary(pl.UTF-8): Oparty na Qt graficzny interfejs dla systemu zarządzania kolorami Oyranos | |
154 | Group: X11/Applications/Graphics | |
155 | Requires: %{name} = %{version}-%{release} | |
156 | ||
9faf0cb8 | 157 | %description ui-qt |
8b3f44c7 JB |
158 | Qt-based applet showing state of Oyranos Colour Management System. |
159 | ||
9faf0cb8 | 160 | %description ui-qt -l pl.UTF-8 |
8b3f44c7 JB |
161 | Oparty na Qt aplet pokazyjący stan systemu zarządzania kolorami |
162 | Oyranos. | |
163 | ||
164 | %package libs | |
165 | Summary: Oyranos Colour Management System libraries | |
166 | Summary(pl.UTF-8): Biblioteki systemu zarządzania kolorami Oyranos | |
167 | Group: Libraries | |
168 | Requires: elektra-libs >= 0.7 | |
169 | ||
170 | %description libs | |
171 | Oyranos Colour Management System libraries. | |
172 | ||
173 | %description libs -l pl.UTF-8 | |
174 | Biblioteki systemu zarządzania kolorami Oyranos. | |
175 | ||
176 | %package devel | |
177 | Summary: Header files for oyranos libraries | |
178 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek oyranos | |
179 | Group: Development/Libraries | |
180 | Requires: %{name}-libs = %{version}-%{release} | |
181 | ||
182 | %description devel | |
183 | Header files for oyranos libraries. | |
184 | ||
185 | %description devel -l pl.UTF-8 | |
186 | Pliki nagłówkowe bibliotek oyranos. | |
187 | ||
188 | %package static | |
189 | Summary: Static oyranos libraries | |
190 | Summary(pl.UTF-8): Statyczne biblioteki oyranos | |
191 | Group: Development/Libraries | |
192 | Requires: %{name}-devel = %{version}-%{release} | |
193 | ||
194 | %description static | |
195 | Static oyranos libraries. | |
196 | ||
197 | %description static -l pl.UTF-8 | |
198 | Statyczne biblioteki oyranos. | |
199 | ||
200 | %package apidocs | |
201 | Summary: Oyranos API documentation | |
202 | Summary(pl.UTF-8): Dokumentacja API bibliotek Oyranos | |
203 | Group: Documentation | |
f33c1f91 | 204 | BuildArch: noarch |
8b3f44c7 JB |
205 | |
206 | %description apidocs | |
207 | Oyranos API documentation. | |
208 | ||
209 | %description apidocs -l pl.UTF-8 | |
210 | Dokumentacja API bibliotek Oyranos. | |
211 | ||
212 | %prep | |
213 | %setup -q | |
16c9036b | 214 | %patch0 -p1 |
c4c320e2 | 215 | %patch1 -p1 |
d538f728 | 216 | %patch2 -p1 |
3ab7d698 JB |
217 | %patch3 -p1 |
218 | %patch4 -p1 | |
219 | ||
220 | # no reason to package also qt4 variant; qt5 one is enough | |
221 | %{__sed} -i -e '/ADD_SUBDIRECTORY( qt4 )/d' src/tools/qcmsevents/CMakeLists.txt | |
8b3f44c7 JB |
222 | |
223 | %build | |
224 | install -d build | |
225 | cd build | |
226 | %cmake .. | |
227 | ||
228 | %{__make} | |
229 | ||
230 | %install | |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
233 | %{__make} -C build install \ | |
234 | DESTDIR=$RPM_BUILD_ROOT | |
235 | ||
3ab7d698 JB |
236 | # qt4 version not built |
237 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/qcmsevents-qt4.1* | |
8b3f44c7 | 238 | # packaged as %doc |
3ab7d698 | 239 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
8b3f44c7 JB |
240 | |
241 | %find_lang %{name} | |
242 | ||
243 | %clean | |
244 | rm -rf $RPM_BUILD_ROOT | |
245 | ||
246 | %post libs -p /sbin/ldconfig | |
247 | %postun libs -p /sbin/ldconfig | |
248 | ||
249 | %files -f %{name}.lang | |
250 | %defattr(644,root,root,755) | |
3ab7d698 JB |
251 | %doc AUTHORS.md COPYING.md ChangeLog.md README.md |
252 | %attr(755,root,root) %{_bindir}/oyranos-compat-gnome | |
8b3f44c7 | 253 | %attr(755,root,root) %{_bindir}/oyranos-icc |
8b3f44c7 JB |
254 | %attr(755,root,root) %{_bindir}/oyranos-policy |
255 | %attr(755,root,root) %{_bindir}/oyranos-profile | |
8b3f44c7 JB |
256 | %attr(755,root,root) %{_bindir}/oyranos-profile-install |
257 | %attr(755,root,root) %{_bindir}/oyranos-profiles | |
3ab7d698 | 258 | %attr(755,root,root) %{_bindir}/oyranos-xforms |
8b3f44c7 | 259 | %attr(755,root,root) %{_bindir}/oyranos-xforms-modules |
86d41876 JB |
260 | %dir %{_libdir}/color |
261 | %dir %{_libdir}/color/modules | |
3ab7d698 JB |
262 | # R: elektra-libs |
263 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_elDB_cmm_module.so | |
86d41876 JB |
264 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_lcm2_cmm_module.so |
265 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_lcms_cmm_module.so | |
3ab7d698 | 266 | # R: libraw |
86d41876 | 267 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_lraw_cmm_module.so |
3ab7d698 JB |
268 | # R: libjpeg |
269 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oJPG_cmm_module.so | |
270 | # R: libpng | |
86d41876 | 271 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oPNG_cmm_module.so |
3ab7d698 JB |
272 | # R: yajl |
273 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oiDB_cmm_module.so | |
86d41876 | 274 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oicc_cmm_module.so |
3ab7d698 | 275 | # R: libraw |
86d41876 JB |
276 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oyRE_cmm_module.so |
277 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oyra_cmm_module.so | |
3ab7d698 JB |
278 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_trds_cmm_module.so |
279 | %dir %{_libdir}/oyranos-meta | |
280 | %attr(755,root,root) %{_libdir}/oyranos-meta/liboyranos_oyIM_cmm_module.so | |
281 | %dir %{_datadir}/color/rank-map | |
282 | %{_datadir}/color/rank-map/config.icc_profile.raw-image.oyRE.json | |
8b3f44c7 JB |
283 | %dir %{_datadir}/color/settings |
284 | %{_datadir}/color/settings/*.policy.xml | |
8b3f44c7 JB |
285 | %{_desktopdir}/oyranos-profile-install.desktop |
286 | %{_pixmapsdir}/lcms_logo2.png | |
287 | %{_pixmapsdir}/oyranos_logo.png | |
8b3f44c7 JB |
288 | %{_mandir}/man1/oyranos-policy.1* |
289 | %{_mandir}/man1/oyranos-profile.1* | |
8b3f44c7 JB |
290 | %{_mandir}/man1/oyranos-profile-install.1* |
291 | %{_mandir}/man1/oyranos-profiles.1* | |
3ab7d698 | 292 | %{_mandir}/man1/oyranos-xforms.1* |
8b3f44c7 JB |
293 | %{_mandir}/man1/oyranos-xforms-modules.1* |
294 | ||
9faf0cb8 JB |
295 | %files module-cups |
296 | %defattr(644,root,root,755) | |
86d41876 | 297 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_CUPS_cmm_module.so |
3ab7d698 JB |
298 | %{_datadir}/color/rank-map/config.icc_profile.printer.CUPS.json |
299 | ||
300 | %files module-sane | |
301 | %defattr(644,root,root,755) | |
302 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_SANE_cmm_module.so | |
303 | %{_datadir}/color/rank-map/config.icc_profile.scanner.SANE.json | |
9faf0cb8 JB |
304 | |
305 | %files module-x11 | |
306 | %defattr(644,root,root,755) | |
307 | %attr(755,root,root) %{_bindir}/oyranos-monitor | |
308 | %attr(755,root,root) %{_bindir}/oyranos-monitor-daemon | |
3ab7d698 | 309 | # R: libX11 libXfixes libXinerama libXrandr libXxf86vm libXcm |
86d41876 | 310 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oyX1_cmm_module.so |
3ab7d698 | 311 | # R: libXfixes libXcm |
86d41876 | 312 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oydi_cmm_module.so |
3ab7d698 | 313 | %{_datadir}/color/rank-map/config.icc_profile.monitor.oyX1.qarz.json |
9faf0cb8 JB |
314 | /etc/xdg/autostart/oyranos-monitor-setup.desktop |
315 | %{_mandir}/man1/oyranos-monitor.1* | |
316 | %{_mandir}/man1/oyranos-monitor-daemon.1* | |
317 | ||
318 | %files profile-graph | |
319 | %defattr(644,root,root,755) | |
320 | %attr(755,root,root) %{_bindir}/oyranos-profile-graph | |
321 | %{_mandir}/man1/oyranos-profile-graph.1* | |
322 | ||
8b3f44c7 | 323 | %if %{with fltk} |
9faf0cb8 | 324 | %files ui-fltk |
8b3f44c7 JB |
325 | %defattr(644,root,root,755) |
326 | %attr(755,root,root) %{_bindir}/oyranos-config-fltk | |
3ab7d698 JB |
327 | %attr(755,root,root) %{_bindir}/oyranos-image-display |
328 | %attr(755,root,root) %{_bindir}/oyranos-xforms-fltk | |
329 | %{_desktopdir}/oyranos-image-display.desktop | |
8b3f44c7 | 330 | %{_mandir}/man1/oyranos-config-fltk.1* |
3ab7d698 JB |
331 | %{_mandir}/man1/oyranos-image-display.1* |
332 | %{_mandir}/man1/oyranos-xforms-fltk.1* | |
8b3f44c7 JB |
333 | %endif |
334 | ||
335 | %if %{with qt} | |
9faf0cb8 | 336 | %files ui-qt |
8b3f44c7 JB |
337 | %defattr(644,root,root,755) |
338 | %attr(755,root,root) %{_bindir}/qcmsevents | |
339 | %{_desktopdir}/qcmsevents-applet.desktop | |
340 | %{_pixmapsdir}/qcmsevents.svg | |
341 | %{_mandir}/man1/qcmsevents.1* | |
342 | %endif | |
343 | ||
344 | %files libs | |
345 | %defattr(644,root,root,755) | |
3ab7d698 JB |
346 | %attr(755,root,root) %{_libdir}/libOyranos.so.*.*.* |
347 | %attr(755,root,root) %ghost %{_libdir}/libOyranos.so.0 | |
348 | %attr(755,root,root) %{_libdir}/libOyranosConfig.so.*.*.* | |
349 | %attr(755,root,root) %ghost %{_libdir}/libOyranosConfig.so.0 | |
350 | %attr(755,root,root) %{_libdir}/libOyranosCore.so.*.*.* | |
351 | %attr(755,root,root) %ghost %{_libdir}/libOyranosCore.so.0 | |
352 | %attr(755,root,root) %{_libdir}/libOyranosModules.so.*.*.* | |
353 | %attr(755,root,root) %ghost %{_libdir}/libOyranosModules.so.0 | |
354 | %attr(755,root,root) %{_libdir}/libOyranosObject.so.*.*.* | |
355 | %attr(755,root,root) %ghost %{_libdir}/libOyranosObject.so.0 | |
8b3f44c7 JB |
356 | |
357 | %files devel | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_bindir}/oyranos-config | |
3ab7d698 JB |
360 | %attr(755,root,root) %{_libdir}/libOyranos.so |
361 | %attr(755,root,root) %{_libdir}/libOyranosConfig.so | |
362 | %attr(755,root,root) %{_libdir}/libOyranosCore.so | |
363 | %attr(755,root,root) %{_libdir}/libOyranosModules.so | |
364 | %attr(755,root,root) %{_libdir}/libOyranosObject.so | |
365 | %{_libdir}/cmake/oyranos | |
8b3f44c7 JB |
366 | %{_includedir}/oyranos |
367 | %{_pkgconfigdir}/oyranos.pc | |
368 | %{_mandir}/man3/oyranos-config.3* | |
369 | %{_mandir}/man3/oyranos.3* | |
370 | ||
371 | %if %{with static_libs} | |
372 | %files static | |
373 | %defattr(644,root,root,755) | |
374 | %{_libdir}/liboyranos-static.a | |
375 | %{_libdir}/liboyranos_config-static.a | |
376 | %{_libdir}/liboyranos_core-static.a | |
377 | %{_libdir}/liboyranos_modules-static.a | |
378 | %{_libdir}/liboyranos_object-static.a | |
379 | %endif | |
380 | ||
381 | %files apidocs | |
382 | %defattr(644,root,root,755) | |
383 | %doc build/doc/html/*.{css,html,js,png} |