cvsdist 3015089
Summary: A library for handling different graphics file formats.
cvsdist 3015089
Name: netpbm
cvsdist c77bcbf
Version: 10.19
cvsdist 97df28d
Release: 9
cvsdist 44d5c30
License: freeware
cvsdist 3015089
Group: System Environment/Libraries
cvsdist c77bcbf
Source0: netpbm-10.19.tar.bz2
cvsdist e822a04
Source1: netpbmdoc-10.19.tar.bz2
cvsdist c77bcbf
Patch1: netpbm-10.17-time.patch
cvsdist c77bcbf
Patch2: netpbm-9.24-strip.patch
cvsdist c77bcbf
Patch3: netpbm-10.19-security.patch
cvsdist c77bcbf
Patch4: netpbm-10.18-manpath.patch
cvsdist e822a04
Patch5: netpbm-10.19-message.patch
cvsdist e822a04
Patch6: netpbm-10.19-security2.patch
cvsdist e822a04
Patch7: netpbm-10.19-getopt.patch
cvsdist 9c50656
Patch8: netpbm-10.19-gcc34.patch
cvsdist 97df28d
Patch9: netpbm-10.19-malloc.patch
cvsdist 3015089
Buildroot: %{_tmppath}/%{name}-root
cvsdist 76e60da
BuildPrereq: libjpeg-devel, libpng-devel, libtiff-devel, perl
cvsdist 3015089
Obsoletes: libgr
cvsdist 3015089
cvsdist 3015089
%description
cvsdist 908e709
The netpbm package contains a library of functions which support
cvsdist 3015089
programs for handling various graphics file formats, including .pbm
cvsdist 3015089
(portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
cvsdist 908e709
.ppm (portable pixmaps) and others.
cvsdist 3015089
cvsdist 3015089
%package devel
cvsdist 3015089
Summary: Development tools for programs which will use the netpbm libraries.
cvsdist 3015089
Group: Development/Libraries
cvsdist 76e60da
Requires: netpbm = %{version}-%{release}
cvsdist 3015089
Obsoletes: libgr-devel
cvsdist 3015089
cvsdist 3015089
%description devel
cvsdist 908e709
The netpbm-devel package contains the header files and static libraries,
cvsdist 908e709
etc., for developing programs which can handle the various graphics file
cvsdist 908e709
formats supported by the netpbm libraries.
cvsdist 908e709
cvsdist 908e709
Install netpbm-devel if you want to develop programs for handling the
cvsdist 908e709
graphics file formats supported by the netpbm libraries.  You'll also need
cvsdist 908e709
to have the netpbm package installed.
cvsdist 3015089
cvsdist 3015089
%package progs
cvsdist 3015089
Summary: Tools for manipulating graphics files in netpbm supported formats.
cvsdist 3015089
Group: Applications/Multimedia
cvsdist 76e60da
Requires: netpbm = %{version}-%{release}
cvsdist 3015089
Obsoletes: libgr-progs
cvsdist 3015089
cvsdist 3015089
%description progs
cvsdist 908e709
The netpbm-progs package contains a group of scripts for manipulating the
cvsdist 908e709
graphics files in formats which are supported by the netpbm libraries.  For
cvsdist 908e709
example, netpbm-progs includes the rasttopnm script, which will convert a
cvsdist 908e709
Sun rasterfile into a portable anymap.  Netpbm-progs contains many other
cvsdist 908e709
scripts for converting from one graphics file format to another.
cvsdist 908e709
cvsdist 908e709
If you need to use these conversion scripts, you should install
cvsdist 908e709
netpbm-progs.  You'll also need to install the netpbm package.
cvsdist 3015089
cvsdist 3015089
%prep
cvsdist 3015089
%setup -q
cvsdist 908e709
%patch1 -p1 -b .time
cvsdist c77bcbf
%patch2 -p1 -b .strip
cvsdist c77bcbf
%patch3 -p1 -b .security
cvsdist c77bcbf
%patch4 -p1 -b .manpath
cvsdist e822a04
%patch5 -p1 -b .message
cvsdist e822a04
%patch6 -p1 -b .security2
cvsdist e822a04
%patch7 -p1 -b .getopt
cvsdist 9c50656
%patch8 -p1 -b .gcc34
cvsdist 97df28d
%patch9 -p1 -b .malloc
cvsdist be3881c
cvsdist c77bcbf
##mv shhopt/shhopt.h shhopt/pbmshhopt.h
cvsdist c77bcbf
##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
cvsdist 3015089
cvsdist 3015089
%build
cvsdist a2e112b
./configure <
cvsdist 908e709
cvsdist 908e709
cvsdist 908e709
cvsdist 908e709
cvsdist c77bcbf
cvsdist c77bcbf
cvsdist c77bcbf
cvsdist c77bcbf
cvsdist c77bcbf
cvsdist c77bcbf
cvsdist a2e112b
cvsdist 908e709
cvsdist 908e709
cvsdist 908e709
cvsdist 908e709
cvsdist a2e112b
EOF
cvsdist a2e112b
cvsdist 76e60da
TOP=`pwd`
cvsdist 3015089
make \
cvsdist 3015089
	CC=%{__cc} \
cvsdist 3015089
	CFLAGS="$RPM_OPT_FLAGS -fPIC" \
cvsdist 76e60da
	LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
cvsdist 3015089
	JPEGINC_DIR=%{_includedir} \
cvsdist 3015089
	PNGINC_DIR=%{_includedir} \
cvsdist 3015089
	TIFFINC_DIR=%{_includedir} \
cvsdist 3015089
	JPEGLIB_DIR=%{_libdir} \
cvsdist 3015089
	PNGLIB_DIR=%{_libdir} \
cvsdist 3015089
	TIFFLIB_DIR=%{_libdir}
cvsdist 3015089
cvsdist 3015089
%install
cvsdist 3015089
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist be3881c
cvsdist c77bcbf
mkdir -p $RPM_BUILD_ROOT
cvsdist c77bcbf
make package pkgdir=$RPM_BUILD_ROOT/usr
cvsdist 908e709
cvsdist c77bcbf
# Ugly hack to have libs in correct dir on 64bit archs.
cvsdist c77bcbf
mkdir -p $RPM_BUILD_ROOT%{_libdir}
cvsdist c77bcbf
if [ "%{_libdir}" != "/usr/lib" ]; then
cvsdist c77bcbf
  mv $RPM_BUILD_ROOT/usr/lib/lib* $RPM_BUILD_ROOT%{_libdir}
cvsdist c77bcbf
fi
cvsdist c77bcbf
cvsdist c77bcbf
cp -af lib/libnetpbm.a $RPM_BUILD_ROOT%{_libdir}/libnetpbm.a
cvsdist c77bcbf
ln -sf libnetpbm.so.10 $RPM_BUILD_ROOT%{_libdir}/libnetpbm.so
cvsdist c77bcbf
cvsdist e822a04
mkdir -p $RPM_BUILD_ROOT%{_mandir}
cvsdist e822a04
tar jxvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}
cvsdist e822a04
cvsdist c77bcbf
mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir}
cvsdist c77bcbf
rm -rf $RPM_BUILD_ROOT/usr/README
cvsdist c77bcbf
rm -rf $RPM_BUILD_ROOT/usr/VERSION
cvsdist c77bcbf
rm -rf $RPM_BUILD_ROOT/usr/link
cvsdist c77bcbf
rm -rf $RPM_BUILD_ROOT/usr/misc
cvsdist c77bcbf
rm -rf $RPM_BUILD_ROOT/usr/man
cvsdist c77bcbf
rm -rf $RPM_BUILD_ROOT/usr/pkginfo
cvsdist 3015089
cvsdist 3015089
%clean
cvsdist 3015089
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist 3015089
cvsdist 3015089
%post -p /sbin/ldconfig
cvsdist 3015089
cvsdist 3015089
%postun -p /sbin/ldconfig
cvsdist 3015089
cvsdist 3015089
%files
cvsdist 3015089
%defattr(-,root,root)
cvsdist c77bcbf
%doc doc/COPYRIGHT.PATENT doc/GPL_LICENSE.txt doc/HISTORY README
cvsdist 76e60da
%{_libdir}/lib*.so.*
cvsdist 3015089
cvsdist 3015089
%files devel
cvsdist 3015089
%defattr(-,root,root)
cvsdist 3015089
%{_includedir}/*.h
cvsdist 3015089
%{_libdir}/lib*.a
cvsdist 3015089
%{_libdir}/lib*.so
cvsdist 3015089
%{_mandir}/man3/*
cvsdist 3015089
cvsdist 3015089
%files progs
cvsdist 3015089
%defattr(-,root,root)
cvsdist 3015089
%{_bindir}/*
cvsdist d77b60b
%{_libdir}/*.map
cvsdist 3015089
%{_mandir}/man1/*
cvsdist 3015089
%{_mandir}/man5/*
cvsdist 3015089
cvsdist 3015089
%changelog
cvsdist 97df28d
* Sat Jun 19 2004 Alan Cox <alan@redhat.com>
cvsdist 97df28d
- merged fix for pnmrotate crash freeing wrong number of rows
cvsdist 97df28d
cvsdist 8d49d75
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 8d49d75
- rebuilt
cvsdist 8d49d75
cvsdist 9c50656
* Tue Mar 30 2004 Harald Hoyer <harald@redhat.com> - 10.19-7
cvsdist 9c50656
- fixed compilation with gcc34
cvsdist 9c50656
cvsdist e822a04
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e822a04
- rebuilt
cvsdist e822a04
cvsdist e822a04
* Tue Feb 17 2004 Phil Knirsch <pknirsch@redhat.com> 10.19-6
cvsdist e822a04
- Fixed problem in pnmquant with GetOptions() and args/ARGV (#115788).
cvsdist e822a04
cvsdist e822a04
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 10.19-5
cvsdist e822a04
- rebuilt
cvsdist e822a04
cvsdist e822a04
* Tue Feb 10 2004 Phil Knirsch <pknirsch@redhat.com> 10.19-4
cvsdist e822a04
- Fixed several tmp vulnerabilities in scripts and apps. Based on Debian
cvsdist e822a04
  security fix for netpbm-9.24.
cvsdist e822a04
cvsdist e822a04
* Mon Feb 09 2004 Phil Knirsch <pknirsch@redhat.com> 10.19-3
cvsdist e822a04
- Included doc tarball with manpages (#114755).
cvsdist e822a04
- Fixed small manpage incorrectness (#84922).
cvsdist e822a04
- Fixed message from giftopnm (#114756).
cvsdist e822a04
cvsdist c77bcbf
* Fri Jan 30 2004 Phil Knirsch <pknirsch@redhat.com> 10.19-2
cvsdist c77bcbf
- No need anymore to fix ppmfade and ppmshade.
cvsdist c77bcbf
cvsdist c77bcbf
* Thu Jan 29 2004 Phil Knirsch <pknirsch@redhat.com> 10.19-1
cvsdist c77bcbf
- Major update to latest upstream version 10.19.
cvsdist dce3fc1
cvsdist 87e3237
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 87e3237
- rebuilt
cvsdist 87e3237
cvsdist 87e3237
* Fri Feb 28 2003 Phil Knirsch <pknirsch@redhat.com> 9.24-11
cvsdist 87e3237
- Updated Alan's patch.
cvsdist 84f5adf
cvsdist 44d5c30
* Wed Feb 19 2003 Phil Knirsch <pknirsch@redhat.com> 9.24-10
cvsdist 44d5c30
- Added big security patch by Alan Cox.
cvsdist 44d5c30
cvsdist 44d5c30
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 9.24-9
cvsdist 44d5c30
- rebuilt
cvsdist 44d5c30
cvsdist 44d5c30
* Thu Dec 19 2002 Phil Knirsch <pknirsch@redhat.com> 9.24-8
cvsdist 44d5c30
- Removed print filters again as they are too dangerous.
cvsdist 44d5c30
cvsdist 44d5c30
* Mon Dec 16 2002 Elliot Lee <sopwith@redhat.com> 9.24-7
cvsdist 44d5c30
- Merge in hammer changes, rebuild
cvsdist 44d5c30
cvsdist 44d5c30
* Sun Sep 08 2002 Arjan van de Ven <arjanv@redhat.com>
cvsdist 44d5c30
- fix for x86-64
cvsdist 44d5c30
cvsdist 38e02f2
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 38e02f2
- automated rebuild
cvsdist 38e02f2
cvsdist 6a85a0e
* Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 9.24-5
cvsdist 6a85a0e
- Don't forcibly strip binaries
cvsdist 6a85a0e
cvsdist 6a85a0e
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 6a85a0e
- automated rebuild
cvsdist 6a85a0e
cvsdist d77b60b
* Tue Apr 09 2002 Phil Knirsch <pknirsch@redhat.com> 9.24-3
cvsdist d77b60b
- Fixed a possible gcc compiler problem for inline struct parameters (#62181).
cvsdist d77b60b
- Added missing .map files to progs files selection (#61625).
cvsdist d77b60b
cvsdist d77b60b
* Tue Apr 02 2002 Phil Knirsch <pknirsch@redhat.com> 9.24-2
cvsdist 908e709
- Fixed stupid dangling symlink problem (#62478)
cvsdist 908e709
cvsdist d77b60b
* Tue Mar 12 2002 Phil Knirsch <pknirsch@redhat.com> 9.24-1
cvsdist 908e709
- Updated to netpbm version 9.24
cvsdist 908e709
- Hacked around a couple of library problems.
cvsdist 908e709
cvsdist 908e709
* Tue Nov 06 2001 Phil Knirsch <phil@redhat.de>
cvsdist 908e709
- Updated to netpbm version 9.20
cvsdist 2b923b7
cvsdist a2e112b
* Fri Jun 22 2001 Philipp Knirsch <pknirsch@redhat.de>
cvsdist a2e112b
- Updated to netpbm version 9.14
cvsdist a2e112b
- Removed pnmtotiff resize patch as it is now part of the original package
cvsdist a2e112b
- Removed pstopnm csh fix as it is now part of the original package
cvsdist a2e112b
- Removed asciitopgm memcpy fix as it is now part of the original package
cvsdist a2e112b
- Removed manpages patch as it is now part of the original package
cvsdist a2e112b
cvsdist be3881c
* Mon Feb 12 2001 Philipp Knirsch <pknirsch@redhat.de>
cvsdist be3881c
- Fixed bugzilla bug #26767 where the new glibc time and sys/time fixes needed
cvsdist be3881c
  to be done.
cvsdist be3881c
cvsdist be3881c
* Fri Feb  9 2001 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist be3881c
- switched filters to printconf filters
cvsdist be3881c
cvsdist be3881c
* Wed Jan 24 2001 Philipp Knirsch <pknirsch@redhat.de>
cvsdist be3881c
- Fixed bugzilla bug #21644 where few manpages had a small error.
cvsdist be3881c
cvsdist 76e60da
* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
cvsdist 76e60da
- Fixed bugzilla bug #19487 where asciitopgm dumped core on Alpha. Actually
cvsdist 76e60da
  dumped core everywhere
cvsdist 76e60da
cvsdist 76e60da
* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
cvsdist 76e60da
- update to 9.9
cvsdist 76e60da
- Due to patent infringement problems removed the jbig support from the tarball
cvsdist 76e60da
  (pnm/jbig + Makefile changes) and created a new tarball
cvsdist 76e60da
cvsdist 76e60da
* Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 76e60da
- include shared libraries missing from previous build
cvsdist 76e60da
cvsdist 76e60da
* Tue Oct 24 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 76e60da
- update to 9.8
cvsdist 76e60da
- make sure shhopt.h is included in the -devel package (#19672)
cvsdist 76e60da
- rename shhopt.h to pbmshhopt.h because it's not the same as the normal
cvsdist 76e60da
  shhopt.h that other things (like util-linux) expect
cvsdist 76e60da
cvsdist 3015089
* Wed Aug  9 2000 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist 3015089
- added a png-to-pnm.fpi filter
cvsdist 3015089
cvsdist 3015089
* Wed Aug  2 2000 Matt Wilson <msw@redhat.com>
cvsdist 3015089
- rebuilt against new libpng
cvsdist 3015089
cvsdist 3015089
* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 3015089
- move netpbm-progs to the Applications/Multimedia group
cvsdist 3015089
- reintroduce patches from the old libgr package
cvsdist 3015089
cvsdist 3015089
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 3015089
- automatic rebuild
cvsdist 3015089
cvsdist 3015089
* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 3015089
- update to 9.5
cvsdist 3015089
cvsdist 3015089
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 3015089
- update to 9.4
cvsdist 3015089
cvsdist 3015089
* Sat Jun  3 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 3015089
- switch back to the netpbm tree, which is maintained again
cvsdist 3015089
cvsdist 3015089
* Mon Feb 14 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 3015089
- make sure all man pages are included (#9328)
cvsdist 3015089
- fix pstopnm bomb when xres == yres (#9329)
cvsdist 3015089
- add libjpeg and libz because libtiff now needs them
cvsdist 3015089
cvsdist 3015089
* Wed Feb 02 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 3015089
- added/updated TIFF compression patch from jik@kamens.brookline.ma.us (#8826)
cvsdist 3015089
cvsdist 3015089
* Mon Dec 06 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 3015089
- added TIFF resolution patch from jik@kamens.brookline.ma.us (#7589)
cvsdist 3015089
cvsdist 3015089
* Mon Sep 20 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 3015089
- added section 5 man pages
cvsdist 3015089
cvsdist 3015089
* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
cvsdist 3015089
- fix tiff-to-pnm.fpi (#4267)
cvsdist 3015089
cvsdist 3015089
* Thu Jul 29 1999 Bill Nottingham <notting@redhat.com>
cvsdist 3015089
- add a pile of foo-to-bar.fpi filters (#4251)
cvsdist 3015089
cvsdist 3015089
* Mon Mar 23 1999 Michael Johnson <johnsonm@redhat.com>
cvsdist 3015089
- removed old png.h header file that was causing png utils to die
cvsdist 3015089
- build png in build instead of install section...
cvsdist 3015089
cvsdist 3015089
* Mon Mar 22 1999 Bill Nottingham <notting@redhat.com>
cvsdist 3015089
- patch for 24-bit .BMP files (from sam@campbellsci.co.uk)
cvsdist 3015089
cvsdist 3015089
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 3015089
- auto rebuild in the new build environment (release 15)
cvsdist 3015089
cvsdist 3015089
* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
cvsdist 3015089
- clean up the spec file
cvsdist 3015089
- build for glibc 2.1
cvsdist 3015089
- patch to fix pktopbm
cvsdist 3015089
cvsdist 3015089
* Wed Jun 10 1998 Prospector System <bugs@redhat.com>
cvsdist 3015089
- translations modified for de
cvsdist 3015089
cvsdist 3015089
* Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 3015089
- glibc2 defines random in <stdlib.h> (pbm/pbmplus.h problem #693)
cvsdist 3015089
cvsdist 3015089
* Thu May 07 1998 Prospector System <bugs@redhat.com>
cvsdist 3015089
- translations modified for de, fr, tr
cvsdist 3015089
cvsdist 3015089
* Thu May 07 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 3015089
- cleaned up the spec file a little bit
cvsdist 3015089
- validated mike's changes :-)
cvsdist 3015089
cvsdist 3015089
* Wed May 6 1998 Michael Maher <mike@redhat.com>
cvsdist 3015089
- added pnm-to-ps.fpi that was missing from previous packages
cvsdist 3015089
cvsdist 3015089
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 44d5c30
- altered install so that the package installs now even if a previous
cvsdist 3015089
  version was not installed on the system 
cvsdist 3015089
cvsdist 3015089
* Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
cvsdist 3015089
- built against libpng 1.0
cvsdist 3015089
cvsdist 3015089
* Thu Nov 06 1997 Donnie Barnes <djb@redhat.com>
cvsdist 3015089
- changed copyright from "distributable" to "freeware"
cvsdist 3015089
- added some missing scripts that existed in netpbm
cvsdist 3015089
- added some binaries that weren't getting built
cvsdist 3015089
- added patch to build tiff manipulation progs (requires libtiff)
cvsdist 3015089
cvsdist 3015089
* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
cvsdist 3015089
- obsoletes netpbm now
cvsdist 3015089
cvsdist 3015089
* Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
cvsdist 3015089
- mucked config.guess and Make.Rules to build on Alpha/Linux
cvsdist 3015089
cvsdist 3015089
* Tue Oct 07 1997 Donnie Barnes <djb@redhat.com>
cvsdist 3015089
- updated to 2.0.13
cvsdist 3015089
- dropped libjpeg and libtiff (those should come from home sources)
cvsdist 3015089
- removed glibc patch (new version appears to have it!)
cvsdist 3015089
- added i686 as a valid arch type to config.guess
cvsdist 3015089
cvsdist 3015089
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
cvsdist 3015089
- built against glibc
cvsdist 3015089