2012-01-16 17:35:59 +01:00
|
|
|
#
|
|
|
|
# spec file for package argyllcms
|
|
|
|
#
|
2019-05-14 17:30:37 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-16 17:35:59 +01: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-05-14 17:30:37 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-16 17:35:59 +01:00
|
|
|
#
|
|
|
|
|
2012-01-12 10:42:03 +01:00
|
|
|
|
2015-12-14 01:37:59 +01:00
|
|
|
%define tarname Argyll
|
2012-01-12 10:42:03 +01:00
|
|
|
|
2012-01-16 17:35:59 +01:00
|
|
|
Name: argyllcms
|
2017-03-16 05:18:26 +01:00
|
|
|
Version: 1.9.2
|
2012-06-25 13:30:24 +02:00
|
|
|
Release: 0
|
2012-01-16 17:35:59 +01:00
|
|
|
Summary: ICC compatible color management system
|
2019-05-14 17:30:37 +02:00
|
|
|
License: AGPL-3.0-only AND GPL-2.0-or-later AND MIT
|
2012-01-16 17:35:59 +01:00
|
|
|
Group: System/X11/Utilities
|
2015-12-14 01:37:59 +01:00
|
|
|
Url: http://www.argyllcms.com/
|
2017-03-16 05:18:26 +01:00
|
|
|
Source0: http://www.argyllcms.com/%{tarname}_V%{version}_src.zip
|
2012-01-16 17:35:59 +01:00
|
|
|
Source1: 19-color.fdi
|
|
|
|
Source2: color-device-file.policy
|
2012-06-25 13:30:24 +02:00
|
|
|
Source3: ajam-2.5.2-1.3.3.tgz
|
2017-03-16 05:18:26 +01:00
|
|
|
Source4: %{name}.changes
|
|
|
|
Patch1: ajam-include.patch
|
|
|
|
Patch2: argyllcms-decl.patch
|
2012-01-16 17:35:59 +01:00
|
|
|
|
2012-06-25 13:30:24 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2012-01-16 17:35:59 +01:00
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: unzip
|
2017-12-12 13:49:42 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xdmcp)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xscrnsaver)
|
|
|
|
BuildRequires: pkgconfig(xxf86vm)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2012-06-25 13:30:24 +02:00
|
|
|
#needed for ajam
|
|
|
|
BuildRequires: bison
|
2016-04-14 09:58:57 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2015-12-14 01:37:59 +01:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2015-02-24 07:51:56 +01:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2012-01-16 17:35:59 +01:00
|
|
|
Requires: udev
|
2013-08-22 00:46:14 +02:00
|
|
|
# FIXME: The application dlopens libcolordcompat.so, which does not
|
|
|
|
# exists in openSUSE colord package. We should use Suggests
|
|
|
|
# or Recommends here, and change its name in the source code
|
|
|
|
# to not read file from colord-devel.
|
2012-01-12 10:42:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Argyll color management system supports accurate ICC profile creation for
|
|
|
|
scanners, CMYK printers, film recorders and calibration and profiling of
|
|
|
|
displays.
|
|
|
|
|
|
|
|
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
|
|
|
|
viewer.
|
|
|
|
|
|
|
|
%package doc
|
2012-01-16 17:35:59 +01:00
|
|
|
Summary: Argyll CMS documentation
|
2012-01-12 10:42:03 +01:00
|
|
|
# Does not really make sense without Argyll CMS itself
|
2017-03-16 05:18:26 +01:00
|
|
|
Group: System/X11/Utilities
|
2012-01-16 17:35:59 +01:00
|
|
|
Requires: %{name} = %{version}
|
2012-01-12 10:42:03 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
The Argyll color management system supports accurate ICC profile creation for
|
|
|
|
scanners, CMYK printers, film recorders and calibration and profiling of
|
|
|
|
displays.
|
|
|
|
|
|
|
|
This package contains the Argyll color management system documentation.
|
|
|
|
|
|
|
|
%prep
|
2019-06-19 01:20:43 +02:00
|
|
|
%setup -q -n %{tarname}_V%{version} -a3
|
2017-03-16 05:18:26 +01:00
|
|
|
%patch2 -p1
|
2012-06-25 13:30:24 +02:00
|
|
|
cd ajam-2.5.2-1.3.3
|
2017-03-16 05:18:26 +01:00
|
|
|
%patch1 -p1 -b .include
|
2012-06-25 13:30:24 +02:00
|
|
|
cd ..
|
2012-01-12 10:42:03 +01:00
|
|
|
|
2012-01-19 16:25:12 +01:00
|
|
|
# remove unused source code
|
2013-08-01 08:32:55 +02:00
|
|
|
rm -fr usb/{*.inf,*.rtf,*.inf,*.cat,*.vcproj,*.sys,*.dsw,*.sln,*.dsp,*template*,WinCo*,winsub*,*kext*,KDRIVER_LICENSE,README_MSVC.txt,msvc,*.cmd,bin,driver,binfiles.*}
|
2012-01-19 16:25:12 +01:00
|
|
|
|
|
|
|
%build
|
2019-05-14 17:30:37 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2012-06-25 13:30:24 +02:00
|
|
|
cd ajam-2.5.2-1.3.3
|
2019-06-19 01:20:43 +02:00
|
|
|
make CFLAGS="-std=gnu89 %{optflags}"
|
2012-06-25 13:30:24 +02:00
|
|
|
ln -s $PWD/bin.unix/jam ../jam
|
|
|
|
cd ..
|
|
|
|
|
2019-06-19 01:20:43 +02:00
|
|
|
echo "CCFLAGS += -std=gnu89 %{optflags} -fno-strict-aliasing ;" >> Jamtop
|
2012-06-25 13:30:24 +02:00
|
|
|
# Evil hack to get --as-needed working. The build system unfortunately lists all
|
|
|
|
# the shared libraries by default on the command line _before_ the object to be built...
|
|
|
|
echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
|
2012-01-12 10:42:03 +01:00
|
|
|
|
2012-06-25 13:30:24 +02:00
|
|
|
./jam -fJambase %{?_smp_mflags}
|
2012-01-12 10:42:03 +01:00
|
|
|
|
|
|
|
%install
|
2012-10-12 10:01:40 +02:00
|
|
|
./jam -q -fJambase install
|
2012-01-12 10:42:03 +01:00
|
|
|
|
2012-06-25 13:30:24 +02:00
|
|
|
rm bin/License.txt
|
2019-06-19 01:20:43 +02:00
|
|
|
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/color/argyll/ref
|
|
|
|
install -m 0755 -D bin/* %{buildroot}/%{_bindir}
|
2015-02-06 16:52:04 +01:00
|
|
|
install -m 0644 -D ref/* %{buildroot}/%{_datadir}/color/argyll/ref
|
2019-06-19 01:20:43 +02:00
|
|
|
rm -f %{buildroot}/%{_datadir}/color/argyll/License.txt
|
2012-01-12 10:42:03 +01:00
|
|
|
|
2015-02-06 16:52:04 +01:00
|
|
|
# ensure timestamp is shipped files is not changing for each rebuild (boo#916158)
|
2017-03-16 05:18:26 +01:00
|
|
|
TIMESTAMP=$(LC_ALL=C date -r %{SOURCE4} +%c)
|
2015-02-06 16:52:04 +01:00
|
|
|
|
|
|
|
sed -i -e 's/^CREATED .*/CREATED "$TIMESTAMP"/g' %{buildroot}%{_datadir}/color/argyll/ref/RefMediumGamut.gam
|
|
|
|
|
2012-10-18 10:59:27 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_udevrulesdir}
|
2013-08-01 08:32:55 +02:00
|
|
|
install -p -m 0644 usb/55-Argyll.rules \
|
2012-10-18 10:59:27 +02:00
|
|
|
%{buildroot}%{_udevrulesdir}
|
2015-12-14 01:37:59 +01:00
|
|
|
chmod a-x *.txt
|
|
|
|
chmod a-x doc/*
|
2012-01-12 10:42:03 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc *.txt
|
|
|
|
|
|
|
|
%{_bindir}/*
|
|
|
|
%dir %{_datadir}/color
|
|
|
|
%{_datadir}/color/argyll
|
2012-10-18 10:59:27 +02:00
|
|
|
%{_udevrulesdir}/55-Argyll.rules
|
2012-01-12 10:42:03 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/*.html doc/*.jpg doc/*.txt
|
|
|
|
|
|
|
|
%changelog
|