]>
Commit | Line | Data |
---|---|---|
8b3f44c7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
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 | |
86d41876 | 10 | Version: 0.9.5 |
f129e3a1 | 11 | Release: 3 |
8b3f44c7 JB |
12 | License: BSD |
13 | Group: Applications/Graphics | |
14 | Source0: http://downloads.sourceforge.net/oyranos/%{name}-%{version}.tar.bz2 | |
86d41876 | 15 | # Source0-md5: f59ef03182597e1e7ba0e434599eb0c4 |
16c9036b | 16 | Patch0: no-mesa10.patch |
8b3f44c7 | 17 | URL: http://www.oyranos.org/ |
8b3f44c7 | 18 | BuildRequires: cairo-devel |
f33c1f91 | 19 | BuildRequires: cmake >= 2.6.4 |
8b3f44c7 JB |
20 | BuildRequires: cups-devel |
21 | BuildRequires: doxygen | |
22 | BuildRequires: elektra-devel >= 0.7 | |
23 | BuildRequires: exiv2-devel | |
16c9036b JR |
24 | %if %{with fltk} |
25 | BuildRequires: fltk-devel | |
26 | BuildRequires: fltk-gl-devel | |
27 | %endif | |
8b3f44c7 JB |
28 | BuildRequires: gcc >= 6:4.2 |
29 | BuildRequires: gettext-devel | |
9faf0cb8 JB |
30 | # not required for releases (generated code included) |
31 | #BuildRequires: grantlee >= 0.2.0 | |
8b3f44c7 JB |
32 | BuildRequires: lcms-devel |
33 | BuildRequires: lcms2-devel | |
34 | BuildRequires: libXcm-devel | |
35 | BuildRequires: libgomp-devel | |
36 | BuildRequires: libltdl-devel | |
37 | BuildRequires: libpng-devel | |
38 | BuildRequires: libraw-devel | |
39 | BuildRequires: libxml2-devel >= 2 | |
40 | BuildRequires: pkgconfig | |
41 | BuildRequires: xorg-lib-libX11-devel | |
42 | BuildRequires: xorg-lib-libXfixes-devel | |
43 | BuildRequires: xorg-lib-libXinerama-devel | |
44 | BuildRequires: xorg-lib-libXrandr-devel | |
45 | BuildRequires: xorg-lib-libXxf86vm-devel | |
46 | BuildRequires: yajl-devel | |
47 | %if %{with qt} | |
48 | BuildRequires: QtCore-devel >= 4 | |
49 | BuildRequires: QtGui-devel >= 4 | |
50 | BuildRequires: qt4-build >= 4 | |
51 | %endif | |
52 | Requires: %{name}-libs = %{version}-%{release} | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Oyranos is a Colour Management System (CMS) on operating system level. | |
57 | It allows to match predictably input device colours to output device | |
58 | colours across supporting applications. One goal is to make colour | |
59 | management useful for all users in a automated fashion and regardless | |
60 | of any technical knowledge. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Oyranos to system zarządzania kolorami (CMS - Colour Management | |
64 | System) na poziomie systemu operacyjnego. Pozwala na przewidywalne | |
65 | powiązanie kolorów urządzeń wejściowych z kolorami urządzeń | |
66 | wyjściowych poprzez wszystkie aplikacje obsługujące ten system. Celem | |
67 | jest uprzystępnienie zarządzania kolorami dla wszystkich użytkowników | |
68 | w sposób zautomatyzowany, niezależny od wiedzy technicznej. | |
69 | ||
9faf0cb8 JB |
70 | %package module-cups |
71 | Summary: CUPS device support for Oyranos Colour Management System | |
72 | Summary(pl.UTF-8): Obsługa urządzeń CUPS dla systemu zarządzania kolorami Oyranos | |
73 | Group: Applications/Graphics | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | ||
76 | %description module-cups | |
77 | CUPS device support for Oyranos Colour Management System. | |
78 | ||
79 | %description module-cups -l pl.UTF-8 | |
80 | Obsługa urządzeń CUPS dla systemu zarządzania kolorami Oyranos. | |
81 | ||
82 | %package module-x11 | |
83 | Summary: X11 and monitor support for Oyranos Colour Management System | |
84 | Summary(pl.UTF-8): Obsługa X11 i monitorów dla systemu zarządzania kolorami Oyranos | |
85 | Group: X11/Applications/Graphics | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description module-x11 | |
89 | X11 and monitor support for Oyranos Colour Management System. | |
90 | ||
91 | %description module-x11 -l pl.UTF-8 | |
92 | Obsługa X11 i monitorów dla systemu zarządzania kolorami Oyranos. | |
93 | ||
94 | %package profile-graph | |
95 | Summary: Profile 2D graph tool | |
96 | Summary(pl.UTF-8): Narzędzie do rysowania dwuwymiarowych wykresów profili | |
97 | Group: Applications/Graphics | |
98 | Requires: %{name} = %{version}-%{release} | |
99 | ||
100 | %description profile-graph | |
101 | The grapher renders a simple gamut hull of a ICC profile in 2D. | |
102 | ||
103 | %description profile-graph -l pl.UTF-8 | |
104 | Program rysujący w dwóch wymiarach prosty obraz gamy kolorów z profilu | |
105 | ICC. | |
106 | ||
107 | %package ui-fltk | |
8b3f44c7 JB |
108 | Summary: FLTK-based GUI for Oyranos Colour Management System |
109 | Summary(pl.UTF-8): Oparty na FLTK graficzny interfejs dla systemu zarządzania kolorami Oyranos | |
110 | Group: X11/Applications/Graphics | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | ||
9faf0cb8 | 113 | %description ui-fltk |
8b3f44c7 JB |
114 | FLTK-based configuration GUI for Oyranos Colour Management System. |
115 | ||
9faf0cb8 | 116 | %description ui-fltk -l pl.UTF-8 |
8b3f44c7 JB |
117 | Oparty na FLTK graficzny interfejs konfiguracyjny do systemu |
118 | zarządzania kolorami Oyranos. | |
119 | ||
9faf0cb8 | 120 | %package ui-qt |
8b3f44c7 JB |
121 | Summary: Qt-based GUI for Oyranos Colour Management System |
122 | Summary(pl.UTF-8): Oparty na Qt graficzny interfejs dla systemu zarządzania kolorami Oyranos | |
123 | Group: X11/Applications/Graphics | |
124 | Requires: %{name} = %{version}-%{release} | |
125 | ||
9faf0cb8 | 126 | %description ui-qt |
8b3f44c7 JB |
127 | Qt-based applet showing state of Oyranos Colour Management System. |
128 | ||
9faf0cb8 | 129 | %description ui-qt -l pl.UTF-8 |
8b3f44c7 JB |
130 | Oparty na Qt aplet pokazyjący stan systemu zarządzania kolorami |
131 | Oyranos. | |
132 | ||
133 | %package libs | |
134 | Summary: Oyranos Colour Management System libraries | |
135 | Summary(pl.UTF-8): Biblioteki systemu zarządzania kolorami Oyranos | |
136 | Group: Libraries | |
137 | Requires: elektra-libs >= 0.7 | |
138 | ||
139 | %description libs | |
140 | Oyranos Colour Management System libraries. | |
141 | ||
142 | %description libs -l pl.UTF-8 | |
143 | Biblioteki systemu zarządzania kolorami Oyranos. | |
144 | ||
145 | %package devel | |
146 | Summary: Header files for oyranos libraries | |
147 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek oyranos | |
148 | Group: Development/Libraries | |
149 | Requires: %{name}-libs = %{version}-%{release} | |
150 | ||
151 | %description devel | |
152 | Header files for oyranos libraries. | |
153 | ||
154 | %description devel -l pl.UTF-8 | |
155 | Pliki nagłówkowe bibliotek oyranos. | |
156 | ||
157 | %package static | |
158 | Summary: Static oyranos libraries | |
159 | Summary(pl.UTF-8): Statyczne biblioteki oyranos | |
160 | Group: Development/Libraries | |
161 | Requires: %{name}-devel = %{version}-%{release} | |
162 | ||
163 | %description static | |
164 | Static oyranos libraries. | |
165 | ||
166 | %description static -l pl.UTF-8 | |
167 | Statyczne biblioteki oyranos. | |
168 | ||
169 | %package apidocs | |
170 | Summary: Oyranos API documentation | |
171 | Summary(pl.UTF-8): Dokumentacja API bibliotek Oyranos | |
172 | Group: Documentation | |
f33c1f91 ER |
173 | %if "%{_rpmversion}" >= "5" |
174 | BuildArch: noarch | |
175 | %endif | |
8b3f44c7 JB |
176 | |
177 | %description apidocs | |
178 | Oyranos API documentation. | |
179 | ||
180 | %description apidocs -l pl.UTF-8 | |
181 | Dokumentacja API bibliotek Oyranos. | |
182 | ||
183 | %prep | |
184 | %setup -q | |
16c9036b | 185 | %patch0 -p1 |
8b3f44c7 JB |
186 | |
187 | %build | |
188 | install -d build | |
189 | cd build | |
190 | %cmake .. | |
191 | ||
192 | %{__make} | |
193 | ||
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
196 | ||
197 | %{__make} -C build install \ | |
198 | DESTDIR=$RPM_BUILD_ROOT | |
199 | ||
200 | # packaged as %doc | |
201 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/oyranos/html | |
202 | ||
203 | %find_lang %{name} | |
204 | ||
205 | %clean | |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
208 | %post libs -p /sbin/ldconfig | |
209 | %postun libs -p /sbin/ldconfig | |
210 | ||
211 | %files -f %{name}.lang | |
212 | %defattr(644,root,root,755) | |
213 | %doc AUTHORS COPYING ChangeLog README | |
214 | %attr(755,root,root) %{_bindir}/oyranos-icc | |
8b3f44c7 JB |
215 | %attr(755,root,root) %{_bindir}/oyranos-policy |
216 | %attr(755,root,root) %{_bindir}/oyranos-profile | |
8b3f44c7 JB |
217 | %attr(755,root,root) %{_bindir}/oyranos-profile-install |
218 | %attr(755,root,root) %{_bindir}/oyranos-profiles | |
219 | %attr(755,root,root) %{_bindir}/oyranos-xforms-modules | |
86d41876 JB |
220 | %dir %{_libdir}/color |
221 | %dir %{_libdir}/color/modules | |
222 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_lcm2_cmm_module.so | |
223 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_lcms_cmm_module.so | |
224 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_lraw_cmm_module.so | |
225 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oPNG_cmm_module.so | |
226 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oicc_cmm_module.so | |
227 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oyRE_cmm_module.so | |
228 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oyra_cmm_module.so | |
8b3f44c7 JB |
229 | %attr(755,root,root) %{_libdir}/oyranos/liboyranos_oyIM_cmm_module.so |
230 | %dir %{_datadir}/color/settings | |
231 | %{_datadir}/color/settings/*.policy.xml | |
8b3f44c7 JB |
232 | %{_desktopdir}/oyranos-profile-install.desktop |
233 | %{_pixmapsdir}/lcms_logo2.png | |
234 | %{_pixmapsdir}/oyranos_logo.png | |
8b3f44c7 JB |
235 | %{_mandir}/man1/oyranos-policy.1* |
236 | %{_mandir}/man1/oyranos-profile.1* | |
8b3f44c7 JB |
237 | %{_mandir}/man1/oyranos-profile-install.1* |
238 | %{_mandir}/man1/oyranos-profiles.1* | |
239 | %{_mandir}/man1/oyranos-xforms-modules.1* | |
240 | ||
9faf0cb8 JB |
241 | %files module-cups |
242 | %defattr(644,root,root,755) | |
86d41876 | 243 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_CUPS_cmm_module.so |
9faf0cb8 JB |
244 | |
245 | %files module-x11 | |
246 | %defattr(644,root,root,755) | |
247 | %attr(755,root,root) %{_bindir}/oyranos-monitor | |
248 | %attr(755,root,root) %{_bindir}/oyranos-monitor-daemon | |
86d41876 JB |
249 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oyX1_cmm_module.so |
250 | %attr(755,root,root) %{_libdir}/color/modules/liboyranos_oydi_cmm_module.so | |
9faf0cb8 JB |
251 | /etc/xdg/autostart/oyranos-monitor-setup.desktop |
252 | %{_mandir}/man1/oyranos-monitor.1* | |
253 | %{_mandir}/man1/oyranos-monitor-daemon.1* | |
254 | ||
255 | %files profile-graph | |
256 | %defattr(644,root,root,755) | |
257 | %attr(755,root,root) %{_bindir}/oyranos-profile-graph | |
258 | %{_mandir}/man1/oyranos-profile-graph.1* | |
259 | ||
8b3f44c7 | 260 | %if %{with fltk} |
9faf0cb8 | 261 | %files ui-fltk |
8b3f44c7 JB |
262 | %defattr(644,root,root,755) |
263 | %attr(755,root,root) %{_bindir}/oyranos-config-fltk | |
264 | %{_mandir}/man1/oyranos-config-fltk.1* | |
265 | %endif | |
266 | ||
267 | %if %{with qt} | |
9faf0cb8 | 268 | %files ui-qt |
8b3f44c7 JB |
269 | %defattr(644,root,root,755) |
270 | %attr(755,root,root) %{_bindir}/qcmsevents | |
271 | %{_desktopdir}/qcmsevents-applet.desktop | |
272 | %{_pixmapsdir}/qcmsevents.svg | |
273 | %{_mandir}/man1/qcmsevents.1* | |
274 | %endif | |
275 | ||
276 | %files libs | |
277 | %defattr(644,root,root,755) | |
278 | %attr(755,root,root) %{_libdir}/liboyranos.so.*.*.* | |
279 | %attr(755,root,root) %ghost %{_libdir}/liboyranos.so.0 | |
280 | %attr(755,root,root) %{_libdir}/liboyranos_config.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/liboyranos_config.so.0 | |
282 | %attr(755,root,root) %{_libdir}/liboyranos_core.so.*.*.* | |
283 | %attr(755,root,root) %ghost %{_libdir}/liboyranos_core.so.0 | |
284 | %attr(755,root,root) %{_libdir}/liboyranos_modules.so.*.*.* | |
285 | %attr(755,root,root) %ghost %{_libdir}/liboyranos_modules.so.0 | |
286 | %attr(755,root,root) %{_libdir}/liboyranos_object.so.*.*.* | |
287 | %attr(755,root,root) %ghost %{_libdir}/liboyranos_object.so.0 | |
381de3c9 JB |
288 | # used by both base and -devel |
289 | %dir %{_libdir}/oyranos | |
8b3f44c7 JB |
290 | |
291 | %files devel | |
292 | %defattr(644,root,root,755) | |
293 | %attr(755,root,root) %{_bindir}/oyranos-config | |
294 | %attr(755,root,root) %{_libdir}/liboyranos.so | |
295 | %attr(755,root,root) %{_libdir}/liboyranos_config.so | |
296 | %attr(755,root,root) %{_libdir}/liboyranos_core.so | |
297 | %attr(755,root,root) %{_libdir}/liboyranos_modules.so | |
298 | %attr(755,root,root) %{_libdir}/liboyranos_object.so | |
299 | %{_libdir}/oyranos/cmake | |
300 | %{_includedir}/oyranos | |
301 | %{_pkgconfigdir}/oyranos.pc | |
302 | %{_mandir}/man3/oyranos-config.3* | |
303 | %{_mandir}/man3/oyranos.3* | |
304 | ||
305 | %if %{with static_libs} | |
306 | %files static | |
307 | %defattr(644,root,root,755) | |
308 | %{_libdir}/liboyranos-static.a | |
309 | %{_libdir}/liboyranos_config-static.a | |
310 | %{_libdir}/liboyranos_core-static.a | |
311 | %{_libdir}/liboyranos_modules-static.a | |
312 | %{_libdir}/liboyranos_object-static.a | |
313 | %endif | |
314 | ||
315 | %files apidocs | |
316 | %defattr(644,root,root,755) | |
317 | %doc build/doc/html/*.{css,html,js,png} |