From 24102199008b4a2a5ca69ad8b6fee88752ba1931 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 8 Jan 2013 14:30:48 +0000 Subject: [PATCH] New upstream version - Add some more calibration attach images - Import shared-color-profiles into colord - Install a header with all the session helper defines --- colord.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 87 insertions(+), 8 deletions(-) diff --git a/colord.spec b/colord.spec index 4d91fd7..458aa62 100644 --- a/colord.spec +++ b/colord.spec @@ -1,7 +1,12 @@ + +# Building the extra print profiles requires colprof, +4Gb of RAM and +# quite a lot of time. Don't enable this for test builds. +%define build_print_profiles 1 + Summary: Color daemon Name: colord -Version: 0.1.26 -Release: 2%{?dist} +Version: 0.1.27 +Release: 1%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.freedesktop.org/software/colord/ Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz @@ -19,12 +24,18 @@ BuildRequires: gobject-introspection-devel BuildRequires: vala-tools BuildRequires: libgusb-devel BuildRequires: gtk-doc +%if 0%{?build_print_profiles} +BuildRequires: argyllcms +%endif -Requires: shared-color-profiles Requires: color-filesystem Requires: systemd-units Requires(pre): shadow-utils +# obsolete separate profiles package +Obsoletes: shared-color-profiles <= 0.1.6-2 +Provides: shared-color-profiles + %description colord is a low level system activated daemon that maps color devices to color profiles in the system context. @@ -44,13 +55,18 @@ BuildArch: noarch %description devel-docs Documentation for development with %{name}. -%package gtk -Summary: GTK helper library for %{name} +%package extra-profiles +Summary: More color profiles for color management that are less commonly used Requires: %{name} = %{version}-%{release} +BuildArch: noarch -%description gtk -This package contains extra functionality for %{name} that can be used -when running GTK applications. +# obsolete separate profiles package +Obsoletes: shared-color-profiles-extra <= 0.1.6-2 +Provides: shared-color-profiles-extra + +%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. %prep %setup -q @@ -64,6 +80,11 @@ export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro' --with-daemon-user=colord \ --enable-gtk-doc \ --enable-vala \ +%if 0%{?build_print_profiles} + --enable-print-profiles \ +%else + --disable-print-profiles \ +%endif --disable-static \ --disable-rpath \ --disable-examples \ @@ -123,6 +144,58 @@ exit 0 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml %{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service +# common colorspaces +%dir %{_icccolordir}/colord +%{_icccolordir}/colord/AdobeRGB1998.icc +%{_icccolordir}/colord/AppleRGB.icc +%{_icccolordir}/colord/CIE-RGB.icc +%{_icccolordir}/colord/ColorMatchRGB.icc +%{_icccolordir}/colord/NTSC-RGB.icc +%{_icccolordir}/colord/PAL-RGB.icc +%{_icccolordir}/colord/ProPhotoRGB.icc +%{_icccolordir}/colord/SMPTE-C-RGB.icc +%{_icccolordir}/colord/sRGB.icc + +# so we can display at least something in the default dropdown +%if 0%{?build_print_profiles} +%{_icccolordir}/colord/FOGRA39L_coated.icc +%endif + +# monitor test profiles +%{_icccolordir}/colord/bluish.icc +%{_icccolordir}/colord/SwappedRedAndGreen.icc +%{_icccolordir}/colord/gamma*.icc + +# named color profiles +%{_icccolordir}/colord/x11-colors.icc + +%files extra-profiles +%defattr(-,root,root,-) + +%if 0%{?build_print_profiles} +%{_icccolordir}/colord/FOGRA27L_coated.icc +%{_icccolordir}/colord/FOGRA28L_webcoated.icc +%{_icccolordir}/colord/FOGRA29L_uncoated.icc +%{_icccolordir}/colord/FOGRA30L_uncoated_yellowish.icc +%{_icccolordir}/colord/FOGRA40L_SC_paper.icc +%{_icccolordir}/colord/GRACoL*.icc +%{_icccolordir}/colord/ISOnewspaper26.icc +%{_icccolordir}/colord/SNAP*.icc +%{_icccolordir}/colord/SWOP*.icc +%endif + +# other colorspaces not often used +%{_icccolordir}/colord/BestRGB.icc +%{_icccolordir}/colord/BetaRGB.icc +%{_icccolordir}/colord/BruceRGB.icc +%{_icccolordir}/colord/DonRGB4.icc +%{_icccolordir}/colord/ECI-RGBv2.icc +%{_icccolordir}/colord/EktaSpacePS5.icc +%{_icccolordir}/colord/WideGamutRGB.icc + +# other named color profiles not generally useful +%{_icccolordir}/colord/crayons.icc + %files devel %defattr(-,root,root,-) %{_includedir}/colord-1 @@ -137,6 +210,12 @@ exit 0 %{_datadir}/gtk-doc/html/colord/* %changelog +* Tue Jan 08 2013 Richard Hughes 0.1.27-1 +- New upstream version +- Add some more calibration attach images +- Import shared-color-profiles into colord +- Install a header with all the session helper defines + * Mon Jan 7 2013 Matthias Clasen 0.1.26-2 - Enable hardened build