argyllcms/argyllcms.spec

185 lines
5.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package argyllcms
#
Accepting request 220491 from home:fcrozat:branches:multimedia:color_management - Release 1.6.3: + Added ProPhoto.icm and ProPhotoLin.icm to ref profiles. + Fix bug in xicclu -py conversion. + Added code to minimize ICC rounding error on matrix profile white point accuracy. Re-generated all reference profiles with this change. + Changed i1d3 driver to completely ignore any EEPROM checksum errors for non "A-01" rev. instruments. + Made transplot handle RGB->RGB device link. + Removed colprof -y option. Use "profcheck -v2" instead, as it is more developed. + Fixed bug in dispcal - it was not using the final measurement pass to update the calibration curves. + Fixed bug in spotread, dispcal & dispread for CCSS capable instruments where refresh display types was being ignored if a custom observer was used, and/or the custom observer as being ignored, and/or a CCMX was being ignored. + Renamed verify to colverify to avoid clash with MSWin program of the same name. Made it print the patch location for -v2 if it is present in the file. + Changed targen to ensure that -V and -p options effects are reflected in the resulting expected CIE values of the .ti1 file. + Changed targen so that -V parameter also affects single channel, grey wedge, grid & body centered grid point distribution. + Changed colprof to deal with variable grid distribution in a more neuanced way, to reduce overshoot artifacts when the -V parameter is used. + Changed colprof to used a power_like function for the grid OBS-URL: https://build.opensuse.org/request/show/220491 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=24
2014-01-31 23:32:07 +01:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
%define _udevrulesdir /usr/lib/udev/rules.d
%else
%define _udevrulesdir /lib/udev/rules.d
%endif
%define archivename Argyll_V%{version}%{?alphaversion}_src.zip
Name: argyllcms
Accepting request 220491 from home:fcrozat:branches:multimedia:color_management - Release 1.6.3: + Added ProPhoto.icm and ProPhotoLin.icm to ref profiles. + Fix bug in xicclu -py conversion. + Added code to minimize ICC rounding error on matrix profile white point accuracy. Re-generated all reference profiles with this change. + Changed i1d3 driver to completely ignore any EEPROM checksum errors for non "A-01" rev. instruments. + Made transplot handle RGB->RGB device link. + Removed colprof -y option. Use "profcheck -v2" instead, as it is more developed. + Fixed bug in dispcal - it was not using the final measurement pass to update the calibration curves. + Fixed bug in spotread, dispcal & dispread for CCSS capable instruments where refresh display types was being ignored if a custom observer was used, and/or the custom observer as being ignored, and/or a CCMX was being ignored. + Renamed verify to colverify to avoid clash with MSWin program of the same name. Made it print the patch location for -v2 if it is present in the file. + Changed targen to ensure that -V and -p options effects are reflected in the resulting expected CIE values of the .ti1 file. + Changed targen so that -V parameter also affects single channel, grey wedge, grid & body centered grid point distribution. + Changed colprof to deal with variable grid distribution in a more neuanced way, to reduce overshoot artifacts when the -V parameter is used. + Changed colprof to used a power_like function for the grid OBS-URL: https://build.opensuse.org/request/show/220491 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=24
2014-01-31 23:32:07 +01:00
Version: 1.6.3
Release: 0
Summary: ICC compatible color management system
License: AGPL-3.0 and GPL-2.0+ and MIT
Group: System/X11/Utilities
Url: http://www.%{name}.com/
Source0: %{url}%{archivename}
Source1: 19-color.fdi
Source2: color-device-file.policy
Source3: ajam-2.5.2-1.3.3.tgz
# drop udev-acl stuff, handled by udev directly (Mandriva)
Patch5: argyllcms-udev151.patch
Patch7: ajam-include.patch
Patch8: argyllcms-1.4.0-warnings.patch
# PATCH-FIX-UPSTREAM argyllcms-udev-builtin.patch fcrozat@suse.com -- usb-db is now builtin in udev
Patch9: argyllcms-udev-builtin.patch
# PATCH-FIX-UPSTREAM argyllcms-udev-hwdb.patch fcrozat@suse.com -- usb-db is replaced by hwdb in recent udev
Patch10: argyllcms-udev-hwdb.patch
Accepting request 195745 from home:sbrabec:branches:multimedia:color_management - Release 1.6.0: + Added support for JETI specbos 1211 and 1201. + Added Video profiling & 3dLut creation support for eeColor and MadVR. + Linux profile installation will use colord. + Fix ColorHug driver. + Changed instlib API ambient XYZ and spectral units to Lux. + For those instruments that support it, made ambient readings honor refresh mode measurements. + Changed spotread -ew mode to be Bradford chromatic transform rather than XYZ scaling. + Added support to xicclu to lookup colors though CAL files. + Added -Y R:rate option to spotread, dispcal, dispread & ccxxmake. + By default printtarg will create PS and EPS files with a CUPS job ticket to disable color management. + Added display update delay calibration support to i1pro and ColorMunki. + Changed dispcal & dispread so that they wait up to 0.5 seconds when reading dark patches after light ones to allow for display fall time. + Changed dispwin daemon loader mode option from -E to -X. + Changed dispcal verify option from -E to -z. + Added -E option to to dispread to encode test patch colors in Video 16-235 range. + Changed CIECAM02 Flare model to distinguish between Flare from the image itself, and Glare from ambient light. + Improved i1pro hi-res mode to improve accuracy. + Added Body Centered Cubic grid option to targen. + Added -Yn flag to dispcal and dispread. + Improve robustness of i1d3 display update measurement code. + Added support for applying calibration curves in collink. + Changed spotread so that it won't fall back to emissive spot mode if an ambient reading is requested. + Turned off B2A table clip map smoothing. + Fixed crash in ucmm/ucmm.c when loading certain profiles using dispwin. + Fixed gamut mapping intent "rl" to really use relative L*a*b* + Fix bug in cicam02 in V1.5.0 that causes some mapping problems in the red for collink -ir or -ila. + Changed cctiff so that it does lossless JPEG copy when there is no color transformation + Fix xicclu so that it works with device links. + Fixed bug in shaper/matrix profile curves that caused random bumpy black behaviour. + Don't add colorant tag to .tiff files in cctiff unless it is a non-standard space, as Photoshop will barf on such files. + Fix bug with Spyder not being able to break out of dispcal adjustment loop. + Fix bug in xicc/xicclu, -K flag not being recognised. + Fix bug in xicc/xmatrix.c introduced that prevents matrix only profiles from being created. + libusb 1.0 is now deprecated in favor of native USB drivers. OBS-URL: https://build.opensuse.org/request/show/195745 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=20
2013-08-22 00:46:14 +02:00
# PATCH-FIX-UPSTREAM argyllcms-decl.patch sbrabec@suse.cz -- Add missing headers.
Patch12: argyllcms-decl.patch
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: unzip
BuildRequires: xorg-x11-devel
#needed for ajam
BuildRequires: bison
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: udev
Requires: udev
%if 0%{?suse_version} < 1120
BuildRequires: hal
Requires: hal
%endif
Accepting request 195745 from home:sbrabec:branches:multimedia:color_management - Release 1.6.0: + Added support for JETI specbos 1211 and 1201. + Added Video profiling & 3dLut creation support for eeColor and MadVR. + Linux profile installation will use colord. + Fix ColorHug driver. + Changed instlib API ambient XYZ and spectral units to Lux. + For those instruments that support it, made ambient readings honor refresh mode measurements. + Changed spotread -ew mode to be Bradford chromatic transform rather than XYZ scaling. + Added support to xicclu to lookup colors though CAL files. + Added -Y R:rate option to spotread, dispcal, dispread & ccxxmake. + By default printtarg will create PS and EPS files with a CUPS job ticket to disable color management. + Added display update delay calibration support to i1pro and ColorMunki. + Changed dispcal & dispread so that they wait up to 0.5 seconds when reading dark patches after light ones to allow for display fall time. + Changed dispwin daemon loader mode option from -E to -X. + Changed dispcal verify option from -E to -z. + Added -E option to to dispread to encode test patch colors in Video 16-235 range. + Changed CIECAM02 Flare model to distinguish between Flare from the image itself, and Glare from ambient light. + Improved i1pro hi-res mode to improve accuracy. + Added Body Centered Cubic grid option to targen. + Added -Yn flag to dispcal and dispread. + Improve robustness of i1d3 display update measurement code. + Added support for applying calibration curves in collink. + Changed spotread so that it won't fall back to emissive spot mode if an ambient reading is requested. + Turned off B2A table clip map smoothing. + Fixed crash in ucmm/ucmm.c when loading certain profiles using dispwin. + Fixed gamut mapping intent "rl" to really use relative L*a*b* + Fix bug in cicam02 in V1.5.0 that causes some mapping problems in the red for collink -ir or -ila. + Changed cctiff so that it does lossless JPEG copy when there is no color transformation + Fix xicclu so that it works with device links. + Fixed bug in shaper/matrix profile curves that caused random bumpy black behaviour. + Don't add colorant tag to .tiff files in cctiff unless it is a non-standard space, as Photoshop will barf on such files. + Fix bug with Spyder not being able to break out of dispcal adjustment loop. + Fix bug in xicc/xicclu, -K flag not being recognised. + Fix bug in xicc/xmatrix.c introduced that prevents matrix only profiles from being created. + libusb 1.0 is now deprecated in favor of native USB drivers. OBS-URL: https://build.opensuse.org/request/show/195745 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=20
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.
%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
Summary: Argyll CMS documentation
Group: System/X11/Utilities
# Does not really make sense without Argyll CMS itself
Requires: %{name} = %{version}
%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
%setup -q -n Argyll_V%{version}
%if 0%{?suse_version} >= 1120
%patch5 -p1 -b .udev151
%if 0%{?suse_version} >= 1220
%if 0%{?suse_version} >= 1310
%patch10 -p1 -b .hwdb
%else
%patch9 -p1 -b .builtin
%endif
%endif
%endif
%patch8 -p1 -b .warnings
Accepting request 195745 from home:sbrabec:branches:multimedia:color_management - Release 1.6.0: + Added support for JETI specbos 1211 and 1201. + Added Video profiling & 3dLut creation support for eeColor and MadVR. + Linux profile installation will use colord. + Fix ColorHug driver. + Changed instlib API ambient XYZ and spectral units to Lux. + For those instruments that support it, made ambient readings honor refresh mode measurements. + Changed spotread -ew mode to be Bradford chromatic transform rather than XYZ scaling. + Added support to xicclu to lookup colors though CAL files. + Added -Y R:rate option to spotread, dispcal, dispread & ccxxmake. + By default printtarg will create PS and EPS files with a CUPS job ticket to disable color management. + Added display update delay calibration support to i1pro and ColorMunki. + Changed dispcal & dispread so that they wait up to 0.5 seconds when reading dark patches after light ones to allow for display fall time. + Changed dispwin daemon loader mode option from -E to -X. + Changed dispcal verify option from -E to -z. + Added -E option to to dispread to encode test patch colors in Video 16-235 range. + Changed CIECAM02 Flare model to distinguish between Flare from the image itself, and Glare from ambient light. + Improved i1pro hi-res mode to improve accuracy. + Added Body Centered Cubic grid option to targen. + Added -Yn flag to dispcal and dispread. + Improve robustness of i1d3 display update measurement code. + Added support for applying calibration curves in collink. + Changed spotread so that it won't fall back to emissive spot mode if an ambient reading is requested. + Turned off B2A table clip map smoothing. + Fixed crash in ucmm/ucmm.c when loading certain profiles using dispwin. + Fixed gamut mapping intent "rl" to really use relative L*a*b* + Fix bug in cicam02 in V1.5.0 that causes some mapping problems in the red for collink -ir or -ila. + Changed cctiff so that it does lossless JPEG copy when there is no color transformation + Fix xicclu so that it works with device links. + Fixed bug in shaper/matrix profile curves that caused random bumpy black behaviour. + Don't add colorant tag to .tiff files in cctiff unless it is a non-standard space, as Photoshop will barf on such files. + Fix bug with Spyder not being able to break out of dispcal adjustment loop. + Fix bug in xicc/xicclu, -K flag not being recognised. + Fix bug in xicc/xmatrix.c introduced that prevents matrix only profiles from being created. + libusb 1.0 is now deprecated in favor of native USB drivers. OBS-URL: https://build.opensuse.org/request/show/195745 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=20
2013-08-22 00:46:14 +02:00
%patch12 -p1
Accepting request 195745 from home:sbrabec:branches:multimedia:color_management - Release 1.6.0: + Added support for JETI specbos 1211 and 1201. + Added Video profiling & 3dLut creation support for eeColor and MadVR. + Linux profile installation will use colord. + Fix ColorHug driver. + Changed instlib API ambient XYZ and spectral units to Lux. + For those instruments that support it, made ambient readings honor refresh mode measurements. + Changed spotread -ew mode to be Bradford chromatic transform rather than XYZ scaling. + Added support to xicclu to lookup colors though CAL files. + Added -Y R:rate option to spotread, dispcal, dispread & ccxxmake. + By default printtarg will create PS and EPS files with a CUPS job ticket to disable color management. + Added display update delay calibration support to i1pro and ColorMunki. + Changed dispcal & dispread so that they wait up to 0.5 seconds when reading dark patches after light ones to allow for display fall time. + Changed dispwin daemon loader mode option from -E to -X. + Changed dispcal verify option from -E to -z. + Added -E option to to dispread to encode test patch colors in Video 16-235 range. + Changed CIECAM02 Flare model to distinguish between Flare from the image itself, and Glare from ambient light. + Improved i1pro hi-res mode to improve accuracy. + Added Body Centered Cubic grid option to targen. + Added -Yn flag to dispcal and dispread. + Improve robustness of i1d3 display update measurement code. + Added support for applying calibration curves in collink. + Changed spotread so that it won't fall back to emissive spot mode if an ambient reading is requested. + Turned off B2A table clip map smoothing. + Fixed crash in ucmm/ucmm.c when loading certain profiles using dispwin. + Fixed gamut mapping intent "rl" to really use relative L*a*b* + Fix bug in cicam02 in V1.5.0 that causes some mapping problems in the red for collink -ir or -ila. + Changed cctiff so that it does lossless JPEG copy when there is no color transformation + Fix xicclu so that it works with device links. + Fixed bug in shaper/matrix profile curves that caused random bumpy black behaviour. + Don't add colorant tag to .tiff files in cctiff unless it is a non-standard space, as Photoshop will barf on such files. + Fix bug with Spyder not being able to break out of dispcal adjustment loop. + Fix bug in xicc/xicclu, -K flag not being recognised. + Fix bug in xicc/xmatrix.c introduced that prevents matrix only profiles from being created. + libusb 1.0 is now deprecated in favor of native USB drivers. OBS-URL: https://build.opensuse.org/request/show/195745 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=20
2013-08-22 00:46:14 +02:00
tar xf %{SOURCE3}
cd ajam-2.5.2-1.3.3
%patch7 -p1 -b .include
cd ..
# remove unused source code
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.*}
%build
cd ajam-2.5.2-1.3.3
make CFLAGS="${RPM_OPT_FLAGS}"
ln -s $PWD/bin.unix/jam ../jam
cd ..
echo "CCFLAGS += ${RPM_OPT_FLAGS} -fno-strict-aliasing ;" >> Jamtop
# 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
./jam -fJambase %{?_smp_mflags}
%install
./jam -q -fJambase install
rm bin/License.txt
mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_datadir}/color/argyll}
install -m 0755 -D bin/* $RPM_BUILD_ROOT/%{_bindir}
install -m 0644 -D ref/* $RPM_BUILD_ROOT/%{_datadir}/color/argyll
rm -f $RPM_BUILD_ROOT/%{_datadir}/color/argyll/License.txt
%if 0%{?suse_version} < 1120
# Do some device permission magic
install -d -m 0755 %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
install -p -m 0644 %{SOURCE1} \
%{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
install -d -m 0755 %{buildroot}%{_datadir}/PolicyKit/policy/
install -p -m 0644 %{SOURCE2} \
%{buildroot}%{_datadir}/PolicyKit/policy/
%else
install -d -m 0755 %{buildroot}%{_udevrulesdir}
install -p -m 0644 usb/55-Argyll.rules \
%{buildroot}%{_udevrulesdir}
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc *.txt
%{_bindir}/*
%dir %{_datadir}/color
%{_datadir}/color/argyll
%if 0%{?suse_version} < 1120
%{_datadir}/hal/fdi/policy/10osvendor/19-color.fdi
%{_datadir}/PolicyKit/policy/color-device-file.policy
%else
%{_udevrulesdir}/55-Argyll.rules
%endif
%files doc
%defattr(-,root,root,-)
%doc doc/*.html doc/*.jpg doc/*.txt
%changelog