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.bz2
13 # Source0-md5: f815d1632558ad23c6dabad92e18994b
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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 colord is a low level system activated daemon that maps color devices
33 to color profiles in the system context.
36 Summary: Header files for colord library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
41 Requires: glib2-devel >= 1:2.26.0
44 Header files for colord library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki colord.
50 Summary: Static colord library
51 Summary(pl.UTF-8): Statyczna biblioteka colord
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static colord library.
58 %description static -l pl.UTF-8
59 Statyczna biblioteka colord.
62 Summary: colord API documentation
63 Summary(pl.UTF-8): Dokumentacja API colord
65 Requires: gtk-doc-common
68 colord API documentation.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API colord.
84 %{__enable_disable apidocs gtk-doc} \
85 %{__enable_disable static_libs static} \
86 --with-html-dir=%{_gtkdocdir}
90 rm -rf $RPM_BUILD_ROOT
93 DESTDIR=$RPM_BUILD_ROOT
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README TODO
108 %attr(755,root,root) %{_bindir}/colormgr
109 %attr(755,root,root) %{_libexecdir}/colord
110 %attr(755,root,root) %{_libdir}/libcolord.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1
112 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml
113 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml
114 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml
115 %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
116 %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
117 %{_mandir}/man1/colormgr.1*
118 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
119 /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
120 /lib/udev/rules.d/95-cd-devices.rules
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libcolord.so
125 %{_includedir}/libcolord
126 %{_pkgconfigdir}/colord.pc
128 %if %{with static_libs}
130 %defattr(644,root,root,755)
131 %{_libdir}/libcolord.a
136 %defattr(644,root,root,755)