1 | %bcond_with systemd |
---|
2 | %bcond_with firstbuild |
---|
3 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
4 | |
---|
5 | Summary: Color daemon |
---|
6 | Name: colord |
---|
7 | Version: 1.4.4 |
---|
8 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | |
---|
12 | License: GPLv2+ and LGPLv2+ |
---|
13 | URL: http://gitorious.org/colord |
---|
14 | Source0: https://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.xz |
---|
15 | Patch0: colord-1.4.3-elogind.patch |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildRequires: meson |
---|
19 | BuildRequires: dbus-devel |
---|
20 | BuildRequires: docbook-utils |
---|
21 | BuildRequires: docbook5-style-xsl |
---|
22 | BuildRequires: gettext |
---|
23 | BuildRequires: glib2-devel |
---|
24 | BuildRequires: intltool |
---|
25 | BuildRequires: lcms2-devel |
---|
26 | BuildRequires: libgudev1-devel |
---|
27 | BuildRequires: libgusb-devel |
---|
28 | BuildRequires: polkit-devel |
---|
29 | BuildRequires: sqlite3-devel |
---|
30 | BuildRequires: vala-tools |
---|
31 | BuildRequires: bash-completion |
---|
32 | %{!?with_firstbuild:BuildRequires: colord-devel, gobject-introspection-devel} |
---|
33 | %if %{with systemd} |
---|
34 | BuildRequires: systemd-devel |
---|
35 | %{?systemd_requires} |
---|
36 | %else |
---|
37 | BuildRequires: libudev-devel |
---|
38 | BuildRequires: elogind-devel |
---|
39 | %endif |
---|
40 | Requires: shared-color-profiles |
---|
41 | |
---|
42 | %description |
---|
43 | colord is a low level system activated daemon that maps color devices |
---|
44 | to color profiles in the system context. |
---|
45 | |
---|
46 | |
---|
47 | %package devel |
---|
48 | Summary: Development package for %{name} |
---|
49 | Group: Development/Libraries |
---|
50 | Requires: %{name} = %{version}-%{release} |
---|
51 | Requires: glib2-devel |
---|
52 | Requires: dbus-devel |
---|
53 | Requires: lcms2-devel |
---|
54 | |
---|
55 | %description devel |
---|
56 | Files for development with %{name}. |
---|
57 | |
---|
58 | |
---|
59 | # compat32 |
---|
60 | %package -n compat32-%{name} |
---|
61 | Summary: Color daemon |
---|
62 | Group: System Environment/Daemons |
---|
63 | Requires: %{name} = %{version}-%{release} |
---|
64 | |
---|
65 | %description -n compat32-%{name} |
---|
66 | colord is a low level system activated daemon that maps color devices |
---|
67 | to color profiles in the system context. |
---|
68 | |
---|
69 | |
---|
70 | %package -n compat32-%{name}-devel |
---|
71 | Summary: Development package for %{name} |
---|
72 | Group: Development/Libraries |
---|
73 | Requires: compat32-%{name} = %{version}-%{release} |
---|
74 | |
---|
75 | %description -n compat32-%{name}-devel |
---|
76 | Files for development with %{name}. |
---|
77 | |
---|
78 | |
---|
79 | %prep |
---|
80 | %setup |
---|
81 | %if !%{with systemd} |
---|
82 | %patch0 -p1 |
---|
83 | %endif |
---|
84 | |
---|
85 | |
---|
86 | %build |
---|
87 | %meson \ |
---|
88 | -Ddaemon_user=colord \ |
---|
89 | %if %{with systemd} |
---|
90 | -Dsystemd=true \ |
---|
91 | %else |
---|
92 | -Dsystemd=false \ |
---|
93 | -Delogind=true \ |
---|
94 | %endif |
---|
95 | -Dargyllcms_sensor=false \ |
---|
96 | -Dvapi=true \ |
---|
97 | -Ddocs=false |
---|
98 | |
---|
99 | %meson_build |
---|
100 | |
---|
101 | |
---|
102 | %install |
---|
103 | rm -rf %{buildroot} |
---|
104 | %meson_install |
---|
105 | |
---|
106 | # databases |
---|
107 | touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/mapping.db |
---|
108 | touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/storage.db |
---|
109 | |
---|
110 | %find_lang %{name} |
---|
111 | |
---|
112 | |
---|
113 | %triggerin -- colord < 1.4.4 |
---|
114 | if [ -d %{_localstatedir}/lib/colord ]; then |
---|
115 | chown -R colord:colord %{_localstatedir}/lib/colord |
---|
116 | fi |
---|
117 | |
---|
118 | %pre |
---|
119 | getent group colord >/dev/null || groupadd -r colord |
---|
120 | getent passwd colord >/dev/null || \ |
---|
121 | useradd -r -g colord -d /var/lib/colord -s /sbin/nologin \ |
---|
122 | -c "User for colord" colord |
---|
123 | exit 0 |
---|
124 | |
---|
125 | %post |
---|
126 | /sbin/ldconfig |
---|
127 | %if %{with systemd} |
---|
128 | %systemd_post colord.service |
---|
129 | %endif |
---|
130 | |
---|
131 | %if %{with systemd} |
---|
132 | %preun |
---|
133 | %systemd_preun colord.service |
---|
134 | %endif |
---|
135 | |
---|
136 | %postun |
---|
137 | /sbin/ldconfig |
---|
138 | if [ $1 -eq 0 ]; then |
---|
139 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
140 | fi |
---|
141 | %if %{with systemd} |
---|
142 | %systemd_postun colord.service |
---|
143 | %endif |
---|
144 | |
---|
145 | %posttrans |
---|
146 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
147 | |
---|
148 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
149 | |
---|
150 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
151 | |
---|
152 | |
---|
153 | %files -f %{name}.lang |
---|
154 | %defattr(-,root,root,-) |
---|
155 | %license COPYING |
---|
156 | %doc AUTHORS NEWS README.md |
---|
157 | %{_libexecdir}/colord |
---|
158 | %{_libexecdir}/colord-session |
---|
159 | %attr(755,colord,colord) %dir %{_localstatedir}/lib/colord |
---|
160 | %attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc |
---|
161 | %{_bindir}/* |
---|
162 | %{_datadir}/dbus-1/system.d/org.freedesktop.ColorManager.conf |
---|
163 | %dir %{_datadir}/bash-completion |
---|
164 | %dir %{_datadir}/bash-completion/completions |
---|
165 | %{_datadir}/bash-completion/completions/colormgr |
---|
166 | %{_datadir}/color |
---|
167 | %{_datadir}/colord |
---|
168 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml |
---|
169 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml |
---|
170 | %{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service |
---|
171 | %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
---|
172 | %{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml |
---|
173 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy |
---|
174 | %{_datadir}/man/man1/*.1.gz |
---|
175 | %{_libdir}/libcolord.so.* |
---|
176 | %{_libdir}/libcolordprivate.so.* |
---|
177 | %{_libdir}/libcolorhug.so.* |
---|
178 | %{_libdir}/colord-plugins/libcolord_sensor_camera.so |
---|
179 | %{_libdir}/colord-plugins/libcolord_sensor_scanner.so |
---|
180 | %{!?with_firstbuild:%{_libdir}/girepository-1.0/Colord-1.0.typelib} |
---|
181 | %{!?with_firstbuild:%{_libdir}/girepository-1.0/Colorhug-1.0.typelib} |
---|
182 | /lib/udev/rules.d/*.rules |
---|
183 | %{_libdir}/colord-sensors |
---|
184 | %ghost %{_localstatedir}/lib/colord/*.db |
---|
185 | %if %{with systemd} |
---|
186 | %{_unitdir}/*.service |
---|
187 | %{_userunitdir}/*.service |
---|
188 | %{_tmpfilesdir}/colord.conf |
---|
189 | %endif |
---|
190 | |
---|
191 | |
---|
192 | %files devel |
---|
193 | %defattr(-,root,root,-) |
---|
194 | %{_includedir}/colord-1 |
---|
195 | %{_libdir}/libcolord.so |
---|
196 | %{_libdir}/libcolordprivate.so |
---|
197 | %{_libdir}/libcolorhug.so |
---|
198 | %{_libdir}/pkgconfig/colord.pc |
---|
199 | %{_libdir}/pkgconfig/colorhug.pc |
---|
200 | %{!?with_firstbuild:%{_datadir}/gir-1.0/Colord-1.0.gir} |
---|
201 | %{!?with_firstbuild:%{_datadir}/gir-1.0/Colorhug-1.0.gir} |
---|
202 | %dir %{_datadir}/vala |
---|
203 | %dir %{_datadir}/vala/vapi |
---|
204 | %{_datadir}/vala/vapi/* |
---|
205 | |
---|
206 | # compat32 |
---|
207 | %if %{build_compat32} |
---|
208 | %files -n compat32-%{name} |
---|
209 | %defattr(-,root,root,-) |
---|
210 | %{_libdir}/libcolord.so.* |
---|
211 | %{_libdir}/libcolordprivate.so.* |
---|
212 | %{_libdir}/libcolorhug.so.* |
---|
213 | |
---|
214 | %files -n compat32-%{name}-devel |
---|
215 | %defattr(-,root,root,-) |
---|
216 | %{_libdir}/libcolord.so |
---|
217 | %{_libdir}/libcolordprivate.so |
---|
218 | %{_libdir}/libcolorhug.so |
---|
219 | %endif |
---|
220 | |
---|
221 | |
---|
222 | %changelog |
---|
223 | * Mon Aug 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.4-1 |
---|
224 | - new upstream release. |
---|
225 | - added systemd support (disabled as default). |
---|
226 | - changed daemon-user to "colord". |
---|
227 | |
---|
228 | * Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.3-1 |
---|
229 | - new upstream release. |
---|
230 | |
---|
231 | * Fri Dec 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1.8-2 |
---|
232 | - added libcolordprivate and libcolorhug to compat32-* subpackages |
---|
233 | |
---|
234 | * Mon Nov 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.8-1 |
---|
235 | - new upstream release |
---|
236 | |
---|
237 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.7-1 |
---|
238 | - update to 1.1.7 |
---|
239 | |
---|
240 | * Sat Jun 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.7-1 |
---|
241 | - new upstream release |
---|
242 | |
---|
243 | * Fri Mar 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.6-1 |
---|
244 | - new upstream release |
---|
245 | |
---|
246 | * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.5-1 |
---|
247 | - new upstream release |
---|
248 | |
---|
249 | * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-1 |
---|
250 | - new upstream release |
---|
251 | |
---|
252 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-1 |
---|
253 | - new upstream release |
---|
254 | - add BuildRequires: bash-completion |
---|
255 | |
---|
256 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.33-1 |
---|
257 | - new upstream release |
---|
258 | |
---|
259 | * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.26-1 |
---|
260 | - new upstream release |
---|
261 | |
---|
262 | * Sun Nov 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.24-1 |
---|
263 | - new upstream release |
---|
264 | - remove BuildRequires: sane-devel |
---|
265 | |
---|
266 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.23-1 |
---|
267 | - new upstream release |
---|
268 | - change BuildRequires: libgusb-devel instead of libusb1-devel |
---|
269 | - add BuildRequires: gobject-introspection-devel |
---|
270 | |
---|
271 | * Tue Jun 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.21-1 |
---|
272 | - new upstream release |
---|
273 | |
---|
274 | * Mon Apr 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.19-1 |
---|
275 | - new upstream release |
---|
276 | |
---|
277 | * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.18-1 |
---|
278 | - new upstream release |
---|
279 | |
---|
280 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.15-1 |
---|
281 | - new upstream release |
---|
282 | |
---|
283 | * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.14-1 |
---|
284 | - new upstream release |
---|
285 | |
---|
286 | * Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.13-1 |
---|
287 | - new upstream release |
---|
288 | |
---|
289 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.12-1 |
---|
290 | - new upstream release |
---|
291 | |
---|
292 | * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.11-1 |
---|
293 | - new upstream release |
---|
294 | - create compat32 sub packages |
---|
295 | |
---|
296 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.10-1 |
---|
297 | - initial build for Vine Linux |
---|
298 | |
---|
299 | |
---|
300 | * Wed Jul 06 2011 Richard Hughes <richard@hughsie.com> 0.1.10-1 |
---|
301 | - New upstream version |
---|
302 | |
---|
303 | * Mon Jun 13 2011 Richard Hughes <richard@hughsie.com> 0.1.9-1 |
---|
304 | - New upstream version |
---|
305 | |
---|
306 | * Thu Jun 02 2011 Richard Hughes <richard@hughsie.com> 0.1.8-1 |
---|
307 | - New upstream version |
---|
308 | - Add a webcam device kind |
---|
309 | - Add a timestamp when making profiles default |
---|
310 | - Add support for reading and writing ICC profile metadata |
---|
311 | - Allow the client to pass file descriptors out of band to CreateProfile |
---|
312 | - Prettify the device vendor and model names |
---|
313 | - Split out the sensors into runtime-loadable shared objects |
---|
314 | - Provide some GIO async variants for the methods in CdClient |
---|
315 | - Ensure GPhoto2 devices get added to the device list |
---|
316 | |
---|
317 | * Fri May 06 2011 Richard Hughes <richard@hughsie.com> 0.1.7-1 |
---|
318 | - New upstream version. |
---|
319 | - Create /var/lib/colord at buildtime not runtime for SELinux |
---|
320 | - Ensure profiles with embedded profile checksums are parsed correctly |
---|
321 | - Move the colorimeter rules to be run before 70-acl.rules |
---|
322 | - Stop watching the client when the sensor is finalized |
---|
323 | - Ensure the source is destroyed when we unref CdUsb to prevent a crash |
---|
324 | - Only enable the volume mount tracking when searching volumes |
---|
325 | |
---|
326 | * Tue Apr 26 2011 Richard Hughes <rhughes@redhat.com> 0.1.6-2 |
---|
327 | - Own /var/lib/colord and /var/lib/colord/*.db |
---|
328 | |
---|
329 | * Sun Apr 24 2011 Richard Hughes <richard@hughsie.com> 0.1.6-1 |
---|
330 | - New upstream version. |
---|
331 | |
---|
332 | * Thu Mar 31 2011 Richard Hughes <richard@hughsie.com> 0.1.5-1 |
---|
333 | - New upstream version. |
---|
334 | |
---|
335 | * Wed Mar 09 2011 Richard Hughes <richard@hughsie.com> 0.1.4-1 |
---|
336 | - New upstream version. |
---|
337 | |
---|
338 | * Mon Feb 28 2011 Richard Hughes <richard@hughsie.com> 0.1.3-1 |
---|
339 | - New upstream version. |
---|
340 | |
---|
341 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3 |
---|
342 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
343 | |
---|
344 | * Fri Jan 28 2011 Richard Hughes <richard@hughsie.com> 0.1.1-2 |
---|
345 | - Rebuild in the vain hope koji isn't broken today. |
---|
346 | |
---|
347 | * Wed Jan 26 2011 Richard Hughes <richard@hughsie.com> 0.1.1-1 |
---|
348 | - New upstream version. |
---|
349 | |
---|
350 | * Thu Jan 13 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1 |
---|
351 | - Initial version for Fedora package review. |
---|