30fa2dfe29
... so that the daemon package doesn't get multilibbed. http://lists.fedoraproject.org/pipermail/devel/2013-January/176163.html
402 lines
13 KiB
RPMSpec
402 lines
13 KiB
RPMSpec
|
|
# 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 0
|
|
|
|
Summary: Color daemon
|
|
Name: colord
|
|
Version: 0.1.27
|
|
Release: 2%{?dist}
|
|
License: GPLv2+ and LGPLv2+
|
|
URL: http://www.freedesktop.org/software/colord/
|
|
Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: dbus-devel
|
|
BuildRequires: docbook-utils
|
|
BuildRequires: gettext
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: lcms2-devel >= 2.2
|
|
BuildRequires: libgudev1-devel
|
|
BuildRequires: polkit-devel >= 0.103
|
|
BuildRequires: sqlite-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: vala-tools
|
|
BuildRequires: libgusb-devel
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: color-filesystem
|
|
%if 0%{?build_print_profiles}
|
|
BuildRequires: argyllcms
|
|
%endif
|
|
|
|
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.
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
Summary: Development package for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
%description devel
|
|
Files for development with %{name}.
|
|
|
|
%package devel-docs
|
|
Summary: Developer documentation package for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description devel-docs
|
|
Documentation for development with %{name}.
|
|
|
|
%package extra-profiles
|
|
Summary: More color profiles for color management that are less commonly used
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
# 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
|
|
|
|
%build
|
|
# we can't use _hardened_build here, see
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=892837
|
|
export CFLAGS='-fPIC %optflags'
|
|
export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro'
|
|
%configure \
|
|
--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 \
|
|
--disable-dependency-tracking
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
# Remove static libs and libtool archives.
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|
|
|
# databases
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/mapping.db
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/colord/storage.db
|
|
|
|
%find_lang %{name}
|
|
|
|
%pre
|
|
getent group colord >/dev/null || groupadd -r colord
|
|
getent passwd colord >/dev/null || \
|
|
useradd -r -g colord -d /var/lib/colord -s /sbin/nologin \
|
|
-c "User for colord" colord
|
|
exit 0
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%files -f %{name}.lang
|
|
%doc README AUTHORS NEWS COPYING
|
|
%{_libexecdir}/colord
|
|
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
|
|
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc
|
|
%{_bindir}/*
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
|
%{_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
|
|
%{_datadir}/man/man1/*.1.gz
|
|
%{_datadir}/colord
|
|
%config %{_sysconfdir}/colord.conf
|
|
/usr/lib/udev/rules.d/*.rules
|
|
%{_libdir}/colord-sensors
|
|
%{_libdir}/colord-plugins
|
|
%ghost %{_localstatedir}/lib/colord/*.db
|
|
/usr/lib/systemd/system/colord.service
|
|
%{_sysconfdir}/bash_completion.d/*-completion.bash
|
|
|
|
# session helper
|
|
%{_libexecdir}/colord-session
|
|
%{_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 libs
|
|
%doc COPYING
|
|
%{_libdir}/libcolord.so.*
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
%files extra-profiles
|
|
%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
|
|
%{_includedir}/colord-1
|
|
%{_libdir}/libcolord.so
|
|
%{_libdir}/pkgconfig/colord.pc
|
|
%{_datadir}/gir-1.0/Colord-1.0.gir
|
|
%{_datadir}/vala/vapi/colord.vapi
|
|
|
|
%files devel-docs
|
|
%dir %{_datadir}/gtk-doc/html/colord
|
|
%{_datadir}/gtk-doc/html/colord/*
|
|
|
|
%changelog
|
|
* Thu Jan 10 2013 Kalev Lember <kalevlember@gmail.com> 0.1.27-2
|
|
- Split out libcolord to colord-libs subpackage, so that the daemon package
|
|
doesn't get multilibbed
|
|
|
|
* Tue Jan 08 2013 Richard Hughes <richard@hughsie.com> 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 <mclasen@redhat.com> 0.1.26-2
|
|
- Enable hardened build
|
|
|
|
* Wed Dec 19 2012 Richard Hughes <richard@hughsie.com> 0.1.26-1
|
|
- New upstream version
|
|
- Add a session helper that can be used to calibrate the screen
|
|
- Add some defines for the Spyder4 display colorimeter
|
|
- Add support for reading and writing .cal files to CdIt8
|
|
- Add the ability to 'disable' a device from a color POV
|
|
- Create ICCv2 profiles when using cd-create-profile
|
|
- Use enumerated error values in the client library
|
|
- Use spotread when there is no native sensor driver
|
|
|
|
* Mon Nov 26 2012 Richard Hughes <richard@hughsie.com> 0.1.25-1
|
|
- New upstream version
|
|
- Add a create-standard-space sub-command to cd-create-profile
|
|
- Add a profile metadata key of 'License'
|
|
- Add a set-version command to the cd-fix-profile command line tool
|
|
- Create linear vcgt tables when using create-x11-gamma
|
|
- Fix GetStandardSpace so it can actually work
|
|
- Move the named color examples to shared-color-profiles
|
|
|
|
* Wed Nov 21 2012 Richard Hughes <richard@hughsie.com> 0.1.24-2
|
|
- Apply a patch from upstream so we can use cd-fix-profile in
|
|
situations without D-Bus.
|
|
|
|
* Fri Oct 26 2012 Richard Hughes <richard@hughsie.com> 0.1.24-1
|
|
- New upstream version
|
|
- Fix a critical warning when user tries to dump a non-icc file
|
|
- Remove libsane support and rely only on udev for scanner information
|
|
- Set the seat for devices created in the session and from udev
|
|
|
|
* Wed Aug 29 2012 Richard Hughes <richard@hughsie.com> 0.1.23-1
|
|
- New upstream version
|
|
- Assorted documentation fixes
|
|
- Do not try to add duplicate sysfs devices
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.22-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Wed Jun 27 2012 Richard Hughes <richard@hughsie.com> 0.1.22-1
|
|
- New upstream version
|
|
- Split out colord-gtk to a new sub-project to prevent a dep loop
|
|
- Add many generic introspection type arguments
|
|
- Check any files in /usr/share/color/icc have the content type
|
|
- Do not create the same object paths if two sensors are plugged in
|
|
- Fix the udev rules entry for the i1Display3
|
|
|
|
* Tue May 22 2012 Richard Hughes <richard@hughsie.com> 0.1.21-1
|
|
- New upstream version
|
|
- Do not install any parts of colord-sane if --disable-sane is specified
|
|
- Fix InstallSystemWide() by not writing a private file
|
|
- Save the CCMX and ITx files to be compatible with argyllcms
|
|
- The ColorHug has a new VID and PID
|
|
|
|
* Wed May 09 2012 Richard Hughes <richard@hughsie.com> 0.1.20-1
|
|
- New upstream version
|
|
- Add a sensor-set-options command to the colormgr tool
|
|
- Add the concept of 'options' on each color sensor device
|
|
- Enable gtk-doc in the default distro build
|
|
|
|
* Tue Apr 17 2012 Richard Hughes <richard@hughsie.com> 0.1.19-1
|
|
- New upstream version
|
|
- Add a user suffix to the object path of user-created devices and profiles
|
|
|
|
* Thu Mar 29 2012 Richard Hughes <richard@hughsie.com> 0.1.18-2
|
|
- Disable PrivateNetwork=1 as it breaks sensor hotplug.
|
|
|
|
* Thu Mar 15 2012 Richard Hughes <richard@hughsie.com> 0.1.18-1
|
|
- New upstream version
|
|
- Add a Manager.CreateProfileWithFd() method for QtDBus
|
|
- Split out the SANE support into it's own process
|
|
- Fix a small leak when creating devices and profiles in clients
|
|
- Fix cd-fix-profile to add and remove metadata entries
|
|
- Install per-machine profiles in /var/lib/colord/icc
|
|
|
|
* Wed Feb 22 2012 Richard Hughes <richard@hughsie.com> 0.1.17-1
|
|
- New upstream version
|
|
- Add an LED sample type
|
|
- Add PrivateNetwork and PrivateTmp to the systemd service file
|
|
- Fix InstallSystemWide() when running as the colord user
|
|
|
|
* Fri Jan 20 2012 Matthias Clasen <mclasen@redha.com> - 0.1.16-4
|
|
- Fix some obvious bugs
|
|
|
|
* Tue Jan 17 2012 Richard Hughes <richard@hughsie.com> 0.1.16-1
|
|
- New upstream version
|
|
- Now runs as a colord user rather than as root.
|
|
- Support more ICC metadata keys
|
|
- Install a systemd service file
|
|
- Support 2nd generation Huey hardware
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.15-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Sat Nov 26 2011 Richard Hughes <richard@hughsie.com> 0.1.15-1
|
|
- New upstream version
|
|
- This release fixes an important security bug: CVE-2011-4349.
|
|
- Do not crash the daemon if adding the device to the db failed
|
|
- Fix a memory leak when getting properties from a device
|
|
|
|
* Tue Nov 01 2011 Richard Hughes <richard@hughsie.com> 0.1.14-1
|
|
- New upstream version
|
|
- Remove upstreamed patches
|
|
|
|
* Mon Oct 03 2011 Richard Hughes <richard@hughsie.com> 0.1.13-1
|
|
- New upstream version
|
|
- Ensure uid 0 can always create devices and profiles
|
|
- Reduce the CPU load of clients when assigning profiles
|
|
|
|
* Tue Aug 30 2011 Richard Hughes <richard@hughsie.com> 0.1.12-1
|
|
- New upstream version
|
|
|
|
* Mon Aug 01 2011 Richard Hughes <richard@hughsie.com> 0.1.11-2
|
|
- Remove the sedding libtool's internals as it breaks
|
|
generation of the GObject Introspection data.
|
|
|
|
* Mon Aug 01 2011 Richard Hughes <richard@hughsie.com> 0.1.11-1
|
|
- New upstream version
|
|
|
|
* Wed Jul 06 2011 Richard Hughes <richard@hughsie.com> 0.1.10-1
|
|
- New upstream version
|
|
|
|
* Mon Jun 13 2011 Richard Hughes <richard@hughsie.com> 0.1.9-1
|
|
- New upstream version
|
|
|
|
* Thu Jun 02 2011 Richard Hughes <richard@hughsie.com> 0.1.8-1
|
|
- New upstream version
|
|
- Add a webcam device kind
|
|
- Add a timestamp when making profiles default
|
|
- Add support for reading and writing ICC profile metadata
|
|
- Allow the client to pass file descriptors out of band to CreateProfile
|
|
- Prettify the device vendor and model names
|
|
- Split out the sensors into runtime-loadable shared objects
|
|
- Provide some GIO async variants for the methods in CdClient
|
|
- Ensure GPhoto2 devices get added to the device list
|
|
|
|
* Fri May 06 2011 Richard Hughes <richard@hughsie.com> 0.1.7-1
|
|
- New upstream version.
|
|
- Create /var/lib/colord at buildtime not runtime for SELinux
|
|
- Ensure profiles with embedded profile checksums are parsed correctly
|
|
- Move the colorimeter rules to be run before 70-acl.rules
|
|
- Stop watching the client when the sensor is finalized
|
|
- Ensure the source is destroyed when we unref CdUsb to prevent a crash
|
|
- Only enable the volume mount tracking when searching volumes
|
|
|
|
* Tue Apr 26 2011 Richard Hughes <rhughes@redhat.com> 0.1.6-2
|
|
- Own /var/lib/colord and /var/lib/colord/*.db
|
|
|
|
* Sun Apr 24 2011 Richard Hughes <richard@hughsie.com> 0.1.6-1
|
|
- New upstream version.
|
|
|
|
* Thu Mar 31 2011 Richard Hughes <richard@hughsie.com> 0.1.5-1
|
|
- New upstream version.
|
|
|
|
* Wed Mar 09 2011 Richard Hughes <richard@hughsie.com> 0.1.4-1
|
|
- New upstream version.
|
|
|
|
* Mon Feb 28 2011 Richard Hughes <richard@hughsie.com> 0.1.3-1
|
|
- New upstream version.
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Jan 28 2011 Richard Hughes <richard@hughsie.com> 0.1.1-2
|
|
- Rebuild in the vain hope koji isn't broken today.
|
|
|
|
* Wed Jan 26 2011 Richard Hughes <richard@hughsie.com> 0.1.1-1
|
|
- New upstream version.
|
|
|
|
* Thu Jan 13 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1
|
|
- Initial version for Fedora package review.
|