Browse Source

libtiff-4.0.7-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11065 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 8 years ago
parent
commit
ba1b9438c7
1 changed files with 56 additions and 3 deletions
  1. 56 3
      lib/libt/libtiff/libtiff-vl.spec

+ 56 - 3
lib/libt/libtiff/libtiff-vl.spec

@@ -4,7 +4,7 @@ Summary: A library of functions for manipulating TIFF format image files.
 Summary(ja): TIFF フォーマットの画像ファイルを扱うライブラリ
 Name: libtiff
 Version: 4.0.7
-Release: 1%{_dist_release}
+Release: 2%{_dist_release}
 License: distributable
 Group: System Environment/Libraries
 Source0: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
@@ -24,6 +24,24 @@ Vendor: Project Vine
 Distribution: Vine Linux
 Packager: daisuke, iwamoto
 
+Patch0: libtiff-am-version.patch
+Patch1: libtiff-make-check.patch
+Patch2: libtiff-hylafax-fix.patch
+Patch3: libtiff-CVE-2016-10266.patch
+Patch4: libtiff-CVE-2016-10267.patch
+Patch5: libtiff-CVE-2016-10268.patch
+Patch6: libtiff-CVE-2016-10269.patch
+Patch7: libtiff-CVE-2016-10270.patch
+Patch8: libtiff-CVE-2016-10271_10272.patch
+Patch9: libtiff-CVE-2017-7592.patch
+Patch10: libtiff-CVE-2017-7593.patch
+Patch11: libtiff-CVE-2017-7594.patch
+Patch12: libtiff-CVE-2017-7595.patch
+Patch13: libtiff-CVE-2017-7596_7597_7599_7600.patch
+Patch14: libtiff-CVE-2017-7598.patch
+Patch15: libtiff-CVE-2017-7601.patch
+Patch16: libtiff-CVE-2017-7602.patch
+
 %description
 The libtiff package contains a library of functions for manipulating 
 TIFF (Tagged Image File Format) image format files.  TIFF is a widely
@@ -103,12 +121,42 @@ install the libtiff package.
 %prep
 %setup -q -n tiff-%{version}
 
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+%patch15 -p1
+%patch16 -p1
+
+# Use build system's libtool.m4, not the one in the package.
+rm -f libtool.m4
+
+libtoolize --force  --copy
+aclocal -I . -I m4
+automake --add-missing --copy
+autoconf
+autoheader
+
 %build
-%configure --with-jpeg-lib-dir=%{_libdir} --disable-cxx
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%configure \
+  --enable-ld-version-script \
+  --with-jpeg-lib-dir=%{_libdir} \
+  --disable-cxx
 %__make %{?_smp_mflags}
 %__make clean
 
-
 %install
 rm -fr $RPM_BUILD_ROOT
 %makeinstall
@@ -159,6 +207,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat May  6 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.7-2
+- imported patches from rawhide.
+    - fixed CVE-2017-759{2,3,4,5,6,7,8,9}, CVE-2017-760{0,1,2}
+    - fixed CVE-2016-1026{6,7,8,9}, CVE-2016-1027{0,1,2}
+
 * Sun Mar 19 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.7-1
 - new upstream release.
 - drooped patch1-11: fixed in upstream.