Blob Blame History Raw
#define alphaversion Beta8
#define alphatag    .%{alphaversion}

%define archivename Argyll_V%{version}%{?alphaversion}

Name:    argyllcms
Version: 1.0.3
Release: 2%{?alphatag}%{?dist}
Summary: ICC compatible color management system

Group:   User Interface/X
License: GPLv3 and MIT
URL:     http://www.%{name}.com/

Source0: %{url}%{archivename}
# Many thanks to Alastair M. Robinson!
Patch2:  %{name}-1.0.3-remove-libusb-fork-check.patch
# Patch applied for legal reasons
Patch4:  %{name}-1.0.2-legal.patch

BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: libtiff-devel, libusb-devel
BuildRequires: libX11-devel, libXext-devel, libXxf86vm-devel, libXinerama-devel
BuildRequires: libXScrnSaver-devel, libXrandr-devel

Requires: udev, PolicyKit

The Argyll color management system supports accurate ICC profile creation for
scanners, CMYK printers, film recorders and calibration and profiling of

Spectral sample data is supported, allowing a selection of illuminants observer
types, and paper fluorescent whitener additive compensation. Profiles can also
incorporate source specific gamut mappings for perceptual and saturation
intents. Gamut mapping and profile linking uses the CIECAM02 appearance model,
a unique gamut mapping algorithm, and a wide selection of rendering intents. It
also includes code for the fastest portable 8 bit raster color conversion
engine available anywhere, as well as support for fast, fully accurate 16 bit
conversion. Device color gamuts can also be viewed and compared using a VRML

%package doc
Summary: Argyll CMS documentation
Group:   User Interface/X
# Does not really make sense without Argyll CMS itself
Requires: %{name} = %{version}-%{release}

%description doc
The Argyll color management system supports accurate ICC profile creation for
scanners, CMYK printers, film recorders and calibration and profiling of

This package contains the Argyll color management system documentation.

%setup -q -n Argyll_V%{version}
# Autotools support
%patch1 -p1 -b .auto
# Use the system libusb. If there is a ***REPORTED*** problem the distro will fix it
%patch2 -p1 -b .sysusb
# Legal patch required
%patch4 -p1 -b .legal

# Salvage policy files
mv libusb/19-color.fdi .
mv libusb/color-device-file.policy .

# Remove useless bundled libs to make sure we don't accidentally include them
rm -fr tiff libusb libusbw

chmod u+x configure


rm -rf %{buildroot}

make install DESTDIR=%{buildroot}

# Do some device permission magic
install -d -m 0755 %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
install -p -m 0644 19-color.fdi \

install -d -m 0755 %{buildroot}%{_datadir}/PolicyKit/policy/
install -p -m 0644 color-device-file.policy \

rm -rf %{buildroot}

%doc *.txt

%attr(0755,root,root) %{_bindir}/*

%exclude %{_datadir}/doc

%files doc
%doc doc/*.html doc/*.jpg doc/*.txt

* Mon Feb 23 2009 Fedora Release Engineering <> - 1.0.3-2
- Rebuilt for

* Wed Sep 3 2008 Nicolas Mailhot <nicolas.mailhot at>
- 1.0.3-1
⌨ Bugfix release

* Mon Sep 1 2008 Nicolas Mailhot <nicolas.mailhot at>
- 1.0.2-1
ᾢ Bugfix release

* Sun Jul 27 2008 Nicolas Mailhot <nicolas.mailhot at>
- 1.0.1-1
☻ Lots of workarounds dropped — Argyll continues progressing towards “normal
  package” state
☺ No more jam hell ☡, autotooling patch by Alastair M. Robinson ♥♥♥
♿ New workaround added for private libusb check ⚔ We build againt system
  libusb, and will fix ⚕ any problem people care to report
⁜ Re-applied some patches still not merged upstream, including the legal ⚖ one
⚙ It builds, what can go wrong⁉
⁂ Changed Huey policy file. Huey users, please test

* Wed Mar 26 2008 Tom "spot" Callaway <>
- patch applied for legal reasons

* Thu Feb 8 2008 Nicolas Mailhot <nicolas.mailhot at>
- 0.70-0.8.Beta9
✓ Another code fix (Stefan Brüns)
- 0.70-0.8.Beta8
✓ update to Stefan Brüns' latest safe-printf patch (bz421921#c18)

* Thu Feb 7 2008 Nicolas Mailhot <nicolas.mailhot at>
- 0.70-0.7.Beta8
  Finally got around packaging beta8, I suck
✓ Fedora patches merged upstream, dropped from rpm
✓ Huey handling seems sanitized (needs testing by Huey users)
⚖ Upstream relicensed icc and cgats library to plain MIT license (Thanks!)

* Thu Dec 14 2007 Nicolas Mailhot <nicolas.mailhot at>
- 0.70-0.6.Beta7
☹ fix udev typo
- 0.70-0.5.Beta7
⚖ Remove files that may be GPLv2-only according to upstream

* Thu Dec 13 2007 Nicolas Mailhot <nicolas.mailhot at>
- 0.70-0.4.Beta7
✓ move to modern PolicyKit world (David Zeuthen, Frédéric Crozat, me)

* Wed Dec 12 2007 Nicolas Mailhot <nicolas.mailhot at>
- 0.70-0.3.Beta7
✓ integrate review feedback
- 0.70-0.2.Beta7
✓ fix buffer overflows in dispread and iccdump (credits Daniel Berrangé)
- 0.70-0.1.Beta7
✓ 0.70 beta7
➤ initial laborious packaging
✌ Build system from hell untangling by Frédéric Crozat (Mandriva), and me
✌ device permission magic by me
☣ Massively under-tested package, please report problems