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://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
13 # Source0-md5: 6d4985b922163128beed42ecfdef5ede
14 URL: http://colord.hughsie.com/
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.26.0
20 BuildRequires: gtk-doc >= 1.9
21 BuildRequires: intltool >= 0.40.0
22 BuildRequires: lcms2-devel
23 BuildRequires: libtool
24 BuildRequires: pkgconfig
25 BuildRequires: polkit-devel >= 0.97
26 BuildRequires: sane-backends-devel
27 BuildRequires: sqlite3-devel
28 BuildRequires: udev-glib-devel
29 Suggests: shared-color-profiles
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 colord is a low level system activated daemon that maps color devices
34 to color profiles in the system context.
37 Summary: Header files for colord library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
42 Requires: glib2-devel >= 1:2.26.0
45 Header files for colord library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki colord.
51 Summary: Static colord library
52 Summary(pl.UTF-8): Statyczna biblioteka colord
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static colord library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka colord.
63 Summary: colord API documentation
64 Summary(pl.UTF-8): Dokumentacja API colord
66 Requires: gtk-doc-common
69 colord API documentation.
71 %description apidocs -l pl.UTF-8
72 Dokumentacja API colord.
85 --disable-silent-rules \
86 %{__enable_disable apidocs gtk-doc} \
87 %{__enable_disable static_libs static} \
88 --with-html-dir=%{_gtkdocdir}
89 # doc build is broken with -j
93 rm -rf $RPM_BUILD_ROOT
96 DESTDIR=$RPM_BUILD_ROOT
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
99 %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.a
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/colord-sensors/*.la
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
110 %files -f %{name}.lang
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog NEWS README TODO
113 %attr(755,root,root) %{_bindir}/cd-create-profile
114 %attr(755,root,root) %{_bindir}/cd-fix-profile
115 %attr(755,root,root) %{_bindir}/colormgr
116 %attr(755,root,root) %{_libexecdir}/colord
117 %attr(755,root,root) %{_libdir}/libcolord.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1
119 %dir %{_libdir}/colord-sensors
120 %dir %{_libdir}/colord-sensors/*.so
121 %dir %{_datadir}/color
122 %dir %{_datadir}/color/icc
123 %dir %{_datadir}/color/icc/colord
124 %{_datadir}/color/icc/colord/*.icc
125 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml
126 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml
127 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Sensor.xml
128 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml
129 %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
130 %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
131 %{_mandir}/man1/cd-create-profile.1*
132 %{_mandir}/man1/colormgr.1*
133 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
134 /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
135 /lib/udev/rules.d/69-cd-sensors.rules
136 /lib/udev/rules.d/95-cd-devices.rules
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libcolord.so
141 %{_includedir}/colord-1
142 %{_pkgconfigdir}/colord.pc
144 %if %{with static_libs}
146 %defattr(644,root,root,755)
147 %{_libdir}/libcolord.a
152 %defattr(644,root,root,755)