2011-06-16 14:51:27 +02:00
#
2011-07-05 12:09:37 +02:00
# spec file for package colord
2011-06-16 14:51:27 +02:00
#
2011-07-05 12:09:37 +02:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-06-16 14:51:27 +02:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : colord
2011-11-30 17:01:45 +01:00
Version : 0.1.15
2011-12-21 05:12:41 +01:00
Release : 0
2011-06-16 15:18:14 +02:00
Summary : System Daemon for Managing Color Devices
2011-12-21 05:12:41 +01:00
License : GPL-2.0+
2011-06-16 15:18:14 +02:00
Group : System/Daemons
2011-12-21 05:12:41 +01:00
Url : http://colord.hughsie.com/
2011-09-10 07:47:16 +02:00
Source0 : http://www.freedesktop.org/software/colord/releases/%{name} -%{version} .tar.xz
Source99 : baselibs.conf
2011-12-12 17:08:02 +01:00
# PATCH-FIX-UPSTREAM colord-polkit-annotate-owner.patch vuntz@opensuse.org -- Add org.freedesktop.policykit.owner annotations to policy file; will enter git very soon
Patch1 : colord-polkit-annotate-owner.patch
2011-09-02 18:00:57 +02:00
BuildRequires : gobject-introspection-devel
2011-06-16 14:51:27 +02:00
BuildRequires : intltool
2011-12-12 17:08:02 +01:00
# needed for patch1
BuildRequires : libtool
2011-06-16 15:18:14 +02:00
BuildRequires : sane-backends-devel
2011-09-02 18:00:57 +02:00
BuildRequires : vala
2011-06-17 09:00:50 +02:00
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires : xz
2011-06-16 14:51:27 +02:00
BuildRequires : pkgconfig(dbus-1)
BuildRequires : pkgconfig(gio-2.0)
BuildRequires : pkgconfig(gio-unix-2.0)
BuildRequires : pkgconfig(glib-2.0)
BuildRequires : pkgconfig(gmodule-2.0)
BuildRequires : pkgconfig(gobject-2.0)
BuildRequires : pkgconfig(gudev-1.0)
BuildRequires : pkgconfig(lcms2)
2011-09-02 18:00:57 +02:00
BuildRequires : pkgconfig(libusb-1.0) >= 1.0.0
2011-06-16 14:51:27 +02:00
BuildRequires : pkgconfig(polkit-gobject-1)
BuildRequires : pkgconfig(sqlite3)
2011-12-12 17:08:02 +01:00
Requires(pre) : pwdutils
2011-06-16 17:45:47 +02:00
Requires : shared-color-profiles
2011-06-16 14:51:27 +02:00
Recommends: %{name} -lang
2011-06-16 15:18:14 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-06-16 14:51:27 +02:00
%description
2011-06-16 15:18:14 +02:00
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
2011-06-16 14:51:27 +02:00
%package -n libcolord1
2011-06-16 15:18:14 +02:00
Summary : System Daemon for Managing Color Devices -- Library
2011-06-16 14:51:27 +02:00
Group : System/Libraries
2011-11-02 11:21:15 +01:00
Suggests : %{name}
2011-06-16 14:51:27 +02:00
%description -n libcolord1
2011-06-16 15:18:14 +02:00
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
2011-06-16 14:51:27 +02:00
2011-12-12 17:06:32 +01:00
%package -n typelib-1_0-Colord-1_0
2011-12-21 05:12:41 +01:00
Summary : System Daemon for Managing Color Devices -- Introspection bindings
2011-12-12 17:06:32 +01:00
Group : System/Libraries
%description -n typelib-1_0-Colord-1_0
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
2011-12-21 05:12:41 +01:00
This package provides the GObject Introspection bindings for the
libcolord library.
2011-06-16 14:51:27 +02:00
%package -n libcolord-devel
2011-06-16 15:18:14 +02:00
Summary : System Daemon for Managing Color Devices -- Development Files
2011-06-16 14:51:27 +02:00
Group : Development/Languages/C and C++
Requires : libcolord1 = %{version}
2011-12-12 17:06:32 +01:00
Requires : typelib-1_0-Colord-1_0 = %{version}
2011-06-16 14:51:27 +02:00
%description -n libcolord-devel
2011-06-16 15:18:14 +02:00
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
2011-06-16 14:51:27 +02:00
%lang_package
%prep
%setup -q
2011-12-12 17:08:02 +01:00
%patch1 -p1
2011-06-16 14:51:27 +02:00
%build
2011-12-12 17:08:02 +01:00
# needed for patch1
autoreconf -fi
intltoolize --force
2011-06-16 14:51:27 +02:00
%configure \
--disable-static \
2011-12-12 17:08:02 +01:00
--enable-polkit \
--with-daemon-user=colord
2011-06-16 14:51:27 +02:00
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name '*.la' -delete -print
2011-09-02 18:59:34 +02:00
# Manually install prebuilt man pages, since we don't have docbook2man
pushd man
test ! -f %{buildroot} %{_mandir} /man1/*
for man in *.1; do
install -m 644 ${man} %{buildroot} %{_mandir} /man1/
done
# Check we only have man1 pages to install
test ! -f *.[2-9]
popd
2011-06-16 14:51:27 +02:00
%find_lang %{name}
2011-12-12 17:08:02 +01:00
%pre
getent group colord >/dev/null || groupadd -r colord
getent passwd colord >/dev/null || useradd -r -g colord -d %{_localstatedir} /lib/colord -s /sbin/nologin -c " u s e r f o r c o l o r d " colord
# Fix ownership of /var/lib/colord from first packages (in 12.1)
test ! -d %{_localstatedir} /lib/colord || chown -R colord:colord %{_localstatedir} /lib/colord
exit 0
2011-06-16 14:51:27 +02:00
%post -n libcolord1 -p /sbin/ldconfig
%postun -n libcolord1 -p /sbin/ldconfig
%files
%defattr (-,root,root)
2011-06-16 15:18:14 +02:00
%doc AUTHORS ChangeLog COPYING NEWS README
2011-06-16 14:51:27 +02:00
/lib/udev/rules.d/*.rules
2011-12-12 17:08:02 +01:00
%attr (755,colord,colord) %dir %{_localstatedir} /lib/colord
2011-06-16 14:51:27 +02:00
%config (noreplace) %{_sysconfdir} /%{name} .conf
%{_sysconfdir} /dbus-1/system.d/org.freedesktop.ColorManager.conf
2011-06-16 15:18:14 +02:00
%{_bindir} /cd-create-profile
%{_bindir} /cd-fix-profile
%{_bindir} /colormgr
2011-06-16 14:51:27 +02:00
%{_libdir} /colord-sensors/
2011-06-16 15:18:14 +02:00
%{_libexecdir} /%{name}
2011-06-16 14:51:27 +02:00
%{_datadir} /color/
%{_datadir} /dbus-1/interfaces/org.freedesktop.ColorManager.*
%{_datadir} /dbus-1/system-services/org.freedesktop.ColorManager.service
%{_datadir} /polkit-1/actions/org.freedesktop.color.policy
2011-09-02 18:59:34 +02:00
%{_mandir} /man1/cd-create-profile.1%{?ext_man}
%{_mandir} /man1/cd-fix-profile.1%{?ext_man}
%{_mandir} /man1/colormgr.1%{?ext_man}
2011-06-16 14:51:27 +02:00
%files -n libcolord1
%defattr (-, root, root)
%{_libdir} /libcolord.so.*
2011-12-12 17:06:32 +01:00
%files -n typelib-1_0-Colord-1_0
%defattr (-,root,root)
2011-09-02 18:00:57 +02:00
%{_libdir} /girepository-1.0/Colord-1.0.typelib
2011-06-16 14:51:27 +02:00
%files -n libcolord-devel
%defattr (-, root, root)
2011-07-06 20:12:44 +02:00
%{_includedir} /colord-1/
2011-06-16 14:51:27 +02:00
%{_libdir} /libcolord.so
%{_libdir} /pkgconfig/colord.pc
2011-09-02 18:00:57 +02:00
%{_datadir} /gir-1.0/Colord-1.0.gir
%dir %{_datadir} /vala
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/colord.vapi
2011-06-16 14:51:27 +02:00
%files lang -f %{name}.lang
%changelog