Summary: A library for handling different graphics file formats Name: netpbm Version: 10.35.41 Release: 1%{?dist} License: Assorted licenses, see %{_docdir}/%{name}-%{version}/copyright_summary Group: System Environment/Libraries URL: http://netpbm.sourceforge.net/ # Source0 is prepared by # svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/stable netpbm-%{version} # svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/userguide netpbm-%{version}/userguide # and removing the .svn directories Source0: netpbm-%{version}.tar.bz2 Patch1: netpbm-10.17-time.patch Patch2: netpbm-9.24-strip.patch Patch3: netpbm-10.19-message.patch Patch4: netpbm-10.22-security2.patch Patch6: netpbm-10.23-security.patch Patch7: netpbm-10.24-nodoc.patch Patch8: netpbm-10.28-gcc4.patch Patch9: netpbm-10.27-bmptopnm.patch Patch10: netpbm-10.28-CAN-2005-2471.patch Patch11: netpbm-10.31-xwdfix.patch Patch12: netpbm-10.33-ppmtompeg.patch Patch13: netpbm-10.33-multilib.patch Patch14: netpbm-10.34-pamscale.patch Patch15: netpbm-10.35-ppmquantall.patch Patch16: netpbm-10.35-pbmtog3segfault.patch Patch17: netpbm-10.35-pbmtomacp.patch Patch18: netpbm-10.35-glibc.patch Patch19: netpbm-10.35-gcc43.patch Patch20: netpbm-10.35-rgbtxt.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex BuildRequires: libX11-devel, python %description The netpbm package contains a library of functions which support programs for handling various graphics file formats, including .pbm (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) and others. %package devel Summary: Development tools for programs which will use the netpbm libraries Group: Development/Libraries Requires: netpbm = %{version}-%{release} %description devel The netpbm-devel package contains the header files and static libraries, etc., for developing programs which can handle the various graphics file formats supported by the netpbm libraries. Install netpbm-devel if you want to develop programs for handling the graphics file formats supported by the netpbm libraries. You'll also need to have the netpbm package installed. %package progs Summary: Tools for manipulating graphics files in netpbm supported formats Group: Applications/Multimedia Requires: netpbm = %{version}-%{release} %description progs The netpbm-progs package contains a group of scripts for manipulating the graphics files in formats which are supported by the netpbm libraries. For example, netpbm-progs includes the rasttopnm script, which will convert a Sun rasterfile into a portable anymap. Netpbm-progs contains many other scripts for converting from one graphics file format to another. If you need to use these conversion scripts, you should install netpbm-progs. You'll also need to install the netpbm package. %prep %setup -q %patch1 -p1 -b .time %patch2 -p1 -b .strip %patch3 -p1 -b .message %patch4 -p1 -b .security2 %patch6 -p1 -b .security %patch7 -p1 -b .nodoc %patch8 -p1 -b .gcc4 %patch9 -p1 -b .bmptopnm %patch10 -p1 -b .CAN-2005-2471 %patch11 -p1 -b .xwdfix %patch12 -p1 -b .ppmtompeg %patch13 -p1 -b .multilib %patch14 -p1 -b .pamscale %patch15 -p1 -b .pqall %patch16 -p1 -b .pbmtog3segfault %patch17 -p1 -b .pbmtomacp %patch18 -p1 -b .glibc %patch19 -p1 -b .gcc43 %patch20 -p1 -b .rgbtxt ##mv shhopt/shhopt.h shhopt/pbmshhopt.h ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile %build ./configure < 10.35.41-1 - update to 10.35.41 (fixes pnmnorm, pgmdeshadow, pgmmedian, pgmbentley and pamtosvg, pamtosvg, pbmtext, ppmtoarbtxt and gcc-4.3 build) - package rgb.txt for pnmtopng (#313301) - drop useless xorg-x11-server-utils BR - fix to let it built with gcc 4.3 - sync security patch and fix typos * Wed Nov 2 2007 Jindrich Novy 10.35.32-2 - remove man pages that lack corresponding binaries (#220739) * Thu Oct 18 2007 Jindrich Novy 10.35.32-1 - remove .svn directories from tarball to reduce its size - update fixes rhbz#337181 and likely others * Thu Oct 18 2007 MATSUURA Takanori 10.35.32-0 - update to 10.35.32 from svn tree - create man pages from userguide HTML files * Thu Oct 11 2007 Jindrich Novy 10.35-17 - add xorg-x11-server-utils BR (#313301) * Thu Aug 23 2007 Jindrich Novy 10.35-16 - rebuild for ppc32 - fix open() calls so that netpbm builds with new glibc * Mon Aug 20 2007 Jindrich Novy 10.35-15 - fix .ppmquantall patch (#207799) - merge cmapsize with bmptopnm patch (#224554) * Mon Jul 16 2007 Jindrich Novy 10.35-14 - /usr/share/netpbm is no more unowned (#248300) * Wed Jun 20 2007 Jindrich Novy 10.35-13 - package map files needed by pnmtopalm (#244983) * Thu Mar 29 2007 Jindrich Novy 10.35-12 - merge review fixes (#226191), thanks to Jason Tibbitts * Fri Feb 2 2007 Jindrich Novy 10.35-11 - fix pbmtomacp buffer overflow (#226969) * Mon Jan 29 2007 Jindrich Novy 10.35-10 - bmptopnm won't crash with "BMPlencolormap: internal error!" (#224554) * Thu Dec 28 2006 Jindrich Novy 10.35-9 - pbmtog3 won't segfault on 64bit arches (#220739) * 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 * Mon Oct 2 2006 Jesse Keating 10.35-6 - rebuild for new libpng, again. * Mon Oct 2 2006 Jesse Keating 10.35-5 - rebuild for new libpng * Mon Oct 2 2006 Jindrich Novy 10.35-4 - rebuild (#208866) * Fri Sep 29 2006 Jindrich Novy 10.35-3 - remove OSL 1.1 from security patch (#208587) * Sun Sep 24 2006 Jindrich Novy 10.35-2 - fix ppmquantall (#207799), thanks to Steve Grubb * Mon Sep 18 2006 Jindrich Novy 10.35-1 - update to 10.35 - drop .pnmtopng, .rgbtxt patches, fixed upstream - sync .xwidfix, .ppmtompeg patches - regenerate man pages * Thu Sep 14 2006 Jindrich Novy 10.34-8 - readd pbmtols, author claims it's LGPL (#202519) - add .l1 suffixes to tarball names to reflect legal fixes in the upstream release with the same NVR * Wed Sep 13 2006 Jindrich Novy 10.34-7 - rebuild * Thu Sep 7 2006 Jindrich Novy 10.34-6.fc6 - regenerate man pages so that makewhatis isn't confused (#204991) (upstream makeman script was broken -> now fixed) * Mon Sep 4 2006 Jindrich Novy 10.34-5.fc6 - readd spottopgm, author claims it's GPL (#202519) * Tue Aug 15 2006 Jindrich Novy 10.34-4.fc6 - legal fixes (#202519): - remove pbmtols, spottopgm, jbig and hpcd stuff from source and doc tarballs * Sat Aug 12 2006 Jindrich Novy 10.34-3.fc6 - pamscale won't waste all system resources by usage of uninitialized variables for output image resolution (#199871) - use %%{?dist} * Wed Jul 19 2006 Jindrich Novy 10.34-2 - fix double free corruption in ppmtompeg (#199409), thanks to Milan Zazrivec * Wed Jul 12 2006 Jesse Keating - 10.34-1.1 - rebuild * Thu Jun 22 2006 Jindrich Novy 10.34-1 - update to 10.34 - drop .ppmtogif, .nstring patches - remove some overflow checks from .security patch, it's now resolved in the new upstream version - don't use svgalib by default (don't compile/ship ppmsvgalib) - don't compile svgtopam because of the libxml dependency - add BuildRequires libX11-devel - fix build on x86_64 and ppc64 * Mon Jun 5 2006 Jindrich Novy 10.33-3 - fix multilib conflict (#192735) - remove jbigtopnm man page * Thu Apr 14 2006 Jindrich Novy 10.33-2 - fix image corruption in ppmtogif, thanks to Gilles Detillieux (#188597) - fix nsting.h to let pnmtopng and other utilities using seekable opening mode work on x86_64 (#188594) * Wed Apr 5 2006 Jindrich Novy 10.33-1 - update to 10.33 - drop upstreamed .ppmdepth patch - fix segfault in ppmtompeg when encoding jpeg images (#185970) * Mon Apr 3 2006 Jindrich Novy 10.32-2 - fix broken symlink in upstream: pnmsdepth -> pamdepth (#187667) * Tue Feb 28 2006 Jindrich Novy 10.32-1 - update to 10.32 - drop .msbmp patch, applied upstream - sync the rest of the patches - regenerate man pages * Mon Feb 20 2006 Jindrich Novy 10.31-5 - add missing flex BuildRequires - fix anytopnm to recognize ms-bmp files (#182060) * Tue Feb 14 2006 Jindrich Novy 10.31-4 - make xwdtopnm work on x86_64 (#181001) * Fri Feb 10 2006 Jesse Keating - 10.31-3.1 - bump again for double-long bug on ppc(64) * Fri Feb 10 2006 Jindrich Novy 10.31-3 - fix segfault caused by usage of uninitialized variables while parsing cmdline arguments in pnmtopng (#179645) - add validity check for date/time in pnmtopng - fix unchecked sscanf reads * Tue Feb 07 2006 Jesse Keating - 10.31-2.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Wed Jan 18 2006 Jindrich Novy 10.31-2 - rebuild to have greater version than in FC4 (#177698) * Fri Dec 30 2005 Jindrich Novy 10.31-1 - update to 10.31 - update security patch - regenerate man pages * Fri Dec 09 2005 Jesse Keating - rebuilt * Tue Nov 29 2005 Jindrich Novy 10.30-2 - fix path to rgb.txt to fit modular X (#174128) * Fri Oct 21 2005 Jindrich Novy 10.30-1 - update to 10.30 - update manpath, gcc4 patches - update security patch - fixed length problem in rle_addhist - update partly upstreamed bmptopnm, pnmtopng patches - drop manpath patch - regenerate man pages * Thu Oct 06 2005 Jindrich Novy 10.29-2 - fix segfault in pnmtopng caused by referencing a NULL pointer (#169532) * Tue Aug 16 2005 Jindrich Novy 10.29-1 - update to 10.29 - drop upstreamed .libpm, .pnmtojpeg, .pbmtolj patches - update .CAN-2005-2471 patch * Mon Aug 15 2005 Jindrich Novy 10.28-6 - link libnetpbm.so against -lm (#165980) * Tue Aug 09 2005 Jindrich Novy 10.28-5 - fix CAN-2005-2471, unsafe gs calls from pstopnm (#165355) * Thu Jul 21 2005 Jindrich Novy 10.28-4 - fix buffer overflow in pbmtolj (#163596) * Mon Jun 27 2005 Jindrich Novy 10.28-3 - create symlink pnmtopnm -> pamtopnm, this works now in netpbm-10.28 (#161436) * Tue Jun 21 2005 Jindrich Novy 10.28-2 - fix segfault in pbmtolj caused by unchecked assertions caused by definition of NDEBUG (#160429) - drop hunk from .security patch causing dual inclusion of string.h in pbmtolj.c * Fri Jun 10 2005 Jindrich Novy 10.28-1 - update to 10.28 - regenerated man pages - sync .security, .security2, .badlink, .libpm, .gcc4 patches - drop upstreamed .pngtopnm, .pnmcolormap patches * Tue May 31 2005 Jindrich Novy 10.27-4 - fix segfault in pnmcolormap what makes latex2html/ppmquant unusable (#158665, #139111) * Mon May 16 2005 Jindrich Novy 10.27-3 - fix ppmdither leak caused by bug in security patch (#157757) - drop gcc34 patch * Mon May 09 2005 Jindrich Novy 10.27-2 - fix invalid strcmp condition in bmptopnm, typo in pnmtojpeg (David Constanzo, #157106, #157118) - proper read longs and shorts in libpm.c (David Constanzo, #157110) - fix segfault in bmptopnm caused by freeing an uninitialized pointer * Tue Mar 29 2005 Jindrich Novy 10.27-1 - update to the new 10.27 release - update .security2, .security patch - regenerate man pages - remove jbig, hpcd - remove config_template from /usr - don't create symlink to pamtopnm * Mon Mar 14 2005 Jindrich Novy 10.26.4-3 - fix overflow checking of integers with incompatible endianess causing problems using xwdtopnm (#147790) * Mon Mar 09 2005 Jindrich Novy 10.26.4-2 - add .gcc4 patch to fix some missing declarations of headers, some pointer signedness mismatches, remove xmalloc2 - rebuilt with gcc4 * Thu Mar 03 2005 Jindrich Novy 10.26.4-1 - update to netpbm-10.26.4, remove jbig, hpcd - this version fixes #149924 - regenerate man pages (don't include man pages without binaries - #146863) * Wed Jan 05 2005 Jindrich Novy 10.26-1 - update to netpbm-10.26-1, remove jbig, hpcd - regenerate man pages, remove man pages for non existent binaries - update security patch, additional fixes - drop upstreamed misc patch, merge malloc patch with security patch * Mon Oct 25 2004 Jindrich Novy 10.25-3 - include man pages in troff format, thanks to Michal Jaegerman (#136959) - drop bmpbpp patch, fixed upstream - remove pcdovtoppm, ppmsvgalib, vidtoppm man pages because binaries for them are not present (#136471) * Mon Oct 18 2004 Jindrich Novy 10.25-2 - avoid compile crash when "-msse" is in CFLAGS * Mon Oct 18 2004 Jindrich Novy 10.25-1 - update to latest upstream 10.25 - drop initvar patch - update security, misc patch - add bmpbpp patch to use only appropriate bit depths for BMP (#135675) * Thu Sep 23 2004 Jindrich Novy 10.24-3 - added patch to suppress installation of doc.url to /usr/bin #133346 * Wed Aug 18 2004 Jindrich Novy 10.24-2 - added patch to fix compile crash for 64bit machines - various hacks related to .security patch * Mon Aug 16 2004 Jindrich Novy 10.24-1 - updated to 10.24 - updated docs * Thu Aug 05 2004 Jindrich Novy 10.23-2 - added pngtopnm patch - added malloc patch * Tue Aug 03 2004 Jindrich Novy 10.23-1 - updated to netpbm-10.23 upsteam (and removed jbig, hpcd) - $TMPDIR patch removed, obsolete - updated gcc34 patch - removed nestedfunc patch, already applied in upstream version - updated security patch to conform to 10.23 (mostly in ppmtompeg/frame.c) * Fri Jul 02 2004 Phil Knirsch 10.22-2 - Fixed Zero byte allocation error in bmptopnm (#123169) - Honour the $TMPDIR in ppmfade (#117247) - Fixed nested function bug (#117377) - Fixed several uninitialized variables (#117377) * Mon Jun 28 2004 Phil Knirsch 10.22-1 - Update to latest upstream version 10.22 (also for docs). - Removed jbig and hdcp code from tarball. * Sat Jun 19 2004 Alan Cox - merged fix for pnmrotate crash freeing wrong number of rows * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 30 2004 Harald Hoyer - 10.19-7 - fixed compilation with gcc34 * Tue Mar 02 2004 Elliot Lee - rebuilt * Tue Feb 17 2004 Phil Knirsch 10.19-6 - Fixed problem in pnmquant with GetOptions() and args/ARGV (#115788). * Fri Feb 13 2004 Elliot Lee 10.19-5 - rebuilt * Tue Feb 10 2004 Phil Knirsch 10.19-4 - Fixed several tmp vulnerabilities in scripts and apps. Based on Debian security fix for netpbm-9.24. * Mon Feb 09 2004 Phil Knirsch 10.19-3 - Included doc tarball with manpages (#114755). - Fixed small manpage incorrectness (#84922). - Fixed message from giftopnm (#114756). * Fri Jan 30 2004 Phil Knirsch 10.19-2 - No need anymore to fix ppmfade and ppmshade. * Thu Jan 29 2004 Phil Knirsch 10.19-1 - Major update to latest upstream version 10.19. * Wed Jun 04 2003 Elliot Lee - rebuilt * Fri Feb 28 2003 Phil Knirsch 9.24-11 - Updated Alan's patch. * Wed Feb 19 2003 Phil Knirsch 9.24-10 - Added big security patch by Alan Cox. * Wed Jan 22 2003 Tim Powers 9.24-9 - rebuilt * Thu Dec 19 2002 Phil Knirsch 9.24-8 - Removed print filters again as they are too dangerous. * Mon Dec 16 2002 Elliot Lee 9.24-7 - Merge in hammer changes, rebuild * Sun Sep 08 2002 Arjan van de Ven - fix for x86-64 * Fri Jun 21 2002 Tim Powers - automated rebuild * Wed Jun 19 2002 Phil Knirsch 9.24-5 - Don't forcibly strip binaries * Thu May 23 2002 Tim Powers - automated rebuild * Tue Apr 09 2002 Phil Knirsch 9.24-3 - Fixed a possible gcc compiler problem for inline struct parameters (#62181). - Added missing .map files to progs files selection (#61625). * Tue Apr 02 2002 Phil Knirsch 9.24-2 - Fixed stupid dangling symlink problem (#62478) * Tue Mar 12 2002 Phil Knirsch 9.24-1 - Updated to netpbm version 9.24 - Hacked around a couple of library problems. * Tue Nov 06 2001 Phil Knirsch - Updated to netpbm version 9.20 * Fri Jun 22 2001 Philipp Knirsch - Updated to netpbm version 9.14 - Removed pnmtotiff resize patch as it is now part of the original package - Removed pstopnm csh fix as it is now part of the original package - Removed asciitopgm memcpy fix as it is now part of the original package - Removed manpages patch as it is now part of the original package * Mon Feb 12 2001 Philipp Knirsch - Fixed bugzilla bug #26767 where the new glibc time and sys/time fixes needed to be done. * Fri Feb 9 2001 Crutcher Dunnavant - switched filters to printconf filters * Wed Jan 24 2001 Philipp Knirsch - Fixed bugzilla bug #21644 where few manpages had a small error. * Tue Dec 19 2000 Philipp Knirsch - Fixed bugzilla bug #19487 where asciitopgm dumped core on Alpha. Actually dumped core everywhere * Tue Dec 19 2000 Philipp Knirsch - update to 9.9 - Due to patent infringement problems removed the jbig support from the tarball (pnm/jbig + Makefile changes) and created a new tarball * Wed Oct 25 2000 Nalin Dahyabhai - include shared libraries missing from previous build * Tue Oct 24 2000 Nalin Dahyabhai - update to 9.8 - make sure shhopt.h is included in the -devel package (#19672) - rename shhopt.h to pbmshhopt.h because it's not the same as the normal shhopt.h that other things (like util-linux) expect * Wed Aug 9 2000 Crutcher Dunnavant - added a png-to-pnm.fpi filter * Wed Aug 2 2000 Matt Wilson - rebuilt against new libpng * Mon Jul 17 2000 Nalin Dahyabhai - move netpbm-progs to the Applications/Multimedia group - reintroduce patches from the old libgr package * Wed Jul 12 2000 Prospector - automatic rebuild * Sat Jul 1 2000 Nalin Dahyabhai - update to 9.5 * Tue Jun 27 2000 Nalin Dahyabhai - update to 9.4 * Sat Jun 3 2000 Nalin Dahyabhai - switch back to the netpbm tree, which is maintained again * Mon Feb 14 2000 Nalin Dahyabhai - make sure all man pages are included (#9328) - fix pstopnm bomb when xres == yres (#9329) - add libjpeg and libz because libtiff now needs them * Wed Feb 02 2000 Nalin Dahyabhai - added/updated TIFF compression patch from jik@kamens.brookline.ma.us (#8826) * Mon Dec 06 1999 Michael K. Johnson - added TIFF resolution patch from jik@kamens.brookline.ma.us (#7589) * Mon Sep 20 1999 Michael K. Johnson - added section 5 man pages * Fri Jul 30 1999 Bill Nottingham - fix tiff-to-pnm.fpi (#4267) * Thu Jul 29 1999 Bill Nottingham - add a pile of foo-to-bar.fpi filters (#4251) * Mon Mar 23 1999 Michael Johnson - removed old png.h header file that was causing png utils to die - build png in build instead of install section... * Mon Mar 22 1999 Bill Nottingham - patch for 24-bit .BMP files (from sam@campbellsci.co.uk) * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 15) * Wed Jan 06 1999 Cristian Gafton - clean up the spec file - build for glibc 2.1 - patch to fix pktopbm * Wed Jun 10 1998 Prospector System - translations modified for de * Wed Jun 10 1998 Jeff Johnson - glibc2 defines random in (pbm/pbmplus.h problem #693) * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Thu May 07 1998 Cristian Gafton - cleaned up the spec file a little bit - validated mike's changes :-) * Wed May 6 1998 Michael Maher - added pnm-to-ps.fpi that was missing from previous packages * Thu Apr 30 1998 Cristian Gafton - altered install so that the package installs now even if a previous version was not installed on the system * Thu Apr 16 1998 Erik Troan - built against libpng 1.0 * Thu Nov 06 1997 Donnie Barnes - changed copyright from "distributable" to "freeware" - added some missing scripts that existed in netpbm - added some binaries that weren't getting built - added patch to build tiff manipulation progs (requires libtiff) * Wed Oct 15 1997 Donnie Barnes - obsoletes netpbm now * Tue Oct 14 1997 Erik Troan - mucked config.guess and Make.Rules to build on Alpha/Linux * Tue Oct 07 1997 Donnie Barnes - updated to 2.0.13 - dropped libjpeg and libtiff (those should come from home sources) - removed glibc patch (new version appears to have it!) - added i686 as a valid arch type to config.guess * Thu Jul 10 1997 Erik Troan - built against glibc