2013-01-08 14:30:48 +00:00
|
|
|
|
|
|
|
# Building the extra print profiles requires colprof, +4Gb of RAM and
|
|
|
|
# quite a lot of time. Don't enable this for test builds.
|
2014-10-27 17:18:31 +00:00
|
|
|
%define enable_print_profiles 0
|
2013-01-14 09:49:32 +00:00
|
|
|
|
2013-02-04 22:18:01 +00:00
|
|
|
# SANE is pretty insane when it comes to handling devices, and we get AVCs
|
|
|
|
# popping up all over the place.
|
|
|
|
%define enable_sane 0
|
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
Summary: Color daemon
|
|
|
|
Name: colord
|
2024-01-22 12:49:03 +00:00
|
|
|
Version: 1.4.7
|
|
|
|
Release: %autorelease
|
2023-02-22 09:35:45 +00:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2018-03-12 15:00:09 +00:00
|
|
|
URL: https://www.freedesktop.org/software/colord/
|
|
|
|
Source0: https://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
|
2023-10-01 19:19:59 +00:00
|
|
|
Source1: colord.sysusers
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2024-01-29 10:40:33 +00:00
|
|
|
Patch0: 0001-Fix-writing-to-the-database-with-ProtectSystem-stric.patch
|
|
|
|
|
2023-05-02 13:48:54 +00:00
|
|
|
%if !0%{?rhel}
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
%endif
|
|
|
|
BuildRequires: color-filesystem
|
2019-03-08 12:53:06 +00:00
|
|
|
BuildRequires: docbook5-style-xsl
|
2011-01-13 18:13:46 +00:00
|
|
|
BuildRequires: gettext
|
2012-05-09 22:06:24 +00:00
|
|
|
BuildRequires: gtk-doc
|
2023-05-02 13:48:54 +00:00
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
BuildRequires: libxslt
|
2017-08-09 17:00:21 +00:00
|
|
|
BuildRequires: meson
|
2023-05-02 13:48:54 +00:00
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
|
|
|
BuildRequires: pkgconfig(gusb) >= 0.2.7
|
|
|
|
BuildRequires: pkgconfig(lcms2) >= 2.6
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.103
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2011-11-26 08:49:06 +00:00
|
|
|
|
2013-02-04 22:18:01 +00:00
|
|
|
# for SANE support
|
|
|
|
%if 0%{?enable_sane}
|
2023-05-02 13:48:54 +00:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(sane-backends)
|
2013-02-04 22:18:01 +00:00
|
|
|
%endif
|
|
|
|
|
2011-11-26 08:49:06 +00:00
|
|
|
Requires: color-filesystem
|
2023-10-01 19:19:59 +00:00
|
|
|
BuildRequires: systemd, systemd-rpm-macros
|
2018-01-25 14:31:12 +00:00
|
|
|
%{?systemd_requires}
|
2023-10-01 19:19:59 +00:00
|
|
|
%{?sysusers_requires_compat}
|
2013-07-18 18:34:51 +00:00
|
|
|
Requires: colord-libs%{?_isa} = %{version}-%{release}
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2013-01-11 16:02:08 +00:00
|
|
|
# Self-obsoletes to fix the multilib upgrade path
|
|
|
|
Obsoletes: colord < 0.1.27-3
|
|
|
|
|
2013-01-08 14:30:48 +00:00
|
|
|
# obsolete separate profiles package
|
|
|
|
Obsoletes: shared-color-profiles <= 0.1.6-2
|
|
|
|
Provides: shared-color-profiles
|
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
%description
|
|
|
|
colord is a low level system activated daemon that maps color devices
|
|
|
|
to color profiles in the system context.
|
|
|
|
|
2013-01-10 19:48:02 +00:00
|
|
|
%package libs
|
|
|
|
Summary: Color daemon library
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
colord is a low level system activated daemon that maps color devices
|
|
|
|
to color profiles in the system context.
|
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development package for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-01-10 19:48:02 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2013-02-04 22:18:01 +00:00
|
|
|
Obsoletes: colorhug-client-devel <= 0.1.13
|
2011-01-13 18:13:46 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files for development with %{name}.
|
|
|
|
|
2012-06-27 08:58:55 +00:00
|
|
|
%package devel-docs
|
|
|
|
Summary: Developer documentation package for %{name}
|
2012-05-09 22:06:24 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2012-06-27 08:58:55 +00:00
|
|
|
BuildArch: noarch
|
2012-05-09 22:06:24 +00:00
|
|
|
|
2012-06-27 08:58:55 +00:00
|
|
|
%description devel-docs
|
|
|
|
Documentation for development with %{name}.
|
2012-05-09 22:06:24 +00:00
|
|
|
|
2013-01-08 14:30:48 +00:00
|
|
|
%package extra-profiles
|
|
|
|
Summary: More color profiles for color management that are less commonly used
|
2012-05-09 22:06:24 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-01-08 14:30:48 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
# obsolete separate profiles package
|
|
|
|
Obsoletes: shared-color-profiles-extra <= 0.1.6-2
|
|
|
|
Provides: shared-color-profiles-extra
|
2012-05-09 22:06:24 +00:00
|
|
|
|
2013-01-08 14:30:48 +00:00
|
|
|
%description extra-profiles
|
|
|
|
More color profiles for color management that are less commonly used.
|
|
|
|
This may be useful for CMYK soft-proofing or for extra device support.
|
2012-05-09 22:06:24 +00:00
|
|
|
|
2019-03-08 12:53:06 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Data files for installed tests
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
Data files for installed tests.
|
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
%prep
|
2023-05-02 13:48:54 +00:00
|
|
|
%autosetup -p1
|
2011-01-13 18:13:46 +00:00
|
|
|
|
|
|
|
%build
|
2013-01-14 09:46:29 +00: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-08-09 17:00:21 +00:00
|
|
|
|
|
|
|
%meson \
|
2018-04-18 11:20:57 +00:00
|
|
|
-Dvapi=true \
|
2019-03-08 12:53:06 +00:00
|
|
|
-Dinstalled_tests=true \
|
2018-04-18 11:20:57 +00:00
|
|
|
-Dprint_profiles=false \
|
2013-02-04 22:18:01 +00:00
|
|
|
%if 0%{?enable_sane}
|
2018-04-18 11:20:57 +00:00
|
|
|
-Dsane=true \
|
2013-06-18 08:05:08 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?rhel}
|
2018-04-18 11:20:57 +00:00
|
|
|
-Dbash_completion=false \
|
|
|
|
-Dargyllcms_sensor=false \
|
2013-07-30 12:45:02 +00:00
|
|
|
%endif
|
|
|
|
%if !0%{?rhel}
|
2018-04-18 11:20:57 +00:00
|
|
|
-Dlibcolordcompat=true \
|
2013-01-08 14:30:48 +00:00
|
|
|
%endif
|
2018-04-18 11:20:57 +00:00
|
|
|
-Ddaemon_user=colord
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2017-08-09 17:00:21 +00:00
|
|
|
%meson_build
|
2011-01-13 18:13:46 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-09 17:00:21 +00:00
|
|
|
%meson_install
|
2023-10-01 19:19:59 +00:00
|
|
|
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/colord.conf
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2011-04-26 11:17:05 +00:00
|
|
|
# databases
|
|
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/mapping.db
|
|
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/storage.db
|
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2012-01-17 12:04:42 +00:00
|
|
|
%pre
|
2023-10-01 19:19:59 +00:00
|
|
|
%sysusers_create_compat %{SOURCE1}
|
2012-01-17 12:04:42 +00:00
|
|
|
|
2013-01-16 23:41:07 +00:00
|
|
|
%post
|
2013-04-24 11:45:48 +00:00
|
|
|
%systemd_post colord.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun colord.service
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2013-02-04 22:18:01 +00:00
|
|
|
%postun
|
2013-04-24 11:45:48 +00:00
|
|
|
%systemd_postun colord.service
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2018-02-03 11:32:51 +00:00
|
|
|
%ldconfig_scriptlets libs
|
2013-12-21 18:48:44 +00:00
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
%files -f %{name}.lang
|
2023-05-02 13:48:54 +00:00
|
|
|
%doc README.md AUTHORS NEWS
|
|
|
|
%license COPYING
|
2011-01-13 18:13:46 +00:00
|
|
|
%{_libexecdir}/colord
|
2012-01-17 12:04:42 +00:00
|
|
|
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
|
2012-03-15 17:18:48 +00:00
|
|
|
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc
|
2011-04-24 16:39:07 +00:00
|
|
|
%{_bindir}/*
|
2013-01-16 23:41:07 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml
|
2017-08-09 17:00:21 +00:00
|
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
2011-01-13 18:13:46 +00:00
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
|
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy
|
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
|
2023-05-02 13:48:54 +00:00
|
|
|
%{_mandir}/man1/*.1*
|
2012-12-19 16:07:24 +00:00
|
|
|
%{_datadir}/colord
|
2013-05-07 10:48:54 +00:00
|
|
|
%if !0%{?rhel}
|
2013-05-01 09:00:16 +00:00
|
|
|
%{_datadir}/bash-completion/completions/colormgr
|
2013-05-07 10:48:54 +00:00
|
|
|
%endif
|
2012-08-29 11:09:10 +00:00
|
|
|
/usr/lib/udev/rules.d/*.rules
|
2015-11-27 15:29:57 +00:00
|
|
|
/usr/lib/tmpfiles.d/colord.conf
|
2011-06-02 22:02:41 +00:00
|
|
|
%{_libdir}/colord-sensors
|
2012-10-26 12:05:27 +00:00
|
|
|
%{_libdir}/colord-plugins
|
2013-09-13 15:19:36 +00:00
|
|
|
%ghost %attr(-,colord,colord) %{_localstatedir}/lib/colord/*.db
|
2017-02-23 19:56:17 +00:00
|
|
|
%{_unitdir}/colord.service
|
2023-10-01 19:19:59 +00:00
|
|
|
%{_sysusersdir}/colord.conf
|
2012-05-09 22:06:24 +00:00
|
|
|
|
2012-12-19 16:07:24 +00:00
|
|
|
# session helper
|
|
|
|
%{_libexecdir}/colord-session
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml
|
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service
|
2017-02-23 19:56:17 +00:00
|
|
|
%{_userunitdir}/colord-session.service
|
2012-12-19 16:07:24 +00:00
|
|
|
|
2013-02-04 22:18:01 +00:00
|
|
|
# sane helper
|
|
|
|
%if 0%{?enable_sane}
|
|
|
|
%{_libexecdir}/colord-sane
|
|
|
|
%endif
|
|
|
|
|
2013-01-08 14:30:48 +00:00
|
|
|
# common colorspaces
|
|
|
|
%dir %{_icccolordir}/colord
|
|
|
|
%{_icccolordir}/colord/AdobeRGB1998.icc
|
|
|
|
%{_icccolordir}/colord/ProPhotoRGB.icc
|
2017-08-09 17:00:21 +00:00
|
|
|
%{_icccolordir}/colord/Rec709.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
%{_icccolordir}/colord/SMPTE-C-RGB.icc
|
|
|
|
%{_icccolordir}/colord/sRGB.icc
|
|
|
|
|
|
|
|
# monitor test profiles
|
2013-03-28 17:33:34 +00:00
|
|
|
%{_icccolordir}/colord/Bluish.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
|
|
|
|
# named color profiles
|
|
|
|
%{_icccolordir}/colord/x11-colors.icc
|
|
|
|
|
2013-01-10 19:48:02 +00:00
|
|
|
%files libs
|
|
|
|
%doc COPYING
|
2016-11-21 09:47:32 +00:00
|
|
|
%{_libdir}/libcolord.so.2*
|
|
|
|
%{_libdir}/libcolordprivate.so.2*
|
|
|
|
%{_libdir}/libcolorhug.so.2*
|
|
|
|
%if !0%{?rhel}
|
|
|
|
%{_libdir}/libcolordcompat.so
|
|
|
|
%endif
|
|
|
|
|
2013-01-10 19:48:02 +00:00
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
2013-01-08 14:30:48 +00:00
|
|
|
|
2013-01-10 19:35:01 +00:00
|
|
|
%files extra-profiles
|
2013-01-08 14:30:48 +00:00
|
|
|
# other colorspaces not often used
|
2013-03-28 17:33:34 +00:00
|
|
|
%{_icccolordir}/colord/AppleRGB.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
%{_icccolordir}/colord/BestRGB.icc
|
|
|
|
%{_icccolordir}/colord/BetaRGB.icc
|
|
|
|
%{_icccolordir}/colord/BruceRGB.icc
|
2013-03-28 17:33:34 +00:00
|
|
|
%{_icccolordir}/colord/CIE-RGB.icc
|
|
|
|
%{_icccolordir}/colord/ColorMatchRGB.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
%{_icccolordir}/colord/DonRGB4.icc
|
2013-04-16 11:18:48 +00:00
|
|
|
%{_icccolordir}/colord/ECI-RGBv1.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
%{_icccolordir}/colord/ECI-RGBv2.icc
|
|
|
|
%{_icccolordir}/colord/EktaSpacePS5.icc
|
2013-03-28 17:33:34 +00:00
|
|
|
%{_icccolordir}/colord/Gamma*.icc
|
|
|
|
%{_icccolordir}/colord/NTSC-RGB.icc
|
|
|
|
%{_icccolordir}/colord/PAL-RGB.icc
|
|
|
|
%{_icccolordir}/colord/SwappedRedAndGreen.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
%{_icccolordir}/colord/WideGamutRGB.icc
|
|
|
|
|
|
|
|
# other named color profiles not generally useful
|
2013-03-28 17:33:34 +00:00
|
|
|
%{_icccolordir}/colord/Crayons.icc
|
2013-01-08 14:30:48 +00:00
|
|
|
|
2011-01-13 18:13:46 +00:00
|
|
|
%files devel
|
2011-07-06 08:40:36 +00:00
|
|
|
%{_includedir}/colord-1
|
2016-11-21 09:47:32 +00:00
|
|
|
%{_libdir}/libcolord.so
|
|
|
|
%{_libdir}/libcolordprivate.so
|
|
|
|
%{_libdir}/libcolorhug.so
|
2013-02-04 22:18:01 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2017-08-21 13:49:19 +00:00
|
|
|
%{_datadir}/vala/vapi/colord.vapi
|
|
|
|
%{_datadir}/vala/vapi/colord.deps
|
2012-05-09 22:06:24 +00:00
|
|
|
|
2012-06-27 08:58:55 +00:00
|
|
|
%files devel-docs
|
|
|
|
%dir %{_datadir}/gtk-doc/html/colord
|
|
|
|
%{_datadir}/gtk-doc/html/colord/*
|
2011-01-13 18:13:46 +00:00
|
|
|
|
2019-03-08 12:53:06 +00:00
|
|
|
%files tests
|
|
|
|
%dir %{_libexecdir}/installed-tests/colord
|
|
|
|
%{_libexecdir}/installed-tests/colord/*
|
|
|
|
%dir %{_datadir}/installed-tests/colord
|
|
|
|
%{_datadir}/installed-tests/colord/*
|
|
|
|
|
2023-10-01 19:19:59 +00:00
|
|
|
%changelog
|
2024-01-22 12:49:03 +00:00
|
|
|
%autochangelog
|