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
|
|
|
#
|
2013-01-11 12:33:48 +01:00
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
#
|
|
|
|
|
2012-01-18 21:20:47 +01:00
|
|
|
|
2012-10-17 22:20:24 +02:00
|
|
|
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
|
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
Name: colord
|
2013-07-08 23:14:50 +02:00
|
|
|
Version: 1.0.2
|
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/
|
2012-09-21 21:24:48 +02:00
|
|
|
Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
|
2012-07-16 22:23:35 +02:00
|
|
|
# Apparmor profile
|
2012-07-16 22:21:24 +02:00
|
|
|
Source1: usr.lib.colord
|
2011-09-10 07:47:16 +02:00
|
|
|
Source99: baselibs.conf
|
2011-09-02 18:00:57 +02:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2011-06-16 14:51:27 +02:00
|
|
|
BuildRequires: intltool
|
2011-09-02 18:00:57 +02:00
|
|
|
BuildRequires: vala
|
2013-05-05 14:00:34 +02:00
|
|
|
BuildRequires: pkgconfig(bash-completion) >= 2.0
|
2011-06-16 14:51:27 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2013-03-20 19:07:37 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.25.9
|
2011-06-16 14:51:27 +02:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2013-03-20 19:07:37 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.32.0
|
2011-06-16 14:51:27 +02:00
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
2012-01-18 21:20:47 +01:00
|
|
|
BuildRequires: pkgconfig(gusb) >= 0.1.1
|
2012-03-21 09:48:47 +01:00
|
|
|
BuildRequires: pkgconfig(lcms2) >= 2.2
|
2012-11-05 17:44:34 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd-login) >= 44
|
2012-01-17 19:49:01 +01:00
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.103
|
2011-06-16 14:51:27 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2012-01-17 19:49:01 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2012-09-21 21:24:48 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
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
|
2012-02-28 00:11:26 +01:00
|
|
|
%{?systemd_requires}
|
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
|
|
|
|
2013-03-14 00:01:55 +01:00
|
|
|
%package -n libcolorhug1
|
|
|
|
Summary: System Daemon for Managing Color Devices -- Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Suggests: %{name}
|
|
|
|
|
|
|
|
%description -n libcolorhug1
|
|
|
|
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-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.
|
|
|
|
|
2013-03-14 00:01:55 +01:00
|
|
|
%package -n typelib-1_0-ColorHug-1_0
|
|
|
|
Summary: System Daemon for Managing Color Devices -- Introspection bindings
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-ColorHug-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.
|
|
|
|
|
|
|
|
This package provides the GObject Introspection bindings for the
|
|
|
|
libcolorhug 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}
|
2013-03-14 00:01:55 +01:00
|
|
|
Requires: libcolorhug1 = %{version}
|
|
|
|
Requires: typelib-1_0-ColorHug-1_0 = %{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
|
2012-09-21 21:24:48 +02:00
|
|
|
%setup -q
|
2011-06-16 14:51:27 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2011-12-12 17:08:02 +01:00
|
|
|
--enable-polkit \
|
2012-11-05 17:44:34 +01:00
|
|
|
--with-daemon-user=colord --enable-vala
|
2011-06-16 14:51:27 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name '*.la' -delete -print
|
2012-05-16 09:05:12 +02:00
|
|
|
|
2012-07-16 22:21:24 +02:00
|
|
|
mkdir %{buildroot}/etc/apparmor.d
|
|
|
|
install -c -m 644 %{SOURCE1} %{buildroot}/etc/apparmor.d/
|
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/*
|
2012-05-16 09:05:12 +02:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
2011-09-02 18:59:34 +02:00
|
|
|
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
|
2012-09-21 21:24:48 +02:00
|
|
|
%find_lang %{name}
|
2011-06-16 14:51:27 +02:00
|
|
|
|
2011-12-12 17:08:02 +01:00
|
|
|
%pre
|
2012-02-28 00:11:26 +01:00
|
|
|
# Create colord user
|
2011-12-12 17:08:02 +01:00
|
|
|
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 "user for colord" 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
|
|
|
|
|
2013-05-24 09:43:14 +02:00
|
|
|
%post
|
|
|
|
%glib2_gsettings_schema_post
|
|
|
|
|
2013-03-14 00:01:55 +01:00
|
|
|
%postun
|
|
|
|
%glib2_gsettings_schema_postun
|
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%post -n libcolord1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libcolord1 -p /sbin/ldconfig
|
|
|
|
|
2013-03-20 19:07:37 +01:00
|
|
|
%post -n libcolorhug1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libcolorhug1 -p /sbin/ldconfig
|
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-06-16 15:18:14 +02:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
2012-02-28 00:11:26 +01:00
|
|
|
%{_unitdir}/colord.service
|
2012-10-17 22:20:24 +02:00
|
|
|
%{_udevrulesdir}/*.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
|
2013-05-05 14:00:34 +02:00
|
|
|
%{_datadir}/bash-completion/completions/colormgr
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_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
|
2013-03-29 21:59:11 +01:00
|
|
|
%{_bindir}/cd-iccdump
|
2011-06-16 15:18:14 +02:00
|
|
|
%{_bindir}/colormgr
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_libdir}/colord-sensors/
|
2011-06-16 15:18:14 +02:00
|
|
|
%{_libexecdir}/%{name}
|
2012-12-22 15:18:58 +01:00
|
|
|
%{_libexecdir}/%{name}-session
|
|
|
|
%{_datadir}/%{name}/
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_datadir}/color/
|
2012-12-22 15:18:58 +01:00
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.*
|
2012-12-22 15:18:58 +01:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_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}
|
2013-05-14 20:11:56 +02:00
|
|
|
%{_mandir}/man1/colord.conf.1%{?ext_man}
|
2011-09-02 18:59:34 +02:00
|
|
|
%{_mandir}/man1/colormgr.1%{?ext_man}
|
2012-07-16 22:21:24 +02:00
|
|
|
%dir /etc/apparmor.d/
|
|
|
|
%config /etc/apparmor.d/usr.lib.colord
|
2012-11-05 17:44:34 +01:00
|
|
|
%dir %{_libdir}/colord-plugins
|
|
|
|
%{_libdir}/colord-plugins/libcd_plugin_camera.so
|
|
|
|
%{_libdir}/colord-plugins/libcd_plugin_scanner.so
|
2013-03-14 00:01:55 +01:00
|
|
|
# These should not be here.. this is ugly (fdo#60733)
|
|
|
|
#{_libdir}/lib*private.*
|
2011-06-16 14:51:27 +02:00
|
|
|
|
|
|
|
%files -n libcolord1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libcolord.so.*
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_libdir}/libcolordprivate.so.*
|
|
|
|
|
|
|
|
%files -n libcolorhug1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libcolorhug.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
|
|
|
|
2013-03-14 00:01:55 +01:00
|
|
|
%files -n typelib-1_0-ColorHug-1_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/ColorHug-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
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_libdir}/libcolordprivate.so
|
|
|
|
%{_libdir}/libcolorhug.so
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_libdir}/pkgconfig/colord.pc
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_libdir}/pkgconfig/colorhug.pc
|
2011-09-02 18:00:57 +02:00
|
|
|
%{_datadir}/gir-1.0/Colord-1.0.gir
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_datadir}/gir-1.0/ColorHug-1.0.gir
|
2011-09-02 18:00:57 +02:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/colord.vapi
|
2011-06-16 14:51:27 +02:00
|
|
|
|
2012-09-21 21:24:48 +02:00
|
|
|
%files lang -f %{name}.lang
|
2012-05-16 09:05:12 +02:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%changelog
|