libtiff/libtiff.spec

229 lines
7.0 KiB
RPMSpec

Name: libtiff
Version: 4.6.0
Release: 1mamba
Summary: A library of functions for manipulating TIFF format image files
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.libtiff.org/
Source: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
Patch0: %{name}-3.8.2-tiffsplit_overflow.patch
Patch1: %{name}-3.8.2-cve_2006_2193.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libjbig-devel
BuildRequires: libjpeg-devel
BuildRequires: liblzma-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwebp-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
%description
The libtiff package contains a library of functions for manipulating TIFF format image files. TIFF is a widely used file format for bittmapped images.
TISFF files usually ends in the .tif extension and they are often quite large.
%package devel
Summary: Development tools for programs which will use the libtiff library
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains the header files and .so libraries for developing programs which will manipulate TIFF format image files using the libtiff library.
%package doc
Summary: libtiff documentation in HTML format
Group: Documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description doc
This package contains the libtiff documentation.
%package -n tiffgt
Summary: Displays an image stored in a TIFF file
Group: Graphical Desktop/Applications/Graphics
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n tiffgt
Displays an image stored in a TIFF file.
%package -n tiff-utils
Summary: Command line tools for tiff files manipulation
Group: System/Tools
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n tiff-utils
Command line tools for tiff files manipulation.
%debug_package
%prep
%setup -q -n tiff-%{version}
#%patch0 -p1 -b .cve_2006_2656
#%patch1 -p1 -b .cve_2006_2193
%build
%configure \
--enable-old-jpeg
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# note do NOT enable the `OJPEG_SUPPORT' flag: it's unsecure
# see CAN-2004-0929
%makeinstall
# remove unneeded stuff
rm -f %{buildroot}%{_datadir}/doc/tiff-%{version}/{VERSION,RELEASE-DATE}
rm -f %{buildroot}%{_datadir}/doc/tiff-%{version}/README
%if "%{stage1}" == "1"
rm -f %{buildroot}%{_mandir}/man1/tiffgt.*
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libtiff*.so.*
%doc LICENSE.md
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libtiff*.a
%{_libdir}/libtiff*.so
%{_mandir}/man3/*
%{_libdir}/pkgconfig/libtiff-4.pc
%files doc
%defattr(-,root,root)
%dir %{_datadir}/doc/tiff-%{version}
%{_datadir}/doc/tiff-%{version}/*
%files -n tiff-utils
%defattr(-,root,root)
%{_bindir}/tiffcp
%{_bindir}/tiffdump
%{_bindir}/tiffinfo
%{_bindir}/tiffset
%{_bindir}/tiffsplit
%if "%{stage1}" != "1"
%exclude %{_mandir}/man1/tiffgt.*
%endif
%{_mandir}/man1/*
#%if "%{stage1}" != "1"
#%files -n tiffgt
#%defattr(-,root,root)
#%{_bindir}/tiffgt
#%{_mandir}/man1/tiffgt.*
#%endif
%changelog
* Fri Sep 15 2023 Automatic Build System <autodist@mambasoft.it> 4.6.0-1mamba
- automatic version update by autodist
* Thu Jun 15 2023 Automatic Build System <autodist@mambasoft.it> 4.5.1-1mamba
- automatic version update by autodist
* Sat Dec 17 2022 Automatic Build System <autodist@mambasoft.it> 4.5.0-1mamba
- automatic version update by autodist
* Sat May 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.0-1mamba
- update to 4.4.0
* Fri Apr 23 2021 Automatic Build System <autodist@mambasoft.it> 4.3.0-1mamba
- automatic version update by autodist
* Sat Jan 23 2021 Automatic Build System <autodist@mambasoft.it> 4.2.0-1mamba
- automatic version update by autodist
* Tue Nov 12 2019 Automatic Build System <autodist@mambasoft.it> 4.1.0-1mamba
- automatic version update by autodist
* Tue Nov 20 2018 Automatic Build System <autodist@mambasoft.it> 4.0.10-1mamba
- automatic version update by autodist
* Wed Mar 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.9-1mamba
- update to 4.0.9
* Thu Oct 22 2015 Automatic Build System <autodist@mambasoft.it> 4.0.6-1mamba
- automatic version update by autodist
* Mon Jul 13 2015 Automatic Build System <autodist@mambasoft.it> 4.0.4-1mamba
- automatic version update by autodist
* Sat Oct 13 2012 Automatic Build System <autodist@mambasoft.it> 4.0.3-1mamba
- automatic version update by autodist
* Fri Aug 10 2012 Automatic Build System <autodist@mambasoft.it> 4.0.2-1mamba
- automatic version update by autodist
* Wed Apr 11 2012 Automatic Build System <autodist@mambasoft.it> 4.0.1-1mamba
- automatic version update by autodist
* Fri Feb 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.4-1mamba
- update to 3.9.4
- added debug package
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.2-2mamba
- rebuilt with libjpeg 8
* Sat Nov 21 2009 Automatic Build System <autodist@mambasoft.it> 3.9.2-1mamba
- automatic update by autodist
* Sat Jun 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.2-6mamba
- rebuilt (remove dep on libxcb-xlib)
- enable old jpeg support
* Sun May 18 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.2-5mamba
- specfile updated
* Thu Jun 15 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.8.2-4qilnx
- security update: CVE-2006-2193 (qibug#185)
* Wed Jun 07 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.8.2-3qilnx
- security update CVE-2006-2656 (qibug#180)
* Tue May 09 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.8.2-2qilnx
- rebuilt
* Tue May 09 2006 Davide Madrisan <davide.madrisan@qilinux.it> 3.8.2-1qilnx
- update to version 3.8.2 by autospec
* Mon Sep 26 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.4-1qilnx
- update to version 3.7.4 by autospec
* Mon May 16 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.7.2-1qilnx
- update to version 3.7.2 by autospec
- security patch for CAN-2004-1183 removed (already merged)
- fixed security issue:
http://bugzilla.remotesensing.org/show_bug.cgi?id=843
* Fri Jan 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.7.1-3qilnx
- security fix QSA-2005-010 (CAN-2004-1183)
* Thu Dec 23 2004 Davide Madrisan <davide.madrisan@qilinux.it> 3.7.1-2qilnx
- added missing %%post, %%postun scripts
* Thu Dec 23 2004 Davide Madrisan <davide.madrisan@qilinux.it> 3.7.1-1qilnx
- update to version 3.7.1 by autospec
- also solve security issues QSA-2004-069 (CAN-2004-[0803,0804,0886,1308])
note: old package was not affected by CAN-2004-0929
- specfile cleanups
- fixed package groups
- added doc subpackage
* Mon Jun 09 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 3.5.7-1qilnx
- creation of tiff package