3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
5 %bcond_without vala # don't build Vala API
7 Summary: Color daemon - system daemon for managing color devices
8 Summary(pl.UTF-8): Demon colord - usługa systemowa do zarządzania urządzeniami obsługującymi kolory
12 License: GPL v2+ and LGPL v2+
14 Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
15 # Source0-md5: 37437a2119d7c89fe3c991ee4c148f94
16 URL: http://www.freedesktop.org/software/colord/
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake >= 1:1.9
19 BuildRequires: dbus-devel
20 BuildRequires: gettext-devel >= 0.17
21 BuildRequires: glib2-devel >= 1:2.28.0
22 BuildRequires: gobject-introspection-devel >= 0.9.8
23 BuildRequires: gtk-doc >= 1.9
24 BuildRequires: intltool >= 0.40.0
25 BuildRequires: lcms2-devel >= 2.2
26 BuildRequires: libtool
27 BuildRequires: libusb-devel >= 1.0.0
28 BuildRequires: pkgconfig
29 BuildRequires: polkit-devel >= 0.97
30 BuildRequires: sane-backends-devel
31 BuildRequires: sqlite3-devel
32 BuildRequires: udev-glib-devel
33 %{?with_vala:BuildRequires: vala}
34 Requires: %{name}-libs = %{version}-%{release}
35 Suggests: shared-color-profiles
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 colord is a low level system activated daemon that maps color devices
40 to color profiles in the system context.
42 %description -l pl.UTF-8
43 colord to niskopoziomowa usługa systemowa odwzorowująca urządzenia
44 obsługujące kolory na profile kolorów w kontekście systemu.
47 Summary: colord library
48 Summary(pl.UTF-8): Biblioteka colord
50 Suggests: %{name} = %{version}-%{release}
51 Conflicts: colord < 0.1.12-4
56 %description libs -l pl.UTF-8
60 Summary: Header files for colord library
61 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord
62 Group: Development/Libraries
63 Requires: %{name}-libs = %{version}-%{release}
65 Requires: glib2-devel >= 1:2.28.0
68 Header files for colord library.
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe biblioteki colord.
74 Summary: Static colord library
75 Summary(pl.UTF-8): Statyczna biblioteka colord
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 Static colord library.
82 %description static -l pl.UTF-8
83 Statyczna biblioteka colord.
86 Summary: colord API documentation
87 Summary(pl.UTF-8): Dokumentacja API colord
89 Requires: gtk-doc-common
92 colord API documentation.
94 %description apidocs -l pl.UTF-8
95 Dokumentacja API colord.
97 %package -n vala-colord
98 Summary: colord API for Vala language
99 Summary(pl.UTF-8): API colord dla języka Vala
100 Group: Development/Libraries
101 Requires: %{name}-devel = %{version}-%{release}
103 %description -n vala-colord
104 colord API for Vala language.
106 %description -n vala-colord -l pl.UTF-8
107 API colord dla języka Vala.
120 --disable-silent-rules \
121 %{__enable_disable apidocs gtk-doc} \
122 %{__enable_disable static_libs static} \
123 --with-html-dir=%{_gtkdocdir}
124 # doc build is broken with -j
128 rm -rf $RPM_BUILD_ROOT
131 DESTDIR=$RPM_BUILD_ROOT
133 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
134 %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.a
135 %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.la
137 # the same as it locale
138 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/it_IT
143 rm -rf $RPM_BUILD_ROOT
145 %post libs -p /sbin/ldconfig
146 %postun libs -p /sbin/ldconfig
148 %files -f %{name}.lang
149 %defattr(644,root,root,755)
150 %doc AUTHORS ChangeLog NEWS README TODO
151 %attr(755,root,root) %{_bindir}/cd-create-profile
152 %attr(755,root,root) %{_bindir}/cd-fix-profile
153 %attr(755,root,root) %{_bindir}/colormgr
154 %attr(755,root,root) %{_libexecdir}/colord
155 %dir %{_libdir}/colord-sensors
156 %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so
157 %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so
158 %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so
159 %dir %{_datadir}/color/icc/colord
160 %{_datadir}/color/icc/colord/*.icc
161 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml
162 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml
163 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml
164 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml
165 %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
166 %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
167 %{_mandir}/man1/cd-create-profile.1*
168 %{_mandir}/man1/cd-fix-profile.1*
169 %{_mandir}/man1/colormgr.1*
170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
171 /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
172 /lib/udev/rules.d/69-cd-sensors.rules
173 /lib/udev/rules.d/95-cd-devices.rules
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/libcolord.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1
180 %{_libdir}/girepository-1.0/Colord-1.0.typelib
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libcolord.so
185 %{_includedir}/colord-1
186 %{_pkgconfigdir}/colord.pc
187 %{_datadir}/gir-1.0/Colord-1.0.gir
189 %if %{with static_libs}
191 %defattr(644,root,root,755)
192 %{_libdir}/libcolord.a
197 %defattr(644,root,root,755)
202 %files -n vala-colord
203 %defattr(644,root,root,755)
204 %{_datadir}/vala/vapi/colord.vapi