| 1 |
%define alphatag #ALPHATAG# |
| 2 |
|
| 3 |
Summary: Color daemon |
| 4 |
Name: colord |
| 5 |
Version: #VERSION# |
| 6 |
Release: 0.#BUILD#%{?alphatag}%{?dist} |
| 7 |
License: GPLv2+ and LGPLv2+ |
| 8 |
URL: http://www.freedesktop.org/software/colord/ |
| 9 |
Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz |
| 10 |
|
| 11 |
BuildRequires: dbus-devel |
| 12 |
BuildRequires: docbook-utils |
| 13 |
BuildRequires: gettext |
| 14 |
BuildRequires: glib2-devel |
| 15 |
BuildRequires: intltool |
| 16 |
BuildRequires: lcms2-devel >= 2.2 |
| 17 |
BuildRequires: libgudev1-devel |
| 18 |
BuildRequires: polkit-devel >= 0.103 |
| 19 |
BuildRequires: sane-backends-devel |
| 20 |
BuildRequires: sqlite-devel |
| 21 |
BuildRequires: gobject-introspection-devel |
| 22 |
BuildRequires: vala-tools |
| 23 |
BuildRequires: libgusb-devel |
| 24 |
BuildRequires: gtk3-devel |
| 25 |
BuildRequires: gtk-doc |
| 26 |
|
| 27 |
Requires: shared-color-profiles |
| 28 |
Requires: colord-sane |
| 29 |
Requires: color-filesystem |
| 30 |
Requires: systemd-units |
| 31 |
Requires(pre): shadow-utils |
| 32 |
|
| 33 |
%description |
| 34 |
colord is a low level system activated daemon that maps color devices |
| 35 |
to color profiles in the system context. |
| 36 |
|
| 37 |
%package devel |
| 38 |
Summary: Development package for %{name} |
| 39 |
Requires: %{name} = %{version}-%{release} |
| 40 |
|
| 41 |
%description devel |
| 42 |
Files for development with %{name}. |
| 43 |
|
| 44 |
%package gtk-devel |
| 45 |
Summary: GTK development package for %{name} |
| 46 |
Requires: %{name} = %{version}-%{release} |
| 47 |
|
| 48 |
%description gtk-devel |
| 49 |
Files for development with %{name} using GTK. |
| 50 |
|
| 51 |
%package sane |
| 52 |
Summary: SANE helper package for %{name} |
| 53 |
Requires: %{name} = %{version}-%{release} |
| 54 |
|
| 55 |
%description sane |
| 56 |
SANE helper package for %{name} that monitors scanners that are added |
| 57 |
and removed. This is a seporate process as libsane is craptastic, but |
| 58 |
useful. |
| 59 |
|
| 60 |
%package gtk |
| 61 |
Summary: GTK helper library for %{name} |
| 62 |
Requires: %{name} = %{version}-%{release} |
| 63 |
|
| 64 |
%description gtk |
| 65 |
This package contains extra functionality for %{name} that can be used |
| 66 |
when running GTK applications. |
| 67 |
|
| 68 |
%prep |
| 69 |
%setup -q |
| 70 |
|
| 71 |
%build |
| 72 |
%configure \ |
| 73 |
--with-daemon-user=colord \ |
| 74 |
--enable-gtk-doc \ |
| 75 |
--disable-static \ |
| 76 |
--disable-rpath \ |
| 77 |
--disable-dependency-tracking |
| 78 |
|
| 79 |
make %{?_smp_mflags} |
| 80 |
|
| 81 |
%install |
| 82 |
make install DESTDIR=$RPM_BUILD_ROOT |
| 83 |
|
| 84 |
# Remove static libs and libtool archives. |
| 85 |
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
| 86 |
find %{buildroot} -name '*.a' -exec rm -f {} ';' |
| 87 |
|
| 88 |
# databases |
| 89 |
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/mapping.db |
| 90 |
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/storage.db |
| 91 |
|
| 92 |
%find_lang %{name} |
| 93 |
|
| 94 |
%pre |
| 95 |
getent group colord >/dev/null || groupadd -r colord |
| 96 |
getent passwd colord >/dev/null || \ |
| 97 |
useradd -r -g colord -d /var/lib/colord -s /sbin/nologin \ |
| 98 |
-c "User for colord" colord |
| 99 |
exit 0 |
| 100 |
|
| 101 |
%post -p /sbin/ldconfig |
| 102 |
|
| 103 |
%postun -p /sbin/ldconfig |
| 104 |
|
| 105 |
%files -f %{name}.lang |
| 106 |
%defattr(-,root,root,-) |
| 107 |
%doc README AUTHORS NEWS COPYING |
| 108 |
%{_libexecdir}/colord |
| 109 |
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord |
| 110 |
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc |
| 111 |
%{_bindir}/* |
| 112 |
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf |
| 113 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml |
| 114 |
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy |
| 115 |
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service |
| 116 |
%{_datadir}/man/man1/*.1.gz |
| 117 |
%{_libdir}/libcolord.so.* |
| 118 |
%config %{_sysconfdir}/colord.conf |
| 119 |
/lib/udev/rules.d/*.rules |
| 120 |
%dir %{_datadir}/color/icc/colord |
| 121 |
%{_datadir}/color/icc/colord/*.ic? |
| 122 |
%{_libdir}/colord-sensors |
| 123 |
%{_libdir}/girepository-1.0/*.typelib |
| 124 |
%ghost %{_localstatedir}/lib/colord/*.db |
| 125 |
/usr/lib/systemd/system/colord.service |
| 126 |
%{_sysconfdir}/bash_completion.d/*-completion.bash |
| 127 |
|
| 128 |
%files devel |
| 129 |
%defattr(-,root,root,-) |
| 130 |
%{_includedir}/colord-1 |
| 131 |
%{_libdir}/libcolord.so |
| 132 |
%{_libdir}/pkgconfig/colord.pc |
| 133 |
%{_datadir}/gir-1.0/Colord-1.0.gir |
| 134 |
%{_datadir}/vala/vapi/colord.vapi |
| 135 |
%dir %{_datadir}/gtk-doc/html/colord |
| 136 |
%{_datadir}/gtk-doc/html/colord/* |
| 137 |
|
| 138 |
%files gtk-devel |
| 139 |
%defattr(-,root,root,-) |
| 140 |
%{_libdir}/libcolord-gtk.so |
| 141 |
%{_libdir}/pkgconfig/colord-gtk.pc |
| 142 |
%{_datadir}/gir-1.0/ColordGtk-1.0.gir |
| 143 |
|
| 144 |
%files sane |
| 145 |
%defattr(-,root,root,-) |
| 146 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.colord.sane.xml |
| 147 |
%{_datadir}/dbus-1/system-services/org.freedesktop.colord-sane.service |
| 148 |
/usr/lib/systemd/system/colord-sane.service |
| 149 |
%{_libexecdir}/colord-sane |
| 150 |
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.colord-sane.conf |
| 151 |
|
| 152 |
%files gtk |
| 153 |
%defattr(-,root,root,-) |
| 154 |
%{_libdir}/libcolord-gtk.so.* |
| 155 |
|
| 156 |
%changelog |
| 157 |
* #LONGDATE# Richard Hughes <richard@hughsie.com> #VERSION#-0.#BUILD##ALPHATAG# |
| 158 |
- Update from git |