SPECS/libtiff/libtiff.spec
f0d66536
 Summary:        TIFF libraries and associated utilities.
 Name:           libtiff
 Version:        4.0.8
0f080d93
 Release:        6%{?dist}
f0d66536
 License:        libtiff
 URL:            http://www.simplesystems.org/libtiff/
 Group:          System Environment/Libraries
 Vendor:         VMware, Inc.
 Distribution:   Photon
 Source0:        http://download.osgeo.org/%{name}/tiff-%{version}.tar.gz
 %define sha1    tiff=88717c97480a7976c94d23b6d9ed4ac74715267f
 # patches:      https://blogs.gentoo.org/ago/2017/01/01/libtiff-multiple-heap-based-buffer-overflow/
 Patch0:         libtiff-4.0.6-CVE-2015-7554.patch
 Patch1:         libtiff-4.0.6-CVE-2015-1547.patch
e244e048
 Patch2:         libtiff-CVE-2017-10688.patch
5dd52336
 Patch3:         libtiff-4.0.8-CVE-2017-9936.patch
 Patch4:         libtiff-4.0.8-CVE-2017-11335.patch
61d7bb86
 Patch5:         libtiff-4.0.8-CVE-2017-12944.patch
0f080d93
 Patch6:         libtiff-4.0.8-CVE-2017-13726.patch
 Patch7:         libtiff-4.0.8-CVE-2017-13727.patch
f0d66536
 BuildRequires:  libjpeg-turbo-devel
 Requires:       libjpeg-turbo
8aa3a771
 %description
 The LibTIFF package contains the TIFF libraries and associated utilities. The libraries are used by many programs for reading and writing TIFF files and the utilities are used for general work with TIFF files.
 
f0d66536
 %package        devel
 Summary:        Header and development files
 Requires:       %{name} = %{version}-%{release}
 Requires:       libjpeg-turbo-devel
 %description    devel
fa49ba8a
 It contains the libraries and header files to create applications
8aa3a771
 
 %prep
 %setup -q -n tiff-%{version}
589c5693
 %patch0 -p1
 %patch1 -p1
e244e048
 %patch2 -p1
5dd52336
 %patch3 -p1
 %patch4 -p1
61d7bb86
 %patch5 -p1
0f080d93
 %patch6 -p1
 %patch7 -p1
8aa3a771
 %build
a26f86e3
 %configure \
f0d66536
     --disable-static
8aa3a771
 make %{?_smp_mflags}
 
 %install
 make DESTDIR=%{buildroot} install
 find %{buildroot} -name '*.la' -delete
 
ee8bce34
 %check
 make %{?_smp_mflags} -k check
 
8aa3a771
 %post
 /sbin/ldconfig
 
 %postun
 /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
 %{_bindir}/*
 %{_libdir}/*.so.*
0aa65f08
 %{_datadir}/man/man1/*
8aa3a771
 
 %files devel
 %defattr(-,root,root)
 %{_includedir}/*
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
0aa65f08
 %{_datadir}/doc/*
 %{_datadir}/man/man3/*
8aa3a771
 
 %changelog
0f080d93
 *   Mon Nov 27 2017 Xiaolin Li <xiaolinl@vmware.com> 4.0.8-6
 -   Added patches for CVE-2017-13726, CVE-2017-13727
61d7bb86
 *   Mon Nov 13 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.0.8-5
 -   Patch : CVE-2017-12944
a26f86e3
 *   Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.8-4
 -   Use standard configure macros
5dd52336
 *   Wed Aug 09 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 4.0.8-3
 -   Added patch for CVE-2017-9936, CVE-2017-11335
e244e048
 *   Tue Jul 11 2017 Divya Thaluru <dthaluru@vmware.com> 4.0.8-2
 -   Applied patch for CVE-2017-10688
f0d66536
 *   Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 4.0.8-1
 -   Updated to version 4.0.8.
fa49ba8a
 *   Tue May 16 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 4.0.7-4
 -   Added patch for CVE-2016-10266, CVE-2016-10268, CVE-2016-10269, CVE-2016-10267 and libtiff-heap-buffer-overflow patch
b869faa6
 *   Mon Apr 10 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.0.7-3
 -   Patch : CVE-2016-10092, CVE-2016-10093, CVE-2016-10094
ccb78a8b
 *   Thu Jan 19 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.0.7-2
 -   Patch : CVE-2017-5225
0aa65f08
 *   Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 4.0.7-1
 -   Update to 4.0.7. It fixes CVE-2016-953[3456789] and CVE-2016-9540
 -   Remove obsolete patches
 *   Wed Oct 12 2016 Dheeraj Shetty <dheerajs@vmware.com> 4.0.6-3
 -   Fixed security issues : CVE-2016-3945, CVE-2016-3990, CVE-2016-3991
 *   Thu Sep 22 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 4.0.6-2
 -   Fixed security issues : CVE-2015-8668, CVE-2015-7554, CVE-2015-8683+CVE-2015-8665,CVE-2016-3186
 -   CVE-2015-1547
 *   Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 4.0.6-1
 -   Initial version