- remove bogus man pages (#220112, #220113)

- overflow2() no more conflicts with libgd.so (#216116)
- fix BuildRoot
This commit is contained in:
Jindrich Novy 2006-12-19 13:47:13 +00:00
parent 420785e069
commit c13f014be8
2 changed files with 21 additions and 12 deletions

View File

@ -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.security 2006-05-19 22:39:07.000000000 +0200
+++ netpbm-10.34/lib/pm.h 2006-06-22 12:45:18.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 #endif
+void *malloc2(int, int); +void *malloc2(int, int);
+void *malloc3(int, 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 overflow3(int, int, int);
+void overflow_add(int, int); +void overflow_add(int, int);
+ +
@ -1449,7 +1450,7 @@
+ * Maths wrapping + * Maths wrapping
+ */ + */
+ +
+void overflow2(int a, int b) +void __overflow2(int a, int b)
+{ +{
+ if(a < 0 || b < 0) + if(a < 0 || b < 0)
+ pm_error("object too large"); + pm_error("object too large");
@ -1763,7 +1764,7 @@
*/ */
/* /*
* rle.h - Global declarations for Utah Raster Toolkit RLE programs. * rle.h - Global declarations for Utah Raster Toolkit RLE programs.
@@ -166,6 +169,16 @@ @@ -166,6 +169,17 @@
*/ */
extern rle_hdr rle_dflt_hdr; extern rle_hdr rle_dflt_hdr;
@ -1772,7 +1773,8 @@
+ */ + */
+ +
+extern void overflow_add(int, int); +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 overflow3(int, int, int);
+extern void *malloc2(int, int); +extern void *malloc2(int, int);
+extern void *malloc3(int, int, int); +extern void *malloc3(int, int, int);

View File

@ -1,7 +1,7 @@
Summary: A library for handling different graphics file formats. Summary: A library for handling different graphics file formats.
Name: netpbm Name: netpbm
Version: 10.35 Version: 10.35
Release: 7%{?dist} Release: 8%{?dist}
License: freeware License: freeware
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://netpbm.sourceforge.net/ URL: http://netpbm.sourceforge.net/
@ -22,7 +22,7 @@ Patch12: netpbm-10.33-ppmtompeg.patch
Patch13: netpbm-10.33-multilib.patch Patch13: netpbm-10.33-multilib.patch
Patch14: netpbm-10.34-pamscale.patch Patch14: netpbm-10.34-pamscale.patch
Patch15: netpbm-10.35-ppmquantall.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: libjpeg-devel, libpng-devel, libtiff-devel, perl, flex
BuildRequires: libX11-devel BuildRequires: libX11-devel
Obsoletes: libgr Obsoletes: libgr
@ -142,11 +142,14 @@ ln -sf libnetpbm.so.10 $RPM_BUILD_ROOT%{_libdir}/libnetpbm.so
mkdir -p $RPM_BUILD_ROOT%{_mandir} mkdir -p $RPM_BUILD_ROOT%{_mandir}
tar jxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir} tar jxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}
# Don't ship man packages for non-existent binaries # Don't ship man pages for non-existent binaries and bogus ones
for i in hpcdtoppm.1 pcdovtoppm.1 pnmtojbig.1 \ for i in hpcdtoppm pcdovtoppm pnmtojbig \
ppmsvgalib.1 vidtoppm.1 picttoppm.1 jbigtopnm.1; do ppmsvgalib vidtoppm picttoppm jbigtopnm \
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i} directory error extendedopacity \
pam pbm pgm pnm ppm; do
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i}.1
done done
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/extendedopacity.5
mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir} mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir}
rm -rf $RPM_BUILD_ROOT/usr/README 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 rm -rf $RPM_BUILD_ROOT/usr/config_template
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@ -185,6 +187,11 @@ rm -rf $RPM_BUILD_ROOT/usr/config_template
%{_mandir}/man5/* %{_mandir}/man5/*
%changelog %changelog
* Tue Dec 19 2006 Jindrich Novy <jnovy@redhat.com> 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 <jnovy@redhat.com> 10.35-7 * Thu Oct 12 2006 Jindrich Novy <jnovy@redhat.com> 10.35-7
- remove note about OSL 1 licensing from COPYRIGHT.PATENT file - remove note about OSL 1 licensing from COPYRIGHT.PATENT file