# # Conditional build: %bcond_without apidocs # do not build and package API docs %bcond_without static_libs # don't build static libraries # Summary: Color daemon Name: colord Version: 0.1.5 Release: 1 License: GPL v2+ and LGPL v2+ Group: Daemons Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.bz2 # Source0-md5: f815d1632558ad23c6dabad92e18994b URL: http://colord.hughsie.com/ BuildRequires: autoconf >= 2.63 BuildRequires: automake >= 1:1.9 BuildRequires: dbus-devel BuildRequires: gettext-devel BuildRequires: glib2-devel >= 1:2.26.0 BuildRequires: gtk-doc >= 1.9 BuildRequires: intltool >= 0.40.0 BuildRequires: lcms2-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: polkit-devel >= 0.97 BuildRequires: sane-backends-devel BuildRequires: sqlite3-devel BuildRequires: udev-glib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description colord is a low level system activated daemon that maps color devices to color profiles in the system context. %package devel Summary: Header files for colord library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki colord Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: dbus-devel Requires: glib2-devel >= 1:2.26.0 %description devel Header files for colord library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki colord. %package static Summary: Static colord library Summary(pl.UTF-8): Statyczna biblioteka colord Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static colord library. %description static -l pl.UTF-8 Statyczna biblioteka colord. %package apidocs Summary: colord API documentation Summary(pl.UTF-8): Dokumentacja API colord Group: Documentation Requires: gtk-doc-common %description apidocs colord API documentation. %description apidocs -l pl.UTF-8 Dokumentacja API colord. %prep %setup -q %build %{__intltoolize} %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{__enable_disable apidocs gtk-doc} \ %{__enable_disable static_libs static} \ --with-html-dir=%{_gtkdocdir} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README TODO %attr(755,root,root) %{_bindir}/colormgr %attr(755,root,root) %{_libexecdir}/colord %attr(755,root,root) %{_libdir}/libcolord.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service %{_datadir}/polkit-1/actions/org.freedesktop.color.policy %{_mandir}/man1/colormgr.1* %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf /lib/udev/rules.d/95-cd-devices.rules %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libcolord.so %{_includedir}/libcolord %{_pkgconfigdir}/colord.pc %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libcolord.a %endif %if %{with apidocs} %files apidocs %defattr(644,root,root,755) %{_gtkdocdir}/colord %endif