123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- Summary: A library for handling different graphics file formats.
- Summary(ja): 異なる画像ファイル形式を取り扱うためのライブラリ
- Name: netpbm
- Version: 10.27
- Release: 1%{?_dist_release}
- License: Artistic License/GPL/MIT
- Group: System Environment/Libraries
- Source0: netpbm-%{version}.tgz
- Source3: jpeg-to-pnm.fpi
- Source4: pnm-to-ps.fpi
- Source5: bmp-to-pnm.fpi
- Source6: gif-to-pnm.fpi
- Source7: rast-to-pnm.fpi
- Source8: tiff-to-pnm.fpi
- Source9: png-to-pnm.fpi
- Source10: netpbmdoc-%{version}.tar.bz2
- # Patches from fedora core
- Patch1: netpbm-10.17-time.patch
- Patch2: netpbm-9.24-strip.patch
- Patch3: netpbm-10.18-manpath.patch
- Patch4: netpbm-10.19-message.patch
- Patch5: netpbm-10.22-security2.patch
- Patch6: netpbm-10.22-cmapsize.patch
- Patch7: netpbm-10.23-gcc34.patch
- Patch8: netpbm-10.23-security.patch
- Patch9: netpbm-10.23-pngtopnm.patch
- Patch10: netpbm-10.24-nodoc.patch
- Patch11: netpbm-10.26.4-gcc4.patch
- Patch12: netpbm-10.27-badlink.patch
- Patch100: netpbm-10.27-rgb_db.patch
- # bugfix
- Patch110: netpbm-10.27-pnmcolormap_segfault.patch
- #Security fix
- Patch200: netpbm-10.27-CVE-2005-2471.patch
- Patch210: netpbm-10.27-CVE-2005-2978.patch
- Patch220: netpbm-10.27-CVE-2005-3662.patch
- URL: http://netpbm.sourceforge.net/
- Buildroot: %{_tmppath}/%{name}-root
- BuildPrereq: libjpeg-devel, libtiff-devel, zlib-devel, perl
- BuildPrereq: libpng-devel >= 1.2.5
- BuildPrereq: flex
- Obsoletes: libgr
- Vendor: Project Vine
- Distribution: Vine Linux
- %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.
- Summary(ja): netpbm ライブラリを使うプログラムの開発ツール
- Group: Development/Libraries
- Requires: netpbm = %{version}-%{release}
- Obsoletes: libgr-devel
- %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 will also
- need to have the netpbm package installed.
- %package progs
- Summary: Tools for manipulating graphics files in netpbm supported formats.
- Summary(ja): netpbm でサポートするフォーマットの画像ファイルを操作するツール
- Group: Applications/Graphics
- Requires: netpbm = %{version}-%{release}
- Requires: libpng libtiff libjpeg zlib perl bash
- Obsoletes: libgr-progs
- %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 will also need to install the netpbm package.
- %prep
- %setup -q
- %patch1 -p1 -b .time
- %patch2 -p1 -b .strip
- %patch3 -p1 -b .manpath
- %patch4 -p1 -b .message
- %patch5 -p1 -b .security2
- %patch6 -p1 -b .cmapsize
- %patch7 -p1 -b .gcc34
- %patch8 -p1 -b .security
- %patch9 -p1 -b .pngtopnm
- %patch10 -p1 -b .nodoc
- %patch11 -p1 -b .gcc4
- %patch12 -p1 -b .badlink
- %patch100 -p1 -b .rgb_db
- %patch110 -p0 -b .pnmcolor_segfault
- %patch200 -p0 -b .CVE-2005-2471.patch
- %patch210 -p0 -b .CVE-2005-2978.patch
- %patch220 -p0 -b .CVE-2005-3662.patch
- %build
- [ ! -f "/tmp/netpbm" ] && rm -rf /tmp/netpbm
- ./configure <<EOF
- %ifnarch %{ix86}
- %endif
- EOF
- TOP=`pwd`
- make \
- CC=%{__cc} \
- CFLAGS="$RPM_OPT_FLAGS -fPIC" \
- LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
- JPEGINC_DIR=%{_includedir} \
- PNGINC_DIR=%{_includedir} \
- TIFFINC_DIR=%{_includedir} \
- JPEGLIB_DIR=%{_libdir} \
- PNGLIB_DIR=%{_libdir} \
- TIFFLIB_DIR=%{_libdir} \
- LINUXSVGALIB=NONE
- ##make package
- %install
- [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
- mkdir -p $RPM_BUILD_ROOT
- make package pkgdir=$RPM_BUILD_ROOT/usr LINUXSVGALIB=NONE
- # Ugly hack to have libs in correct dir on 64bit archs.
- mkdir -p $RPM_BUILD_ROOT%{_libdir}
- if [ "%{_libdir}" != "/usr/lib" ]; then
- mv $RPM_BUILD_ROOT/usr/lib/lib* $RPM_BUILD_ROOT%{_libdir}
- fi
- cp -af lib/libnetpbm.a $RPM_BUILD_ROOT%{_libdir}/libnetpbm.a
- ln -sf libnetpbm.so.10 $RPM_BUILD_ROOT%{_libdir}/libnetpbm.so
- mkdir -p $RPM_BUILD_ROOT%{_mandir}
- tar jxvf %{SOURCE10} -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; do
- rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i}
- done
- mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir}
- rm -rf $RPM_BUILD_ROOT/usr/README
- rm -rf $RPM_BUILD_ROOT/usr/VERSION
- rm -rf $RPM_BUILD_ROOT/usr/link
- rm -rf $RPM_BUILD_ROOT/usr/misc
- rm -rf $RPM_BUILD_ROOT/usr/man
- rm -rf $RPM_BUILD_ROOT/usr/pkginfo
- rm -rf $RPM_BUILD_ROOT/usr/config_template
- mkdir -p $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
- for filter in $RPM_SOURCE_DIR/*.fpi ; do
- install -m755 $filter \
- $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
- done
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
- install lib/rgb.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/rgb.txt
- %clean
- [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
- # clean builddir
- [ ! -f "/tmp/netpbm" ] && rm -rf /tmp/netpbm
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %defattr(-,root,root)
- %doc README doc/COPYRIGHT.PATENT doc/GPL_LICENSE.txt doc/HISTORY doc/USERDOC
- %{_libdir}/lib*.so.*
- %files devel
- %defattr(-,root,root)
- %{_includedir}/*.h
- %{_libdir}/lib*.a
- %{_libdir}/lib*.so
- %{_mandir}/man3/*
- %files progs
- %defattr(-,root,root)
- %{_bindir}/*
- %{_libdir}/rhs/rhs-printfilters/jpeg-to-pnm.fpi
- %{_libdir}/rhs/rhs-printfilters/pnm-to-ps.fpi
- %{_libdir}/rhs/rhs-printfilters/bmp-to-pnm.fpi
- %{_libdir}/rhs/rhs-printfilters/gif-to-pnm.fpi
- %{_libdir}/rhs/rhs-printfilters/rast-to-pnm.fpi
- %{_libdir}/rhs/rhs-printfilters/tiff-to-pnm.fpi
- %{_libdir}/rhs/rhs-printfilters/png-to-pnm.fpi
- %{_libdir}/*.map
- %{_datadir}/%{name}/rgb.txt
- %{_mandir}/man1/*
- %{_mandir}/man5/*
- %changelog
- * Sun Jul 27 2008 Shu KONNO <owa@bg.wakwak.com> 10.27-1vl5
- - applied new versioning policy and spec in utf-8
- * Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.27-0vl6
- - changed progs package Group to Applications/Graphics
- * Sun Jan 07 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 10.27-0vl5
- - make with LINUXSVGALIB=NONE not to depend on svgalib
- * Wed Dec 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.27-0vl4
- - rebuilt for VineSeed
- * Thu Dec 21 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.2
- - add Vender/Distribution tag
- * Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.1
- - add patch200 for fix CVE-2005-2471
- - add patch210 for fix CVE-2005-2978
- - add patch220 for fix CVE-2005-3662
- * Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.0.1
- - add patch110 for fix pnmcolormap segfault
- * Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 10.27-0vl3
- - add BuildPrereq: flex
- - fix build on x86_64
- * Mon Apr 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 10.27-0vl2
- - add Patch100 to use own rgb.txt as secondary rgb database.
- - add rgb.txt again, and move it to %%{_datadir}/netpbm/
- - remove dependancy to XOrg-libs
- - remove unneeded printconf filters
- * Sun Apr 24 2005 Satoshi MACHINO <machino@vinelinux.org> 10.27-0vl1
- - new upstream release
- -- added some patches from fedora
- - removed rgb.txt because it is included XOrg-libs
- - added XOrg-libs, libpng, libtiff, libjpeg, perl and bash to Requires of progs
- * Mon May 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 10.18.12-0vl1
- - new upstream release
- - build without svgalib
- * Thu Jan 08 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.18.4-0vl2
- - modified build section for non-ix86 archtectures
- (svgalib is exclusive package for ix86 arch)
- * Sun Dec 28 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.18.4-0vl1
- - update to 10.18.4
- - rebuild with new toolchains
- * Tue Oct 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.15-0vl1
- - update to 10.11.15
- * Sun Jul 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.10-0vl1
- - update to 10.11.10
- - s/Copyright/License/
- - fixed License to Artistic License/GPL/MIT
- (http://sourceforge.net/projects/netpbm/)
- - added URL
- * Thu May 1 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 10.11.6-0vl2
- - rebuild with libpng-1.2.5 (BuildPrereq: libpng-devel >= 1.2.5)
- * Fri Mar 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.6-0vl1
- - update to 10.11.6
- * Thu Dec 12 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.2-0vl1
- - update to 10.11.2
- * Sun Jun 09 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 9.24-4vl1
- - merged with rawhide
- * Mon Feb 19 2001 Jun Nishii <jun@vinelinux.org>
- - 9.9-3vl1
- - added Summary(ja)
- * Wed Jan 24 2001 Philipp Knirsch <pknirsch@redhat.de>
- - Fixed bugzilla bug #21644 where few manpages had a small error.
- * 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
- * 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
|