diff --git a/netpbm-10.23-security.patch b/netpbm-10.23-security.patch index 0f6e7b7..e3413a0 100644 --- a/netpbm-10.23-security.patch +++ b/netpbm-10.23-security.patch @@ -1388,13 +1388,14 @@ } --- netpbm-10.34/lib/pm.h.security 2006-05-19 22:39:07.000000000 +0200 +++ netpbm-10.34/lib/pm.h 2006-06-22 12:45:18.000000000 +0200 -@@ -340,4 +340,10 @@ +@@ -340,4 +340,11 @@ #endif +void *malloc2(int, int); +void *malloc3(int, int, int); -+void overflow2(int, int); ++#define overflow2(a,b) __overflow2(a,b) ++void __overflow2(int, int); +void overflow3(int, int, int); +void overflow_add(int, int); + @@ -1449,7 +1450,7 @@ + * Maths wrapping + */ + -+void overflow2(int a, int b) ++void __overflow2(int a, int b) +{ + if(a < 0 || b < 0) + pm_error("object too large"); @@ -1763,7 +1764,7 @@ */ /* * rle.h - Global declarations for Utah Raster Toolkit RLE programs. -@@ -166,6 +169,16 @@ +@@ -166,6 +169,17 @@ */ extern rle_hdr rle_dflt_hdr; @@ -1772,7 +1773,8 @@ + */ + +extern void overflow_add(int, int); -+extern void overflow2(int, int); ++#define overflow2(a,b) __overflow2(a,b) ++extern void __overflow2(int, int); +extern void overflow3(int, int, int); +extern void *malloc2(int, int); +extern void *malloc3(int, int, int); diff --git a/netpbm.spec b/netpbm.spec index 1fd72b0..f5be9b9 100644 --- a/netpbm.spec +++ b/netpbm.spec @@ -1,7 +1,7 @@ Summary: A library for handling different graphics file formats. Name: netpbm Version: 10.35 -Release: 7%{?dist} +Release: 8%{?dist} License: freeware Group: System Environment/Libraries URL: http://netpbm.sourceforge.net/ @@ -22,7 +22,7 @@ Patch12: netpbm-10.33-ppmtompeg.patch Patch13: netpbm-10.33-multilib.patch Patch14: netpbm-10.34-pamscale.patch Patch15: netpbm-10.35-ppmquantall.patch -Buildroot: %{_tmppath}/%{name}-root +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, perl, flex BuildRequires: libX11-devel Obsoletes: libgr @@ -142,11 +142,14 @@ ln -sf libnetpbm.so.10 $RPM_BUILD_ROOT%{_libdir}/libnetpbm.so mkdir -p $RPM_BUILD_ROOT%{_mandir} tar jxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir} -# Don't ship man packages for non-existent binaries -for i in hpcdtoppm.1 pcdovtoppm.1 pnmtojbig.1 \ - ppmsvgalib.1 vidtoppm.1 picttoppm.1 jbigtopnm.1; do - rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i} +# Don't ship man pages for non-existent binaries and bogus ones +for i in hpcdtoppm pcdovtoppm pnmtojbig \ + ppmsvgalib vidtoppm picttoppm jbigtopnm \ + directory error extendedopacity \ + pam pbm pgm pnm ppm; do + rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i}.1 done +rm -f $RPM_BUILD_ROOT%{_mandir}/man5/extendedopacity.5 mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir} rm -rf $RPM_BUILD_ROOT/usr/README @@ -158,7 +161,6 @@ rm -rf $RPM_BUILD_ROOT/usr/pkginfo rm -rf $RPM_BUILD_ROOT/usr/config_template - %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT @@ -185,6 +187,11 @@ rm -rf $RPM_BUILD_ROOT/usr/config_template %{_mandir}/man5/* %changelog +* Tue Dec 19 2006 Jindrich Novy 10.35-8 +- remove bogus man pages (#220112, #220113) +- overflow2() no more conflicts with libgd.so (#216116) +- fix BuildRoot + * Thu Oct 12 2006 Jindrich Novy 10.35-7 - remove note about OSL 1 licensing from COPYRIGHT.PATENT file