[12446] | 1 | %bcond_with systemd |
---|
[6890] | 2 | %bcond_with firstbuild |
---|
[4632] | 3 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 4 | |
---|
[12446] | 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 |
---|
[4616] | 11 | |
---|
[12446] | 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 | |
---|
[9145] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[12005] | 18 | BuildRequires: meson |
---|
[4616] | 19 | BuildRequires: dbus-devel |
---|
| 20 | BuildRequires: docbook-utils |
---|
[12446] | 21 | BuildRequires: docbook5-style-xsl |
---|
[4616] | 22 | BuildRequires: gettext |
---|
| 23 | BuildRequires: glib2-devel |
---|
| 24 | BuildRequires: intltool |
---|
| 25 | BuildRequires: lcms2-devel |
---|
| 26 | BuildRequires: libgudev1-devel |
---|
[6890] | 27 | BuildRequires: libgusb-devel |
---|
[4616] | 28 | BuildRequires: polkit-devel |
---|
| 29 | BuildRequires: sqlite3-devel |
---|
[12446] | 30 | BuildRequires: vala-tools |
---|
[7681] | 31 | BuildRequires: bash-completion |
---|
[12446] | 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 |
---|
[12005] | 38 | BuildRequires: elogind-devel |
---|
[12446] | 39 | %endif |
---|
[4616] | 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 | |
---|
[12446] | 46 | |
---|
[4616] | 47 | %package devel |
---|
| 48 | Summary: Development package for %{name} |
---|
[4632] | 49 | Group: Development/Libraries |
---|
[4616] | 50 | Requires: %{name} = %{version}-%{release} |
---|
[4704] | 51 | Requires: glib2-devel |
---|
| 52 | Requires: dbus-devel |
---|
| 53 | Requires: lcms2-devel |
---|
[4616] | 54 | |
---|
| 55 | %description devel |
---|
| 56 | Files for development with %{name}. |
---|
| 57 | |
---|
[12446] | 58 | |
---|
[4632] | 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 | |
---|
[12446] | 69 | |
---|
[4632] | 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 | |
---|
[4616] | 79 | %prep |
---|
[12446] | 80 | %setup |
---|
| 81 | %if !%{with systemd} |
---|
| 82 | %patch0 -p1 |
---|
| 83 | %endif |
---|
[4616] | 84 | |
---|
[12446] | 85 | |
---|
[4616] | 86 | %build |
---|
[12005] | 87 | %meson \ |
---|
[12446] | 88 | -Ddaemon_user=colord \ |
---|
| 89 | %if %{with systemd} |
---|
| 90 | -Dsystemd=true \ |
---|
| 91 | %else |
---|
[12005] | 92 | -Dsystemd=false \ |
---|
| 93 | -Delogind=true \ |
---|
[12446] | 94 | %endif |
---|
[12005] | 95 | -Dargyllcms_sensor=false \ |
---|
[12446] | 96 | -Dvapi=true \ |
---|
[12005] | 97 | -Ddocs=false |
---|
[4616] | 98 | |
---|
[12005] | 99 | %meson_build |
---|
[4616] | 100 | |
---|
[12446] | 101 | |
---|
[4616] | 102 | %install |
---|
[12005] | 103 | rm -rf %{buildroot} |
---|
| 104 | %meson_install |
---|
[4616] | 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 | |
---|
[12446] | 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 | |
---|
[7633] | 136 | %postun |
---|
| 137 | /sbin/ldconfig |
---|
| 138 | if [ $1 -eq 0 ]; then |
---|
| 139 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 140 | fi |
---|
[12446] | 141 | %if %{with systemd} |
---|
| 142 | %systemd_postun colord.service |
---|
| 143 | %endif |
---|
[4616] | 144 | |
---|
[7633] | 145 | %posttrans |
---|
| 146 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 147 | |
---|
[4632] | 148 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 149 | |
---|
| 150 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 151 | |
---|
[12446] | 152 | |
---|
[4616] | 153 | %files -f %{name}.lang |
---|
| 154 | %defattr(-,root,root,-) |
---|
[12005] | 155 | %license COPYING |
---|
| 156 | %doc AUTHORS NEWS README.md |
---|
[4616] | 157 | %{_libexecdir}/colord |
---|
[7633] | 158 | %{_libexecdir}/colord-session |
---|
[12446] | 159 | %attr(755,colord,colord) %dir %{_localstatedir}/lib/colord |
---|
| 160 | %attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc |
---|
[4616] | 161 | %{_bindir}/* |
---|
[12005] | 162 | %{_datadir}/dbus-1/system.d/org.freedesktop.ColorManager.conf |
---|
| 163 | %dir %{_datadir}/bash-completion |
---|
| 164 | %dir %{_datadir}/bash-completion/completions |
---|
[7681] | 165 | %{_datadir}/bash-completion/completions/colormgr |
---|
[7633] | 166 | %{_datadir}/color |
---|
| 167 | %{_datadir}/colord |
---|
| 168 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml |
---|
[4616] | 169 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml |
---|
[7633] | 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 |
---|
[4616] | 173 | %{_datadir}/polkit-1/actions/org.freedesktop.color.policy |
---|
| 174 | %{_datadir}/man/man1/*.1.gz |
---|
| 175 | %{_libdir}/libcolord.so.* |
---|
[7633] | 176 | %{_libdir}/libcolordprivate.so.* |
---|
| 177 | %{_libdir}/libcolorhug.so.* |
---|
[12005] | 178 | %{_libdir}/colord-plugins/libcolord_sensor_camera.so |
---|
| 179 | %{_libdir}/colord-plugins/libcolord_sensor_scanner.so |
---|
[6890] | 180 | %{!?with_firstbuild:%{_libdir}/girepository-1.0/Colord-1.0.typelib} |
---|
[12005] | 181 | %{!?with_firstbuild:%{_libdir}/girepository-1.0/Colorhug-1.0.typelib} |
---|
[4616] | 182 | /lib/udev/rules.d/*.rules |
---|
| 183 | %{_libdir}/colord-sensors |
---|
| 184 | %ghost %{_localstatedir}/lib/colord/*.db |
---|
[12446] | 185 | %if %{with systemd} |
---|
| 186 | %{_unitdir}/*.service |
---|
| 187 | %{_userunitdir}/*.service |
---|
| 188 | %{_tmpfilesdir}/colord.conf |
---|
| 189 | %endif |
---|
[4616] | 190 | |
---|
[12446] | 191 | |
---|
[4616] | 192 | %files devel |
---|
| 193 | %defattr(-,root,root,-) |
---|
| 194 | %{_includedir}/colord-1 |
---|
| 195 | %{_libdir}/libcolord.so |
---|
[7633] | 196 | %{_libdir}/libcolordprivate.so |
---|
| 197 | %{_libdir}/libcolorhug.so |
---|
[4616] | 198 | %{_libdir}/pkgconfig/colord.pc |
---|
[7633] | 199 | %{_libdir}/pkgconfig/colorhug.pc |
---|
[6890] | 200 | %{!?with_firstbuild:%{_datadir}/gir-1.0/Colord-1.0.gir} |
---|
[12005] | 201 | %{!?with_firstbuild:%{_datadir}/gir-1.0/Colorhug-1.0.gir} |
---|
[12446] | 202 | %dir %{_datadir}/vala |
---|
| 203 | %dir %{_datadir}/vala/vapi |
---|
| 204 | %{_datadir}/vala/vapi/* |
---|
[4616] | 205 | |
---|
[4632] | 206 | # compat32 |
---|
| 207 | %if %{build_compat32} |
---|
| 208 | %files -n compat32-%{name} |
---|
| 209 | %defattr(-,root,root,-) |
---|
| 210 | %{_libdir}/libcolord.so.* |
---|
[9145] | 211 | %{_libdir}/libcolordprivate.so.* |
---|
| 212 | %{_libdir}/libcolorhug.so.* |
---|
[4632] | 213 | |
---|
| 214 | %files -n compat32-%{name}-devel |
---|
| 215 | %defattr(-,root,root,-) |
---|
| 216 | %{_libdir}/libcolord.so |
---|
[9145] | 217 | %{_libdir}/libcolordprivate.so |
---|
| 218 | %{_libdir}/libcolorhug.so |
---|
[4632] | 219 | %endif |
---|
| 220 | |
---|
[12446] | 221 | |
---|
[4616] | 222 | %changelog |
---|
[12446] | 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 | |
---|
[12005] | 228 | * Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.3-1 |
---|
| 229 | - new upstream release. |
---|
| 230 | |
---|
[9145] | 231 | * Fri Dec 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1.8-2 |
---|
| 232 | - added libcolordprivate and libcolorhug to compat32-* subpackages |
---|
| 233 | |
---|
[9097] | 234 | * Mon Nov 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.8-1 |
---|
| 235 | - new upstream release |
---|
| 236 | |
---|
[9073] | 237 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.7-1 |
---|
| 238 | - update to 1.1.7 |
---|
| 239 | |
---|
[8622] | 240 | * Sat Jun 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.7-1 |
---|
| 241 | - new upstream release |
---|
| 242 | |
---|
[8353] | 243 | * Fri Mar 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.6-1 |
---|
| 244 | - new upstream release |
---|
| 245 | |
---|
[8064] | 246 | * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.5-1 |
---|
| 247 | - new upstream release |
---|
| 248 | |
---|
[7786] | 249 | * Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-1 |
---|
| 250 | - new upstream release |
---|
| 251 | |
---|
[7681] | 252 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-1 |
---|
[7633] | 253 | - new upstream release |
---|
[7681] | 254 | - add BuildRequires: bash-completion |
---|
[7633] | 255 | |
---|
[7681] | 256 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.33-1 |
---|
[7294] | 257 | - new upstream release |
---|
| 258 | |
---|
[7681] | 259 | * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.26-1 |
---|
[7111] | 260 | - new upstream release |
---|
[7681] | 261 | |
---|
| 262 | * Sun Nov 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.24-1 |
---|
| 263 | - new upstream release |
---|
[7111] | 264 | - remove BuildRequires: sane-devel |
---|
| 265 | |
---|
[7681] | 266 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.23-1 |
---|
[6890] | 267 | - new upstream release |
---|
| 268 | - change BuildRequires: libgusb-devel instead of libusb1-devel |
---|
| 269 | - add BuildRequires: gobject-introspection-devel |
---|
| 270 | |
---|
[7681] | 271 | * Tue Jun 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.21-1 |
---|
[6431] | 272 | - new upstream release |
---|
| 273 | |
---|
[7681] | 274 | * Mon Apr 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.19-1 |
---|
[6086] | 275 | - new upstream release |
---|
| 276 | |
---|
[7681] | 277 | * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.18-1 |
---|
[6011] | 278 | - new upstream release |
---|
| 279 | |
---|
[7681] | 280 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.15-1 |
---|
[5316] | 281 | - new upstream release |
---|
| 282 | |
---|
[7681] | 283 | * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.14-1 |
---|
[5168] | 284 | - new upstream release |
---|
| 285 | |
---|
[7681] | 286 | * Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.13-1 |
---|
[4881] | 287 | - new upstream release |
---|
| 288 | |
---|
[7681] | 289 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.12-1 |
---|
[4704] | 290 | - new upstream release |
---|
| 291 | |
---|
[7681] | 292 | * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.11-1 |
---|
[4632] | 293 | - new upstream release |
---|
| 294 | - create compat32 sub packages |
---|
| 295 | |
---|
[7681] | 296 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.10-1 |
---|
[4616] | 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 | |
---|
[7633] | 306 | * Thu Jun 02 2011 Richard Hughes <richard@hughsie.com> 0.1.8-1 |
---|
[4616] | 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. |
---|