]>
Commit | Line | Data |
---|---|---|
9de3055c MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
b14f9cde | 4 | %bcond_without sane # SANE support |
9de3055c | 5 | %bcond_without static_libs # don't build static libraries |
f8758557 | 6 | %bcond_without vala # don't build Vala API |
9de3055c | 7 | # |
f8758557 JB |
8 | Summary: Color daemon - system daemon for managing color devices |
9 | Summary(pl.UTF-8): Demon colord - usługa systemowa do zarządzania urządzeniami obsługującymi kolory | |
9de3055c | 10 | Name: colord |
9d6dcfe1 | 11 | Version: 1.2.4 |
daed96c2 | 12 | Release: 1 |
9de3055c MB |
13 | License: GPL v2+ and LGPL v2+ |
14 | Group: Daemons | |
eac60526 | 15 | Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz |
9d6dcfe1 | 16 | # Source0-md5: d0a9c8e29374b6330455fb8902c8f246 |
2df7febd | 17 | Patch0: %{name}-completions.patch |
74e3165d | 18 | Patch1: %{name}-sh.patch |
eac60526 | 19 | URL: http://www.freedesktop.org/software/colord/ |
9de3055c MB |
20 | BuildRequires: autoconf >= 2.63 |
21 | BuildRequires: automake >= 1:1.9 | |
22 | BuildRequires: dbus-devel | |
5cf58028 | 23 | BuildRequires: docbook-utils |
2ed775c6 | 24 | BuildRequires: gettext-devel >= 0.17 |
62692f52 | 25 | BuildRequires: glib2-devel >= 1:2.36 |
2ed775c6 | 26 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
9de3055c MB |
27 | BuildRequires: gtk-doc >= 1.9 |
28 | BuildRequires: intltool >= 0.40.0 | |
e23b78c3 | 29 | BuildRequires: lcms2-devel >= 2.6 |
d4ec9d79 | 30 | BuildRequires: libgusb-devel >= 0.1.1 |
5a4c4b3f | 31 | BuildRequires: libtool >= 2:2.0 |
890c2439 | 32 | BuildRequires: libusb-devel >= 1.0.0 |
9de3055c | 33 | BuildRequires: pkgconfig |
1b49a4dd | 34 | BuildRequires: polkit-devel >= 0.103 |
15dee35b | 35 | BuildRequires: rpmbuild(macros) >= 1.644 |
b14f9cde | 36 | %{?with_sane:BuildRequires: sane-backends-devel} |
9de3055c | 37 | BuildRequires: sqlite3-devel |
395cb103 | 38 | BuildRequires: systemd-devel >= 44 |
c809351e | 39 | BuildRequires: udev-devel |
9de3055c | 40 | BuildRequires: udev-glib-devel |
f8758557 | 41 | %{?with_vala:BuildRequires: vala} |
395cb103 | 42 | Requires(post,preun,postun): systemd-units >= 44 |
f8758557 | 43 | Requires: %{name}-libs = %{version}-%{release} |
1b49a4dd | 44 | Requires: polkit-libs >= 0.103 |
395cb103 | 45 | Requires: systemd-units >= 44 |
540fc0a6 | 46 | Suggests: shared-color-profiles |
9de3055c MB |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
50 | colord is a low level system activated daemon that maps color devices | |
51 | to color profiles in the system context. | |
52 | ||
f8758557 JB |
53 | %description -l pl.UTF-8 |
54 | colord to niskopoziomowa usługa systemowa odwzorowująca urządzenia | |
55 | obsługujące kolory na profile kolorów w kontekście systemu. | |
56 | ||
57 | %package libs | |
58 | Summary: colord library | |
59 | Summary(pl.UTF-8): Biblioteka colord | |
60 | Group: Libraries | |
62692f52 | 61 | Requires: glib2 >= 1:2.36 |
e23b78c3 | 62 | Requires: lcms2 >= 2.6 |
daed96c2 JB |
63 | # for libcolorhug only |
64 | Requires: libgusb >= 0.1.1 | |
f8758557 | 65 | Suggests: %{name} = %{version}-%{release} |
b14f9cde | 66 | Obsoletes: colorhug-client-libs < 0.1.14 |
f8758557 JB |
67 | Conflicts: colord < 0.1.12-4 |
68 | ||
69 | %description libs | |
70 | colord library. | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Biblioteka colord. | |
74 | ||
9de3055c MB |
75 | %package devel |
76 | Summary: Header files for colord library | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord | |
78 | Group: Development/Libraries | |
f8758557 | 79 | Requires: %{name}-libs = %{version}-%{release} |
9de3055c | 80 | Requires: dbus-devel |
62692f52 | 81 | Requires: glib2-devel >= 1:2.36 |
e23b78c3 | 82 | Requires: lcms2-devel >= 2.6 |
daed96c2 | 83 | Requires: libgusb-devel >= 0.1.1 |
b14f9cde | 84 | Obsoletes: colorhug-client-devel < 0.1.14 |
9de3055c MB |
85 | |
86 | %description devel | |
87 | Header files for colord library. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe biblioteki colord. | |
91 | ||
92 | %package static | |
93 | Summary: Static colord library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka colord | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
b14f9cde | 97 | Obsoletes: colorhug-client-static < 0.1.14 |
9de3055c MB |
98 | |
99 | %description static | |
100 | Static colord library. | |
101 | ||
102 | %description static -l pl.UTF-8 | |
103 | Statyczna biblioteka colord. | |
104 | ||
105 | %package apidocs | |
106 | Summary: colord API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API colord | |
108 | Group: Documentation | |
109 | Requires: gtk-doc-common | |
110 | ||
111 | %description apidocs | |
112 | colord API documentation. | |
113 | ||
114 | %description apidocs -l pl.UTF-8 | |
115 | Dokumentacja API colord. | |
116 | ||
f8758557 JB |
117 | %package -n vala-colord |
118 | Summary: colord API for Vala language | |
119 | Summary(pl.UTF-8): API colord dla języka Vala | |
120 | Group: Development/Libraries | |
121 | Requires: %{name}-devel = %{version}-%{release} | |
122 | ||
123 | %description -n vala-colord | |
124 | colord API for Vala language. | |
125 | ||
126 | %description -n vala-colord -l pl.UTF-8 | |
127 | API colord dla języka Vala. | |
128 | ||
75c27ada JB |
129 | %package -n bash-completion-colord |
130 | Summary: bash-completion for colormgr console commands | |
131 | Summary(pl.UTF-8): Bashowe uzupełnianie poleceń terminalowych colormgr | |
132 | Group: Applications/Shells | |
2df7febd | 133 | Requires: bash-completion >= 2.0 |
898e5274 ER |
134 | %if "%{_rpmversion}" >= "5" |
135 | BuildArch: noarch | |
136 | %endif | |
c2e852d9 | 137 | |
75c27ada JB |
138 | %description -n bash-completion-colord |
139 | bash-completion for colormgr console commands. | |
c2e852d9 | 140 | |
75c27ada JB |
141 | %description -n bash-completion-colord -l pl.UTF-8 |
142 | Bashowe uzupełnianie poleceń terminalowych colormgr. | |
c2e852d9 | 143 | |
9de3055c MB |
144 | %prep |
145 | %setup -q | |
2df7febd | 146 | %patch0 -p1 |
74e3165d | 147 | %patch1 -p1 |
9de3055c MB |
148 | |
149 | %build | |
150 | %{__intltoolize} | |
151 | %{__libtoolize} | |
3d2630d4 | 152 | %{__aclocal} -I m4 |
9de3055c MB |
153 | %{__autoconf} |
154 | %{__autoheader} | |
155 | %{__automake} | |
156 | %configure \ | |
540fc0a6 | 157 | --disable-silent-rules \ |
2df7febd | 158 | --enable-bash-completion=%{_datadir}/bash-completion/completions \ |
9de3055c | 159 | %{__enable_disable apidocs gtk-doc} \ |
e23b78c3 | 160 | --enable-libcolordcompat \ |
b14f9cde | 161 | %{__enable sane} \ |
9de3055c | 162 | %{__enable_disable static_libs static} \ |
395cb103 | 163 | %{__enable_disable vala} \ |
15dee35b MB |
164 | --with-html-dir=%{_gtkdocdir} \ |
165 | --with-systemdsystemunitdir=%{systemdunitdir} | |
facc7685 PZ |
166 | # doc build is broken with -j |
167 | %{__make} -j1 | |
9de3055c MB |
168 | |
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %{__make} install \ | |
173 | DESTDIR=$RPM_BUILD_ROOT | |
174 | ||
395cb103 | 175 | # obsoleted by pkg-config |
9de3055c | 176 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
395cb103 JB |
177 | # loadable modules |
178 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-{plugins,sensors}/*.{la,a} | |
9de3055c | 179 | |
5a4c4b3f JB |
180 | # empty version of bg locale |
181 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bg_BG | |
74e3165d JB |
182 | # less incomplete version of da locale |
183 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/da | |
184 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{da_DK,da} | |
185 | # the same as it locale | |
186 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/it_IT | |
dbe002e0 JB |
187 | # empty version of nb locale |
188 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nb_NO | |
74e3165d | 189 | # simplify dir name |
dbe002e0 JB |
190 | test ! -d $RPM_BUILD_ROOT%{_localedir}/nn || exit 1 |
191 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{nn_NO,nn} | |
74e3165d JB |
192 | # less incomplete version of pt locale |
193 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt | |
194 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt} | |
37c83a92 | 195 | |
9de3055c MB |
196 | %find_lang %{name} |
197 | ||
198 | %clean | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
15dee35b | 201 | %post |
01456784 | 202 | %glib_compile_schemas |
15dee35b MB |
203 | |
204 | %postun | |
01456784 JB |
205 | if [ "$1" = "0" ]; then |
206 | %glib_compile_schemas | |
207 | fi | |
15dee35b MB |
208 | %systemd_reload |
209 | ||
f8758557 JB |
210 | %post libs -p /sbin/ldconfig |
211 | %postun libs -p /sbin/ldconfig | |
9de3055c MB |
212 | |
213 | %files -f %{name}.lang | |
214 | %defattr(644,root,root,755) | |
dbe002e0 | 215 | %doc AUTHORS ChangeLog NEWS README.md TODO |
facc7685 PZ |
216 | %attr(755,root,root) %{_bindir}/cd-create-profile |
217 | %attr(755,root,root) %{_bindir}/cd-fix-profile | |
c65caf70 | 218 | %attr(755,root,root) %{_bindir}/cd-iccdump |
9de3055c MB |
219 | %attr(755,root,root) %{_bindir}/colormgr |
220 | %attr(755,root,root) %{_libexecdir}/colord | |
b14f9cde | 221 | %{?with_sane:%attr(755,root,root) %{_libexecdir}/colord-sane} |
5cf58028 | 222 | %attr(755,root,root) %{_libexecdir}/colord-session |
395cb103 JB |
223 | %dir %{_libdir}/colord-plugins |
224 | %attr(755,root,root) %{_libdir}/colord-plugins/libcd_plugin_camera.so | |
b14f9cde | 225 | %{?with_sane:%attr(755,root,root) %{_libdir}/colord-plugins/libcd_plugin_sane.so} |
395cb103 | 226 | %attr(755,root,root) %{_libdir}/colord-plugins/libcd_plugin_scanner.so |
facc7685 | 227 | %dir %{_libdir}/colord-sensors |
5cf58028 | 228 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_argyll.so |
d4ec9d79 | 229 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_colorhug.so |
b14f9cde | 230 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dtp94.so |
890c2439 MB |
231 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so |
232 | %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so | |
1b49a4dd JB |
233 | # disabled for now |
234 | #%attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so | |
daed96c2 JB |
235 | %attr(755,root,root) %{_libdir}/colord-sensors/libdtp94-private.so |
236 | %attr(755,root,root) %{_libdir}/colord-sensors/libhuey-private.so | |
237 | %attr(755,root,root) %{_libdir}/colord-sensors/libmunki-private.so | |
5cf58028 | 238 | %{_datadir}/colord |
bf7d0c2e | 239 | %{_datadir}/color/icc/colord |
5cf58028 | 240 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml |
73d45322 MB |
241 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml |
242 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml | |
facc7685 | 243 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml |
73d45322 | 244 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml |
5cf58028 | 245 | %{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service |
9de3055c | 246 | %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
01456784 | 247 | %{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml |
9de3055c | 248 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy |
facc7685 | 249 | %{_mandir}/man1/cd-create-profile.1* |
eac60526 | 250 | %{_mandir}/man1/cd-fix-profile.1* |
2df7febd | 251 | # man5? |
9de3055c | 252 | %{_mandir}/man1/colormgr.1* |
15dee35b | 253 | %{systemdunitdir}/colord.service |
9de3055c | 254 | /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf |
facc7685 | 255 | /lib/udev/rules.d/69-cd-sensors.rules |
9de3055c | 256 | /lib/udev/rules.d/95-cd-devices.rules |
890c2439 | 257 | %dir /var/lib/colord |
f8758557 JB |
258 | |
259 | %files libs | |
260 | %defattr(644,root,root,755) | |
261 | %attr(755,root,root) %{_libdir}/libcolord.so.*.*.* | |
dbe002e0 | 262 | %attr(755,root,root) %ghost %{_libdir}/libcolord.so.2 |
e23b78c3 | 263 | %attr(755,root,root) %{_libdir}/libcolordcompat.so |
b14f9cde | 264 | %attr(755,root,root) %{_libdir}/libcolordprivate.so.*.*.* |
dbe002e0 | 265 | %attr(755,root,root) %ghost %{_libdir}/libcolordprivate.so.2 |
b14f9cde | 266 | %attr(755,root,root) %{_libdir}/libcolorhug.so.*.*.* |
dbe002e0 | 267 | %attr(755,root,root) %ghost %{_libdir}/libcolorhug.so.2 |
eac60526 | 268 | %{_libdir}/girepository-1.0/Colord-1.0.typelib |
b14f9cde | 269 | %{_libdir}/girepository-1.0/ColorHug-1.0.typelib |
9de3055c MB |
270 | |
271 | %files devel | |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_libdir}/libcolord.so | |
b14f9cde JB |
274 | %attr(755,root,root) %{_libdir}/libcolordprivate.so |
275 | %attr(755,root,root) %{_libdir}/libcolorhug.so | |
facc7685 | 276 | %{_includedir}/colord-1 |
9de3055c | 277 | %{_pkgconfigdir}/colord.pc |
b14f9cde | 278 | %{_pkgconfigdir}/colorhug.pc |
eac60526 | 279 | %{_datadir}/gir-1.0/Colord-1.0.gir |
b14f9cde | 280 | %{_datadir}/gir-1.0/ColorHug-1.0.gir |
9de3055c MB |
281 | |
282 | %if %{with static_libs} | |
283 | %files static | |
284 | %defattr(644,root,root,755) | |
285 | %{_libdir}/libcolord.a | |
e23b78c3 | 286 | %{_libdir}/libcolordcompat.a |
b14f9cde JB |
287 | %{_libdir}/libcolordprivate.a |
288 | %{_libdir}/libcolorhug.a | |
75c27ada JB |
289 | %endif |
290 | ||
9de3055c MB |
291 | %if %{with apidocs} |
292 | %files apidocs | |
293 | %defattr(644,root,root,755) | |
294 | %{_gtkdocdir}/colord | |
295 | %endif | |
f8758557 JB |
296 | |
297 | %if %{with vala} | |
298 | %files -n vala-colord | |
299 | %defattr(644,root,root,755) | |
300 | %{_datadir}/vala/vapi/colord.vapi | |
301 | %endif | |
c2e852d9 | 302 | |
75c27ada | 303 | %files -n bash-completion-colord |
c2e852d9 | 304 | %defattr(644,root,root,755) |
2df7febd | 305 | %{_datadir}/bash-completion/completions/colormgr |