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