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