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
|
|
|
#
|
2019-12-04 15:13:02 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC
|
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.
|
|
|
|
|
2019-02-11 13:51:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-16 14:51:27 +02:00
|
|
|
#
|
|
|
|
|
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
|
2019-10-24 13:04:45 +02:00
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
Name: colord
|
2019-10-24 13:04:45 +02:00
|
|
|
Version: 1.4.4
|
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
|
2018-03-09 11:03:36 +01:00
|
|
|
License: GPL-2.0-or-later
|
2011-06-16 15:18:14 +02:00
|
|
|
Group: System/Daemons
|
2019-10-24 13:04:45 +02:00
|
|
|
URL: https://github.com/hughsie/colord/
|
|
|
|
Source0: https://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz.asc
|
2015-09-08 09:33:33 +02:00
|
|
|
Source2: %{name}.keyring
|
2012-07-16 22:23:35 +02:00
|
|
|
# Apparmor profile
|
2015-09-08 09:33:33 +02:00
|
|
|
Source3: usr.lib.colord
|
2011-09-10 07:47:16 +02:00
|
|
|
Source99: baselibs.conf
|
2019-12-04 15:13:50 +01:00
|
|
|
# PATCH-FIX-UPSTREAM add-spyderx.patch -- Add SpyderX Support
|
2019-12-04 15:13:02 +01:00
|
|
|
Patch1: add-spyderx.patch
|
2019-10-24 13:04:45 +02:00
|
|
|
|
2014-11-27 21:52:51 +01:00
|
|
|
BuildRequires: argyllcms
|
2019-10-24 13:04:45 +02:00
|
|
|
BuildRequires: docbook5-xsl-stylesheets
|
2011-09-02 18:00:57 +02:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2017-09-11 18:46:25 +02:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: meson
|
2018-03-09 11:03:36 +01:00
|
|
|
BuildRequires: pkgconfig
|
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-07-31 21:07:51 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.36.0
|
2011-06-16 14:51:27 +02:00
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
2015-01-28 09:22:52 +01:00
|
|
|
BuildRequires: pkgconfig(gusb) >= 0.2.2
|
2014-08-24 12:03:57 +02:00
|
|
|
BuildRequires: pkgconfig(lcms2) >= 2.6
|
2015-09-07 12:19:43 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2015-05-22 16:01:20 +02:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
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)
|
2017-09-11 18:46:25 +02:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
2014-11-27 21:52:51 +01:00
|
|
|
Requires: argyllcms
|
2017-02-22 21:41:32 +01:00
|
|
|
Requires: colord-color-profiles
|
2018-03-09 11:03:36 +01:00
|
|
|
Requires(pre): pwdutils
|
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
|
|
|
|
2013-07-31 21:07:51 +02:00
|
|
|
%package -n libcolord2
|
2017-10-03 13:16:13 +02:00
|
|
|
Summary: Library for managing color devices
|
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
|
|
|
|
2013-07-31 21:07:51 +02:00
|
|
|
%description -n libcolord2
|
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-07-31 21:07:51 +02:00
|
|
|
%package -n libcolorhug2
|
2017-10-03 13:16:13 +02:00
|
|
|
Summary: Library for managing color devices
|
2013-03-14 00:01:55 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Suggests: %{name}
|
|
|
|
|
2013-07-31 21:07:51 +02:00
|
|
|
%description -n libcolorhug2
|
2013-03-14 00:01:55 +01: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.
|
|
|
|
|
2017-02-22 21:41:32 +01:00
|
|
|
%package color-profiles
|
2017-10-03 13:16:13 +02:00
|
|
|
Summary: Color profiles for colord
|
2017-03-11 22:31:16 +01:00
|
|
|
# Last version of shared-color profiles packaged
|
2017-09-11 12:16:38 +02:00
|
|
|
Group: System/Libraries
|
2017-02-22 21:41:32 +01:00
|
|
|
Obsoletes: shared-color-profiles <= 0.1.6
|
|
|
|
Provides: shared-color-profiles
|
|
|
|
|
|
|
|
%description color-profiles
|
|
|
|
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 color profiles previously provided by shared-color-profiles
|
|
|
|
|
2011-12-12 17:06:32 +01:00
|
|
|
%package -n typelib-1_0-Colord-1_0
|
2017-10-03 13:16:13 +02:00
|
|
|
Summary: Introspection bindings for libcolord
|
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.
|
|
|
|
|
2017-09-11 12:16:38 +02:00
|
|
|
%package -n typelib-1_0-Colorhug-1_0
|
2017-10-03 13:16:13 +02:00
|
|
|
Summary: Introspection bindings for libcolorhug
|
2013-03-14 00:01:55 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-09-11 12:16:38 +02:00
|
|
|
%description -n typelib-1_0-Colorhug-1_0
|
2013-03-14 00:01:55 +01: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.
|
|
|
|
|
|
|
|
This package provides the GObject Introspection bindings for the
|
|
|
|
libcolorhug library.
|
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%package -n libcolord-devel
|
2017-10-03 13:16:13 +02:00
|
|
|
Summary: Development files for libcolord
|
2011-06-16 14:51:27 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2017-02-22 21:41:32 +01:00
|
|
|
Requires: %{name}-color-profiles = %{version}
|
2013-07-31 21:07:51 +02:00
|
|
|
Requires: libcolord2 = %{version}
|
|
|
|
Requires: libcolorhug2 = %{version}
|
2011-12-12 17:06:32 +01:00
|
|
|
Requires: typelib-1_0-Colord-1_0 = %{version}
|
2017-09-11 18:46:25 +02:00
|
|
|
Requires: typelib-1_0-Colorhug-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
|
2018-03-09 11:03:36 +01:00
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%prep
|
2012-09-21 21:24:48 +02:00
|
|
|
%setup -q
|
2019-12-04 15:13:02 +01:00
|
|
|
%patch1 -p1
|
2011-06-16 14:51:27 +02:00
|
|
|
|
|
|
|
%build
|
2017-09-26 21:38:10 +02:00
|
|
|
# Set ~2 GiB limit so that colprof is forced to work in chunks when
|
|
|
|
# generating the print profile rather than trying to allocate a 3.1 GiB
|
|
|
|
# chunk of RAM to put the entire B-to-A tables in.
|
|
|
|
ulimit -Sv 2000000
|
|
|
|
|
2017-09-11 18:46:25 +02:00
|
|
|
%meson \
|
2018-04-23 11:27:51 +02:00
|
|
|
-Dsession_example=false \
|
|
|
|
-Dbash_completion=true \
|
|
|
|
-Dsystemd=true \
|
|
|
|
-Dlibcolordcompat=true \
|
2019-02-11 13:51:44 +01:00
|
|
|
-Dargyllcms_sensor=true \
|
2018-04-23 11:27:51 +02:00
|
|
|
-Dreverse=false \
|
|
|
|
-Dsane=false \
|
|
|
|
-Dvapi=true \
|
|
|
|
-Dprint_profiles=true \
|
|
|
|
-Dtests=false \
|
|
|
|
-Dinstalled_tests=false \
|
|
|
|
-Ddaemon_user=colord \
|
|
|
|
-Dman=true \
|
|
|
|
-Ddocs=true \
|
|
|
|
-Dudev_rules=true \
|
2017-09-11 18:46:25 +02:00
|
|
|
%{nil}
|
2017-09-11 12:16:38 +02:00
|
|
|
%meson_build
|
2011-06-16 14:51:27 +02:00
|
|
|
|
|
|
|
%install
|
2017-09-11 12:16:38 +02:00
|
|
|
%meson_install
|
|
|
|
|
|
|
|
# Create colord rclink
|
2017-10-03 13:16:13 +02:00
|
|
|
mkdir %{buildroot}/%{_sbindir}
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name}
|
2018-03-09 11:03:36 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-05-16 09:05:12 +02:00
|
|
|
|
2017-09-11 12:16:38 +02:00
|
|
|
# Install Apparmor profile
|
2018-03-09 11:03:36 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/apparmor.d/
|
|
|
|
install -c -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/apparmor.d/
|
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
|
2014-09-17 12:25:44 +02:00
|
|
|
%service_add_pre %{name}.service
|
2011-12-12 17:08:02 +01:00
|
|
|
# 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
|
|
|
|
|
2014-09-17 12:23:39 +02:00
|
|
|
%preun
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
|
2013-05-24 09:43:14 +02:00
|
|
|
%post
|
2014-09-17 12:23:39 +02:00
|
|
|
%service_add_post %{name}.service
|
2013-05-24 09:43:14 +02:00
|
|
|
|
2013-03-14 00:01:55 +01:00
|
|
|
%postun
|
2014-09-17 12:23:39 +02:00
|
|
|
%service_del_postun %{name}.service
|
2013-03-14 00:01:55 +01:00
|
|
|
|
2013-07-31 21:07:51 +02:00
|
|
|
%post -n libcolord2 -p /sbin/ldconfig
|
|
|
|
%postun -n libcolord2 -p /sbin/ldconfig
|
|
|
|
%post -n libcolorhug2 -p /sbin/ldconfig
|
|
|
|
%postun -n libcolorhug2 -p /sbin/ldconfig
|
2013-03-20 19:07:37 +01:00
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%files
|
2018-03-09 11:03:36 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS
|
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
|
2013-05-05 14:00:34 +02:00
|
|
|
%{_datadir}/bash-completion/completions/colormgr
|
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
|
2014-11-27 21:52:51 +01:00
|
|
|
%{_bindir}/cd-it8
|
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}/
|
|
|
|
%{_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
|
2017-09-11 12:16:38 +02:00
|
|
|
%dir %{_datadir}/dbus-1/system.d
|
|
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
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}
|
2014-11-27 21:52:51 +01:00
|
|
|
%{_mandir}/man1/cd-it8.1%{?ext_man}
|
2011-09-02 18:59:34 +02:00
|
|
|
%{_mandir}/man1/colormgr.1%{?ext_man}
|
2018-03-09 11:03:36 +01:00
|
|
|
%dir %{_sysconfdir}/apparmor.d/
|
|
|
|
%config %{_sysconfdir}/apparmor.d/usr.lib.colord
|
2012-11-05 17:44:34 +01:00
|
|
|
%dir %{_libdir}/colord-plugins
|
2017-09-11 18:46:25 +02:00
|
|
|
%{_libdir}/libcolordcompat.so
|
2017-09-11 12:16:38 +02:00
|
|
|
%{_libdir}/colord-plugins/libcolord_sensor_camera.so
|
|
|
|
%{_libdir}/colord-plugins/libcolord_sensor_scanner.so
|
2014-09-17 12:23:39 +02:00
|
|
|
%{_sbindir}/rc%{name}
|
2019-12-04 15:13:02 +01:00
|
|
|
%{_userunitdir}/colord-session.service
|
|
|
|
%{_tmpfilesdir}/colord.conf
|
2011-06-16 14:51:27 +02:00
|
|
|
|
2017-02-22 21:41:32 +01:00
|
|
|
%files color-profiles
|
|
|
|
%{_datadir}/color/
|
|
|
|
|
2013-07-31 21:07:51 +02:00
|
|
|
%files -n libcolord2
|
2011-06-16 14:51:27 +02:00
|
|
|
%{_libdir}/libcolord.so.*
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_libdir}/libcolordprivate.so.*
|
|
|
|
|
2013-07-31 21:07:51 +02:00
|
|
|
%files -n libcolorhug2
|
2013-03-14 00:01:55 +01:00
|
|
|
%{_libdir}/libcolorhug.so.*
|
2011-12-12 17:06:32 +01:00
|
|
|
|
|
|
|
%files -n typelib-1_0-Colord-1_0
|
2011-09-02 18:00:57 +02:00
|
|
|
%{_libdir}/girepository-1.0/Colord-1.0.typelib
|
2011-06-16 14:51:27 +02:00
|
|
|
|
2017-09-11 12:16:38 +02:00
|
|
|
%files -n typelib-1_0-Colorhug-1_0
|
|
|
|
%{_libdir}/girepository-1.0/Colorhug-1.0.typelib
|
2013-03-14 00:01:55 +01:00
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%files -n libcolord-devel
|
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
|
2017-09-11 12:16:38 +02:00
|
|
|
%{_datadir}/gir-1.0/Colorhug-1.0.gir
|
2017-09-11 18:46:25 +02:00
|
|
|
%{_datadir}/vala/vapi/colord.deps
|
|
|
|
%{_datadir}/vala/vapi/colord.vapi
|
2017-10-06 14:22:06 +02:00
|
|
|
%{_datadir}/gtk-doc/html/colord/
|
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
|
|
|
|
2011-06-16 14:51:27 +02:00
|
|
|
%changelog
|