3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
10 License: GPL v2+ and LGPL v2+
12 Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
13 # Source0-md5: 6771aef77142c66bc92988c5174f24b5
14 URL: http://www.freedesktop.org/software/colord/
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.9
17 BuildRequires: dbus-devel
18 BuildRequires: gettext-devel
19 BuildRequires: glib2-devel >= 1:2.28.0
20 BuildRequires: gtk-doc >= 1.9
21 BuildRequires: intltool >= 0.40.0
22 BuildRequires: lcms2-devel
23 BuildRequires: libtool
24 BuildRequires: libusb-devel >= 1.0.0
25 BuildRequires: pkgconfig
26 BuildRequires: polkit-devel >= 0.97
27 BuildRequires: sane-backends-devel
28 BuildRequires: sqlite3-devel
29 BuildRequires: udev-glib-devel
31 Suggests: shared-color-profiles
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 colord is a low level system activated daemon that maps color devices
36 to color profiles in the system context.
39 Summary: Header files for colord library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
44 Requires: glib2-devel >= 1:2.28.0
47 Header files for colord library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki colord.
53 Summary: Static colord library
54 Summary(pl.UTF-8): Statyczna biblioteka colord
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static colord library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka colord.
65 Summary: colord API documentation
66 Summary(pl.UTF-8): Dokumentacja API colord
68 Requires: gtk-doc-common
71 colord API documentation.
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API colord.
87 --disable-silent-rules \
88 %{__enable_disable apidocs gtk-doc} \
89 %{__enable_disable static_libs static} \
90 --with-html-dir=%{_gtkdocdir}
91 # doc build is broken with -j
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.a
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.la
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
112 %files -f %{name}.lang
113 %defattr(644,root,root,755)
114 %doc AUTHORS ChangeLog NEWS README TODO
115 %attr(755,root,root) %{_bindir}/cd-create-profile
116 %attr(755,root,root) %{_bindir}/cd-fix-profile
117 %attr(755,root,root) %{_bindir}/colormgr
118 %attr(755,root,root) %{_libexecdir}/colord
119 %attr(755,root,root) %{_libdir}/libcolord.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1
121 %dir %{_libdir}/colord-sensors
122 %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_dummy.so
123 %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_huey.so
124 %attr(755,root,root) %{_libdir}/colord-sensors/libcolord_sensor_munki.so
125 %dir %{_datadir}/color/icc/colord
126 %{_datadir}/color/icc/colord/*.icc
127 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml
128 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml
129 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml
130 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml
131 %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
132 %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
133 %{_mandir}/man1/cd-create-profile.1*
134 %{_mandir}/man1/cd-fix-profile.1*
135 %{_mandir}/man1/colormgr.1*
136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
137 /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
138 /lib/udev/rules.d/69-cd-sensors.rules
139 /lib/udev/rules.d/95-cd-devices.rules
141 %{_libdir}/girepository-1.0/Colord-1.0.typelib
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_libdir}/libcolord.so
146 %{_includedir}/colord-1
147 %{_pkgconfigdir}/colord.pc
148 %{_datadir}/vala/vapi/colord.vapi
149 %{_datadir}/gir-1.0/Colord-1.0.gir
151 %if %{with static_libs}
153 %defattr(644,root,root,755)
154 %{_libdir}/libcolord.a
159 %defattr(644,root,root,755)