2004-09-09 09:11:11 +00:00
|
|
|
Summary: A library for handling different graphics file formats.
|
|
|
|
Name: netpbm
|
2004-09-09 09:12:38 +00:00
|
|
|
Version: 9.24
|
2004-09-09 09:12:02 +00:00
|
|
|
Release: 2
|
2004-09-09 09:11:11 +00:00
|
|
|
Copyright: freeware
|
|
|
|
Group: System Environment/Libraries
|
2004-09-09 09:12:38 +00:00
|
|
|
Source0: netpbm-9.24-nojbig.tar.bz2
|
2004-09-09 09:11:48 +00:00
|
|
|
Source1: mf50-netpbm_filters
|
|
|
|
Source2: test-images.tar.gz
|
2004-09-09 09:11:17 +00:00
|
|
|
Patch0: netpbm-9.8-install.patch
|
2004-09-09 09:12:38 +00:00
|
|
|
Patch1: netpbm-9.9-time.patch
|
2004-09-09 09:11:11 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-root
|
2004-09-09 09:11:17 +00:00
|
|
|
BuildPrereq: libjpeg-devel, libpng-devel, libtiff-devel, perl
|
2004-09-09 09:11:11 +00:00
|
|
|
Obsoletes: libgr
|
|
|
|
|
|
|
|
%description
|
2004-09-09 09:12:38 +00:00
|
|
|
The netpbm package contains a library of functions which support
|
2004-09-09 09:11:11 +00:00
|
|
|
programs for handling various graphics file formats, including .pbm
|
|
|
|
(portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
|
2004-09-09 09:12:38 +00:00
|
|
|
.ppm (portable pixmaps) and others.
|
2004-09-09 09:11:11 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development tools for programs which will use the netpbm libraries.
|
|
|
|
Group: Development/Libraries
|
2004-09-09 09:11:17 +00:00
|
|
|
Requires: netpbm = %{version}-%{release}
|
2004-09-09 09:11:11 +00:00
|
|
|
Obsoletes: libgr-devel
|
|
|
|
|
|
|
|
%description devel
|
2004-09-09 09:12:38 +00:00
|
|
|
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.
|
2004-09-09 09:11:11 +00:00
|
|
|
|
|
|
|
%package progs
|
|
|
|
Summary: Tools for manipulating graphics files in netpbm supported formats.
|
|
|
|
Group: Applications/Multimedia
|
2004-09-09 09:11:17 +00:00
|
|
|
Requires: netpbm = %{version}-%{release}
|
2004-09-09 09:11:11 +00:00
|
|
|
Obsoletes: libgr-progs
|
|
|
|
|
|
|
|
%description progs
|
2004-09-09 09:12:38 +00:00
|
|
|
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.
|
2004-09-09 09:11:11 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .install
|
2004-09-09 09:12:38 +00:00
|
|
|
%patch1 -p1 -b .time
|
2004-09-09 09:11:48 +00:00
|
|
|
|
2004-09-09 09:11:17 +00:00
|
|
|
mv shhopt/shhopt.h shhopt/pbmshhopt.h
|
2004-09-09 09:12:38 +00:00
|
|
|
perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
|
2004-09-09 09:11:11 +00:00
|
|
|
|
2004-09-09 09:11:48 +00:00
|
|
|
tar xzf %{SOURCE2}
|
|
|
|
|
2004-09-09 09:11:11 +00:00
|
|
|
%build
|
2004-09-09 09:11:56 +00:00
|
|
|
./configure <<EOF
|
2004-09-09 09:12:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-09-09 09:11:56 +00:00
|
|
|
/usr
|
|
|
|
|
2004-09-09 09:12:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-09-09 09:11:56 +00:00
|
|
|
EOF
|
|
|
|
|
2004-09-09 09:11:17 +00:00
|
|
|
TOP=`pwd`
|
2004-09-09 09:11:11 +00:00
|
|
|
make \
|
|
|
|
CC=%{__cc} \
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
2004-09-09 09:11:17 +00:00
|
|
|
LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
|
2004-09-09 09:11:11 +00:00
|
|
|
JPEGINC_DIR=%{_includedir} \
|
|
|
|
PNGINC_DIR=%{_includedir} \
|
|
|
|
TIFFINC_DIR=%{_includedir} \
|
|
|
|
JPEGLIB_DIR=%{_libdir} \
|
|
|
|
PNGLIB_DIR=%{_libdir} \
|
|
|
|
TIFFLIB_DIR=%{_libdir}
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
2004-09-09 09:11:48 +00:00
|
|
|
|
2004-09-09 09:12:38 +00:00
|
|
|
# Nasty hack to work around a useless ldconfig script
|
|
|
|
rm -f buildtools/try_ldconfig
|
|
|
|
ln -sf /bin/true buildtools/try_ldconfig
|
|
|
|
|
2004-09-09 09:11:48 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/printconf/mf_rules
|
|
|
|
cp %{SOURCE1} $RPM_BUILD_ROOT/usr/share/printconf/mf_rules/
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/printconf/tests
|
2004-09-09 09:12:38 +00:00
|
|
|
cp test-images/* $RPM_BUILD_ROOT/usr/share/printconf/tests/
|
2004-09-09 09:11:48 +00:00
|
|
|
|
2004-09-09 09:11:11 +00:00
|
|
|
PATH="`pwd`:${PATH}" make install \
|
|
|
|
JPEGINC_DIR=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
PNGINC_DIR=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
TIFFINC_DIR=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
JPEGLIB_DIR=%{_libdir} \
|
|
|
|
PNGLIB_DIR=%{_libdir} \
|
|
|
|
TIFFLIB_DIR=%{_libdir} \
|
|
|
|
INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix} \
|
|
|
|
INSTALLBINARIES=$RPM_BUILD_ROOT%{_bindir} \
|
|
|
|
INSTALLHDRS=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
INSTALLLIBS=$RPM_BUILD_ROOT%{_libdir} \
|
|
|
|
INSTALLMANUALS1=$RPM_BUILD_ROOT%{_mandir}/man1 \
|
|
|
|
INSTALLMANUALS3=$RPM_BUILD_ROOT%{_mandir}/man3 \
|
|
|
|
INSTALLMANUALS5=$RPM_BUILD_ROOT%{_mandir}/man5
|
|
|
|
|
|
|
|
# Install header files.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_includedir}
|
2004-09-09 09:11:17 +00:00
|
|
|
install -m644 pbm/pbm.h $RPM_BUILD_ROOT%{_includedir}/
|
2004-09-09 09:12:38 +00:00
|
|
|
#install -m644 pbmplus.h $RPM_BUILD_ROOT%{_includedir}/
|
2004-09-09 09:11:17 +00:00
|
|
|
install -m644 pgm/pgm.h $RPM_BUILD_ROOT%{_includedir}/
|
|
|
|
install -m644 pnm/pnm.h $RPM_BUILD_ROOT%{_includedir}/
|
|
|
|
install -m644 ppm/ppm.h $RPM_BUILD_ROOT%{_includedir}/
|
|
|
|
install -m644 shhopt/pbmshhopt.h $RPM_BUILD_ROOT%{_includedir}/
|
2004-09-09 09:11:11 +00:00
|
|
|
|
|
|
|
# Install the static-only librle.a
|
2004-09-09 09:11:17 +00:00
|
|
|
install -m644 urt/{rle,rle_config}.h $RPM_BUILD_ROOT%{_includedir}/
|
2004-09-09 09:11:11 +00:00
|
|
|
install -m644 urt/librle.a $RPM_BUILD_ROOT%{_libdir}/
|
|
|
|
|
|
|
|
# Fixup symlinks.
|
|
|
|
ln -sf gemtopnm $RPM_BUILD_ROOT%{_bindir}/gemtopbm
|
|
|
|
ln -sf pnmtoplainpnm $RPM_BUILD_ROOT%{_bindir}/pnmnoraw
|
2004-09-09 09:12:38 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libpbm.so
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libpgm.so
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libpnm.so
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libppm.so
|
|
|
|
ln -sf libpbm.so.9 $RPM_BUILD_ROOT%{_libdir}/libpbm.so
|
|
|
|
ln -sf libpgm.so.9 $RPM_BUILD_ROOT%{_libdir}/libpgm.so
|
|
|
|
ln -sf libpnm.so.9 $RPM_BUILD_ROOT%{_libdir}/libpnm.so
|
|
|
|
ln -sf libppm.so.9 $RPM_BUILD_ROOT%{_libdir}/libppm.so
|
2004-09-09 09:11:11 +00:00
|
|
|
|
|
|
|
# Fixup perl paths in the two scripts that require it.
|
|
|
|
perl -pi -e 's^/bin/perl^%{__perl}^' \
|
|
|
|
$RPM_BUILD_ROOT%{_bindir}/{ppmfade,ppmshadow}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 09:12:38 +00:00
|
|
|
%doc COPYRIGHT.PATENT GPL_LICENSE.txt HISTORY README
|
2004-09-09 09:11:17 +00:00
|
|
|
%{_libdir}/lib*.so.*
|
2004-09-09 09:11:11 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%files progs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
2004-09-09 09:11:48 +00:00
|
|
|
/usr/share/printconf/mf_rules/*
|
|
|
|
/usr/share/printconf/tests/*
|
2004-09-09 09:11:11 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 09:12:38 +00:00
|
|
|
* Tue Apr 02 2002 Phil Knirsch <pknirsch@redhat.com>
|
|
|
|
- Fixed stupid dangling symlink problem (#62478)
|
|
|
|
|
|
|
|
* Tue Mar 12 2002 Phil Knirsch <pknirsch@redhat.com>
|
|
|
|
- Updated to netpbm version 9.24
|
|
|
|
- Hacked around a couple of library problems.
|
|
|
|
|
|
|
|
* Tue Nov 06 2001 Phil Knirsch <phil@redhat.de>
|
|
|
|
- Updated to netpbm version 9.20
|
2004-09-09 09:12:02 +00:00
|
|
|
|
2004-09-09 09:11:56 +00:00
|
|
|
* Fri Jun 22 2001 Philipp Knirsch <pknirsch@redhat.de>
|
|
|
|
- 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
|
|
|
|
|
2004-09-09 09:11:48 +00:00
|
|
|
* Mon Feb 12 2001 Philipp Knirsch <pknirsch@redhat.de>
|
|
|
|
- Fixed bugzilla bug #26767 where the new glibc time and sys/time fixes needed
|
|
|
|
to be done.
|
|
|
|
|
|
|
|
* Fri Feb 9 2001 Crutcher Dunnavant <crutcher@redhat.com>
|
|
|
|
- switched filters to printconf filters
|
|
|
|
|
|
|
|
* Wed Jan 24 2001 Philipp Knirsch <pknirsch@redhat.de>
|
|
|
|
- Fixed bugzilla bug #21644 where few manpages had a small error.
|
|
|
|
|
2004-09-09 09:11:17 +00:00
|
|
|
* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
|
|
|
|
- Fixed bugzilla bug #19487 where asciitopgm dumped core on Alpha. Actually
|
|
|
|
dumped core everywhere
|
|
|
|
|
|
|
|
* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
|
|
|
|
- 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 <nalin@redhat.com>
|
|
|
|
- include shared libraries missing from previous build
|
|
|
|
|
|
|
|
* Tue Oct 24 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- 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
|
|
|
|
|
2004-09-09 09:11:11 +00:00
|
|
|
* Wed Aug 9 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
|
|
|
- added a png-to-pnm.fpi filter
|
|
|
|
|
|
|
|
* Wed Aug 2 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
- rebuilt against new libpng
|
|
|
|
|
|
|
|
* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- move netpbm-progs to the Applications/Multimedia group
|
|
|
|
- reintroduce patches from the old libgr package
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
* Sat Jul 1 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 9.5
|
|
|
|
|
|
|
|
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 9.4
|
|
|
|
|
|
|
|
* Sat Jun 3 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- switch back to the netpbm tree, which is maintained again
|
|
|
|
|
|
|
|
* Mon Feb 14 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- 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 <nalin@redhat.com>
|
|
|
|
- added/updated TIFF compression patch from jik@kamens.brookline.ma.us (#8826)
|
|
|
|
|
|
|
|
* Mon Dec 06 1999 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- added TIFF resolution patch from jik@kamens.brookline.ma.us (#7589)
|
|
|
|
|
|
|
|
* Mon Sep 20 1999 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- added section 5 man pages
|
|
|
|
|
|
|
|
* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
- fix tiff-to-pnm.fpi (#4267)
|
|
|
|
|
|
|
|
* Thu Jul 29 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
- add a pile of foo-to-bar.fpi filters (#4251)
|
|
|
|
|
|
|
|
* Mon Mar 23 1999 Michael Johnson <johnsonm@redhat.com>
|
|
|
|
- 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 <notting@redhat.com>
|
|
|
|
- patch for 24-bit .BMP files (from sam@campbellsci.co.uk)
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- auto rebuild in the new build environment (release 15)
|
|
|
|
|
|
|
|
* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- clean up the spec file
|
|
|
|
- build for glibc 2.1
|
|
|
|
- patch to fix pktopbm
|
|
|
|
|
|
|
|
* Wed Jun 10 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de
|
|
|
|
|
|
|
|
* Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- glibc2 defines random in <stdlib.h> (pbm/pbmplus.h problem #693)
|
|
|
|
|
|
|
|
* Thu May 07 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
* Thu May 07 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- cleaned up the spec file a little bit
|
|
|
|
- validated mike's changes :-)
|
|
|
|
|
|
|
|
* Wed May 6 1998 Michael Maher <mike@redhat.com>
|
|
|
|
- added pnm-to-ps.fpi that was missing from previous packages
|
|
|
|
|
|
|
|
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- 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 <ewt@redhat.com>
|
|
|
|
- built against libpng 1.0
|
|
|
|
|
|
|
|
* Thu Nov 06 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
- 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 <djb@redhat.com>
|
|
|
|
- obsoletes netpbm now
|
|
|
|
|
|
|
|
* Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- mucked config.guess and Make.Rules to build on Alpha/Linux
|
|
|
|
|
|
|
|
* Tue Oct 07 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
- 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 <ewt@redhat.com>
|
|
|
|
- built against glibc
|
|
|
|
|