argyllcms/argyllcms.spec

140 lines
5.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package argyllcms
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define tarname Argyll
Name: argyllcms
Accepting request 1174031 from home:ateixeira:branches:multimedia:color_management - Update to 3.2.0: * Added extra diagnostics to printcal. * Added colprof -nI option, that adds inverse gamut mapping to Perceptual and Saturation A2B tables, if they are being created. This is not recommended for source profiles, since it handicaps true gamut mapping, but may be a workaround to faulty Adobe Lightroom BPC for Perceptual intent in output profiles. * Added error message for ColorMunki spectro sensor internal cable being disconnected. * Fixed bug in Appearance B2A conversion that appeared in V3.0 release. * Fixed crash in chartread strip reading when given faulty .ti2 file. * Tweaked i1d3 AIO adaptive integration time to reduce measure time to be more comparable to just using Rev A commands. * Re-worked ARGYLL_NOT_INTERACTIVE stdin to work much better on MSWin when connected to a pipe. Removed code that empties stdin before expecting use input when ARGYLL_NOT_INTERACTIVE. * Fixed OS X dispwin -c etc. * Fixed colprof IGNORE_DISP_ZEROS heuristic so that it doesn't reject OLED red measurements that have a Z value of 0.0. * Added -H option to colprof to allow setting the charTargetTag to given string, rather than automatically filling with .ti3 data. * Changed instrument monitoring thread debug messages to only be shown on -D9, so they don't interfere with messages shown at -D8. OBS-URL: https://build.opensuse.org/request/show/1174031 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=67
2024-05-20 19:13:45 +02:00
Version: 3.2.0
Release: 0
Summary: ICC compatible color management system
License: AGPL-3.0-only AND GPL-2.0-or-later AND MIT
Group: System/X11/Utilities
URL: https://www.argyllcms.com/
Source0: https://www.argyllcms.com/%{tarname}_V%{version}_src.zip
Source1: 19-color.fdi
Source2: color-device-file.policy
Source3: ajam-2.5.2-1.3.3.tgz
Patch1: ajam-include.patch
# PATCH-FIX-OPENSUSE bsc#1221304 -- Fix ajam build with gcc14
Patch2: ajam-gcc14.patch
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: unzip
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xdmcp)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xxf86vm)
BuildRequires: pkgconfig(zlib)
#needed for ajam
BuildRequires: bison
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(udev)
Requires: udev
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
# Does not really make sense without Argyll CMS itself
Group: System/X11/Utilities
Requires: %{name} = %{version}
Accepting request 1113077 from home:ateixeira:branches:multimedia:color_management - Update to 3.0.0: * Updated ccast/axTLS to get ChromCast working again with latest Google CC operating software. * Extensive re-write/re-factor of icclib to make it more future-proof. See https://www.argyllcms.com/doc/ChangesSummary.html for details. * Added ref/ColorCheckerPassport.ti2 and ref/ColorCheckerHalfPassport.ti2 to allow measuring ColorCheckerPassport with instrument. * Fixed bug in Munki spectro hi-res mode with some instruments. Luminance matching between normal and hi-res was sometimes quite poor. * Added ARGYLL_CREATE_DISPLAY_PROFILE_WITHOUT_CHAD environment variable. * Changed colprof -U flag to -u. Changed dispcal -J flag to -K to accommodate a potential new flag for colprof and dispcal. * Added workaround for bug in madHcNet64.dll32/64.dll which sometimes causes failure. * Added delay after USB set_config on OS X to help Spyder 3/4 on Ventura OS. * Added -Y parameter to dispwin to override automatic patch delay. * Changed i1d3 driver to cope with Rev. B "0x83" error robustly. This should fix any issues measuring low level Red only patch values on OLED displays, but with slower measurements when this occurs. * Added spotread -Y S option to save spectral sensitivity curves and added corresponding support in i1d3 driver. This allows for comparison of different instruments factory calibrations. * Added a -h scale parameter to dispread, to allow the automatic instrument calibration test patch values to be scaled down from their default 100% value. This is useful with HDR displays. * Added manifest to MSWindows executables to use UTF-8 code pages on Windows 1903 and later. This should improve non-ASCII filename and path handling. * Added a Violet colorant to the targen colorant list. * Fixed problem with OS X 64 bit backwards compatibility where it failed to locate serial instruments when the binaries are run on OS X V12 or latter OBS-URL: https://build.opensuse.org/request/show/1113077 OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=56
2023-09-25 10:33:18 +02:00
BuildArch: noarch
%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
%autosetup -n %{tarname}_V%{version} -a3 -p1
# 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.*}
rm -fr zlib tiff png ccast/axTLS/*.c
%build
%define _lto_cflags %{nil}
cd ajam-2.5.2-1.3.3
make CFLAGS="-std=gnu89 %{optflags}"
ln -s $PWD/bin.unix/jam ../jam
cd ..
echo "CCFLAGS += -std=gnu89 %{optflags} -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 %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/color/argyll/ref
install -m 0755 -D bin/* %{buildroot}/%{_bindir}
install -m 0644 -D ref/* %{buildroot}/%{_datadir}/color/argyll/ref
rm -f %{buildroot}/%{_datadir}/color/argyll/License.txt
# ensure timestamp in shipped files is not changing for each rebuild (boo#916158)
TIMESTAMP=$(LC_ALL=C date --date=@${SOURCE_DATE_EPOCH} +%c)
sed -i -e 's/^CREATED .*/CREATED "$TIMESTAMP"/g' %{buildroot}%{_datadir}/color/argyll/ref/RefMediumGamut.gam
install -d -m 0755 %{buildroot}%{_udevrulesdir}
install -p -m 0644 usb/55-Argyll.rules \
%{buildroot}%{_udevrulesdir}
chmod a-x *.txt
find doc -type f -exec chmod a-x {} \;
%files
%doc *.txt
%{_bindir}/*
%dir %{_datadir}/color
%{_datadir}/color/argyll
%{_udevrulesdir}/55-Argyll.rules
%files doc
%doc doc/*.html doc/*.jpg doc/*.txt
%changelog