fca2ecca59
- Update to version 4.5.1: * Definition of tags reformatted (clang-format off) for better readability of tag comments in tiff.h and tif_dirinfo.c * Do not install libtiff-4.pc when tiff-install is reset. * Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW. * Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts. * CMake: make WebP component name compatible with upstream ConfigWebP.cmake * CMake: make Findliblzma with upstream CMake config file * CMake: FindDeflate.cmake: fix several errors (issue #526). * CMake: FindLERC.cmake: version string return added. * CMake: export TiffConfig.cmake and TiffConfigVersion.cmake files * CMake: fix export of INTERFACE_INCLUDE_DIRECTORIES * Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB and make 'H' flag of TIFFOpen() to warn and an alias of FILLORDER_MSB2LSB. tif_lerc.c: use WORDS_BIGENDIAN instead of HOST_BIGENDIAN. * Optimize relative seeking within TIFFSetDirectory() by using the learned list of IFD offsets. * Improve internal IFD offset and directory number map handling. * Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux. * TIFFDirectory td_fieldsset type changed from unsigned long, which can be 32 or 64 bits, to uint32_t (fixes issue #484). * tif_ojpeg.c: checking for division by zero (fixes issue #554). * LZWDecode(): avoid crash when trying to read again from a strip whith a missing end-of-information marker (fixes issue #548). * Fixed runtime error: applying zero offset to null pointer in countInkNamesString(). * Fixing crash in TIFFUnlinkDirectory() when called with directory number zero ("TIFFUnlinkDirectory(0)") as well as fixing incorrect behaviour when unlinking the first directory. * tif_luv: check and correct for NaN data in uv_encode() (issue #530). * TIFFClose() avoid NULL pointer dereferencing (issue #515). * tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for GDAL symbol renaming trick. * Fax3: fix failure to decode some fax3 number_of_images and add test for Fax3 decoding issues (issue #513). * TIFFSetDirectory() and TIFFWriteDirectorySec() avoid harmless unsigned-integer-overflow (due to gdal oss-fuzz #54311 and #54343). * tif_ojpeg.c: fix issue #554 by checking for division by zero in OJPEGWriteHeaderInfo(). * LZWDecode(): avoid crash when trying to read again from a strip whith a missing end-of-information marker (issue #548). - Drop no longer needed patches: * tiff-CVE-2023-0795,CVE-2023-0796,CVE-2023-0797,CVE-2023-0798,CVE-2023-0799.patch * tiff-CVE-2022-48281.patch * tiff-CVE-2023-0800,CVE-2023-0801,CVE-2023-0802,CVE-2023-0803,CVE-2023-0804.patch OBS-URL: https://build.opensuse.org/request/show/1093894 OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=170
132 lines
3.7 KiB
RPMSpec
132 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package tiff
|
|
#
|
|
# Copyright (c) 2023 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 asan_build 0
|
|
%define debug_build 0
|
|
Name: tiff
|
|
Version: 4.5.1
|
|
Release: 0
|
|
Summary: Tools for Converting from and to the Tagged Image File Format
|
|
License: HPND
|
|
Group: Productivity/Graphics/Convertors
|
|
URL: https://libtiff.gitlab.io/libtiff/
|
|
Source: https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz
|
|
Source1: https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz.sig
|
|
Source2: README.SUSE
|
|
Source3: baselibs.conf
|
|
Source99: tiff.keyring
|
|
Patch0: tiff-4.0.3-seek.patch
|
|
# http://bugzilla.maptools.org/show_bug.cgi?id=2442
|
|
Patch1: tiff-4.0.3-compress-warning.patch
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libjbig-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: lzma-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(libzstd)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
This package contains the library and support programs for the TIFF
|
|
image format.
|
|
|
|
%package -n libtiff6
|
|
Summary: The Tiff Library (with JPEG and compression support)
|
|
Group: System/Libraries
|
|
Provides: libtiff = %{version}
|
|
|
|
%description -n libtiff6
|
|
This package includes the tiff libraries. To link a program with
|
|
libtiff, you will have to add -ljpeg and -lz to include the necessary
|
|
libjpeg and libz in the linking process.
|
|
|
|
%package -n libtiff-devel
|
|
Summary: Development Tools for Programs which will use the libtiff Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libstdc++-devel
|
|
Requires: libtiff6 = %{version}
|
|
|
|
%description -n libtiff-devel
|
|
This package contains the header files and static libraries for
|
|
developing programs which will manipulate TIFF format image files using
|
|
the libtiff library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -fPIE"
|
|
%if %{debug_build}
|
|
CFLAGS="$CFLAGS -O0"
|
|
%endif
|
|
%configure --disable-static
|
|
%if %{asan_build}
|
|
find -name Makefile | xargs sed -i 's/\(^CFLAGS.*\)/\1 -fsanitize=address/'
|
|
%endif
|
|
%make_build LDFLAGS="-pie"
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
|
%make_install
|
|
for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
|
|
if [ `wc -l <$f` -eq 1 ] && grep -q "^\.so " $f ; then
|
|
linkto=`sed -e "s|^\.so ||" $f`
|
|
[ -f "`dirname $f`/$linkto" ] && ln -sf "$linkto" $f
|
|
fi
|
|
done
|
|
|
|
cp %{SOURCE2} .
|
|
rm -rf %{buildroot}%{_datadir}/doc/tiff*
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
# remove pal2rgb, bsc#1071031
|
|
for tool in pal2rgb; do
|
|
rm %{buildroot}%{_bindir}/$tool
|
|
rm %{buildroot}%{_mandir}/man1/$tool.1
|
|
done
|
|
|
|
%check
|
|
%if %{asan_build}
|
|
# ASAN needs /proc to be mounted
|
|
exit 0
|
|
%endif
|
|
for i in tools test; do
|
|
(cd $i && make %{?_smp_mflags} check)
|
|
done
|
|
|
|
%ldconfig_scriptlets -n libtiff6
|
|
|
|
%files
|
|
%{_bindir}/*
|
|
%doc README.md VERSION ChangeLog TODO RELEASE-DATE
|
|
%{_mandir}/man1/*
|
|
|
|
%files -n libtiff6
|
|
%license LICENSE.md
|
|
%doc README.md README.SUSE
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n libtiff-devel
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|