netpbm-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. Summary: A library for handling different graphics file formats.
  2. Summary(ja): 異なる画像ファイル形式を取り扱うためのライブラリ
  3. Name: netpbm
  4. Version: 10.27
  5. Release: 1%{?_dist_release}
  6. License: Artistic License/GPL/MIT
  7. Group: System Environment/Libraries
  8. Source0: netpbm-%{version}.tgz
  9. Source3: jpeg-to-pnm.fpi
  10. Source4: pnm-to-ps.fpi
  11. Source5: bmp-to-pnm.fpi
  12. Source6: gif-to-pnm.fpi
  13. Source7: rast-to-pnm.fpi
  14. Source8: tiff-to-pnm.fpi
  15. Source9: png-to-pnm.fpi
  16. Source10: netpbmdoc-%{version}.tar.bz2
  17. # Patches from fedora core
  18. Patch1: netpbm-10.17-time.patch
  19. Patch2: netpbm-9.24-strip.patch
  20. Patch3: netpbm-10.18-manpath.patch
  21. Patch4: netpbm-10.19-message.patch
  22. Patch5: netpbm-10.22-security2.patch
  23. Patch6: netpbm-10.22-cmapsize.patch
  24. Patch7: netpbm-10.23-gcc34.patch
  25. Patch8: netpbm-10.23-security.patch
  26. Patch9: netpbm-10.23-pngtopnm.patch
  27. Patch10: netpbm-10.24-nodoc.patch
  28. Patch11: netpbm-10.26.4-gcc4.patch
  29. Patch12: netpbm-10.27-badlink.patch
  30. Patch100: netpbm-10.27-rgb_db.patch
  31. # bugfix
  32. Patch110: netpbm-10.27-pnmcolormap_segfault.patch
  33. #Security fix
  34. Patch200: netpbm-10.27-CVE-2005-2471.patch
  35. Patch210: netpbm-10.27-CVE-2005-2978.patch
  36. Patch220: netpbm-10.27-CVE-2005-3662.patch
  37. URL: http://netpbm.sourceforge.net/
  38. Buildroot: %{_tmppath}/%{name}-root
  39. BuildPrereq: libjpeg-devel, libtiff-devel, zlib-devel, perl
  40. BuildPrereq: libpng-devel >= 1.2.5
  41. BuildPrereq: flex
  42. Obsoletes: libgr
  43. Vendor: Project Vine
  44. Distribution: Vine Linux
  45. %description
  46. The netpbm package contains a library of functions which support
  47. programs for handling various graphics file formats, including .pbm
  48. (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
  49. .ppm (portable pixmaps) and others.
  50. %package devel
  51. Summary: Development tools for programs which will use the netpbm libraries.
  52. Summary(ja): netpbm ライブラリを使うプログラムの開発ツール
  53. Group: Development/Libraries
  54. Requires: netpbm = %{version}-%{release}
  55. Obsoletes: libgr-devel
  56. %description devel
  57. The netpbm-devel package contains the header files and static libraries,
  58. etc., for developing programs which can handle the various graphics file
  59. formats supported by the netpbm libraries.
  60. Install netpbm-devel if you want to develop programs for handling the
  61. graphics file formats supported by the netpbm libraries. You will also
  62. need to have the netpbm package installed.
  63. %package progs
  64. Summary: Tools for manipulating graphics files in netpbm supported formats.
  65. Summary(ja): netpbm でサポートするフォーマットの画像ファイルを操作するツール
  66. Group: Applications/Graphics
  67. Requires: netpbm = %{version}-%{release}
  68. Requires: libpng libtiff libjpeg zlib perl bash
  69. Obsoletes: libgr-progs
  70. %description progs
  71. The netpbm-progs package contains a group of scripts for manipulating the
  72. graphics files in formats which are supported by the netpbm libraries. For
  73. example, netpbm-progs includes the rasttopnm script, which will convert a
  74. Sun rasterfile into a portable anymap. Netpbm-progs contains many other
  75. scripts for converting from one graphics file format to another.
  76. If you need to use these conversion scripts, you should install
  77. netpbm-progs. You will also need to install the netpbm package.
  78. %prep
  79. %setup -q
  80. %patch1 -p1 -b .time
  81. %patch2 -p1 -b .strip
  82. %patch3 -p1 -b .manpath
  83. %patch4 -p1 -b .message
  84. %patch5 -p1 -b .security2
  85. %patch6 -p1 -b .cmapsize
  86. %patch7 -p1 -b .gcc34
  87. %patch8 -p1 -b .security
  88. %patch9 -p1 -b .pngtopnm
  89. %patch10 -p1 -b .nodoc
  90. %patch11 -p1 -b .gcc4
  91. %patch12 -p1 -b .badlink
  92. %patch100 -p1 -b .rgb_db
  93. %patch110 -p0 -b .pnmcolor_segfault
  94. %patch200 -p0 -b .CVE-2005-2471.patch
  95. %patch210 -p0 -b .CVE-2005-2978.patch
  96. %patch220 -p0 -b .CVE-2005-3662.patch
  97. %build
  98. [ ! -f "/tmp/netpbm" ] && rm -rf /tmp/netpbm
  99. ./configure <<EOF
  100. %ifnarch %{ix86}
  101. %endif
  102. EOF
  103. TOP=`pwd`
  104. make \
  105. CC=%{__cc} \
  106. CFLAGS="$RPM_OPT_FLAGS -fPIC" \
  107. LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
  108. JPEGINC_DIR=%{_includedir} \
  109. PNGINC_DIR=%{_includedir} \
  110. TIFFINC_DIR=%{_includedir} \
  111. JPEGLIB_DIR=%{_libdir} \
  112. PNGLIB_DIR=%{_libdir} \
  113. TIFFLIB_DIR=%{_libdir} \
  114. LINUXSVGALIB=NONE
  115. ##make package
  116. %install
  117. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  118. mkdir -p $RPM_BUILD_ROOT
  119. make package pkgdir=$RPM_BUILD_ROOT/usr LINUXSVGALIB=NONE
  120. # Ugly hack to have libs in correct dir on 64bit archs.
  121. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  122. if [ "%{_libdir}" != "/usr/lib" ]; then
  123. mv $RPM_BUILD_ROOT/usr/lib/lib* $RPM_BUILD_ROOT%{_libdir}
  124. fi
  125. cp -af lib/libnetpbm.a $RPM_BUILD_ROOT%{_libdir}/libnetpbm.a
  126. ln -sf libnetpbm.so.10 $RPM_BUILD_ROOT%{_libdir}/libnetpbm.so
  127. mkdir -p $RPM_BUILD_ROOT%{_mandir}
  128. tar jxvf %{SOURCE10} -C $RPM_BUILD_ROOT%{_mandir}
  129. # Don't ship man packages for non-existent binaries
  130. for i in hpcdtoppm.1 pcdovtoppm.1 pnmtojbig.1 \
  131. ppmsvgalib.1 vidtoppm.1 picttoppm.1; do
  132. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i}
  133. done
  134. mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir}
  135. rm -rf $RPM_BUILD_ROOT/usr/README
  136. rm -rf $RPM_BUILD_ROOT/usr/VERSION
  137. rm -rf $RPM_BUILD_ROOT/usr/link
  138. rm -rf $RPM_BUILD_ROOT/usr/misc
  139. rm -rf $RPM_BUILD_ROOT/usr/man
  140. rm -rf $RPM_BUILD_ROOT/usr/pkginfo
  141. rm -rf $RPM_BUILD_ROOT/usr/config_template
  142. mkdir -p $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
  143. for filter in $RPM_SOURCE_DIR/*.fpi ; do
  144. install -m755 $filter \
  145. $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
  146. done
  147. mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
  148. install lib/rgb.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/rgb.txt
  149. %clean
  150. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  151. # clean builddir
  152. [ ! -f "/tmp/netpbm" ] && rm -rf /tmp/netpbm
  153. %post -p /sbin/ldconfig
  154. %postun -p /sbin/ldconfig
  155. %files
  156. %defattr(-,root,root)
  157. %doc README doc/COPYRIGHT.PATENT doc/GPL_LICENSE.txt doc/HISTORY doc/USERDOC
  158. %{_libdir}/lib*.so.*
  159. %files devel
  160. %defattr(-,root,root)
  161. %{_includedir}/*.h
  162. %{_libdir}/lib*.a
  163. %{_libdir}/lib*.so
  164. %{_mandir}/man3/*
  165. %files progs
  166. %defattr(-,root,root)
  167. %{_bindir}/*
  168. %{_libdir}/rhs/rhs-printfilters/jpeg-to-pnm.fpi
  169. %{_libdir}/rhs/rhs-printfilters/pnm-to-ps.fpi
  170. %{_libdir}/rhs/rhs-printfilters/bmp-to-pnm.fpi
  171. %{_libdir}/rhs/rhs-printfilters/gif-to-pnm.fpi
  172. %{_libdir}/rhs/rhs-printfilters/rast-to-pnm.fpi
  173. %{_libdir}/rhs/rhs-printfilters/tiff-to-pnm.fpi
  174. %{_libdir}/rhs/rhs-printfilters/png-to-pnm.fpi
  175. %{_libdir}/*.map
  176. %{_datadir}/%{name}/rgb.txt
  177. %{_mandir}/man1/*
  178. %{_mandir}/man5/*
  179. %changelog
  180. * Sun Jul 27 2008 Shu KONNO <owa@bg.wakwak.com> 10.27-1vl5
  181. - applied new versioning policy and spec in utf-8
  182. * Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.27-0vl6
  183. - changed progs package Group to Applications/Graphics
  184. * Sun Jan 07 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 10.27-0vl5
  185. - make with LINUXSVGALIB=NONE not to depend on svgalib
  186. * Wed Dec 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.27-0vl4
  187. - rebuilt for VineSeed
  188. * Thu Dec 21 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.2
  189. - add Vender/Distribution tag
  190. * Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.1
  191. - add patch200 for fix CVE-2005-2471
  192. - add patch210 for fix CVE-2005-2978
  193. - add patch220 for fix CVE-2005-3662
  194. * Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.0.1
  195. - add patch110 for fix pnmcolormap segfault
  196. * Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 10.27-0vl3
  197. - add BuildPrereq: flex
  198. - fix build on x86_64
  199. * Mon Apr 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 10.27-0vl2
  200. - add Patch100 to use own rgb.txt as secondary rgb database.
  201. - add rgb.txt again, and move it to %%{_datadir}/netpbm/
  202. - remove dependancy to XOrg-libs
  203. - remove unneeded printconf filters
  204. * Sun Apr 24 2005 Satoshi MACHINO <machino@vinelinux.org> 10.27-0vl1
  205. - new upstream release
  206. -- added some patches from fedora
  207. - removed rgb.txt because it is included XOrg-libs
  208. - added XOrg-libs, libpng, libtiff, libjpeg, perl and bash to Requires of progs
  209. * Mon May 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 10.18.12-0vl1
  210. - new upstream release
  211. - build without svgalib
  212. * Thu Jan 08 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.18.4-0vl2
  213. - modified build section for non-ix86 archtectures
  214. (svgalib is exclusive package for ix86 arch)
  215. * Sun Dec 28 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.18.4-0vl1
  216. - update to 10.18.4
  217. - rebuild with new toolchains
  218. * Tue Oct 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.15-0vl1
  219. - update to 10.11.15
  220. * Sun Jul 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.10-0vl1
  221. - update to 10.11.10
  222. - s/Copyright/License/
  223. - fixed License to Artistic License/GPL/MIT
  224. (http://sourceforge.net/projects/netpbm/)
  225. - added URL
  226. * Thu May 1 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 10.11.6-0vl2
  227. - rebuild with libpng-1.2.5 (BuildPrereq: libpng-devel >= 1.2.5)
  228. * Fri Mar 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.6-0vl1
  229. - update to 10.11.6
  230. * Thu Dec 12 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.2-0vl1
  231. - update to 10.11.2
  232. * Sun Jun 09 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 9.24-4vl1
  233. - merged with rawhide
  234. * Mon Feb 19 2001 Jun Nishii <jun@vinelinux.org>
  235. - 9.9-3vl1
  236. - added Summary(ja)
  237. * Wed Jan 24 2001 Philipp Knirsch <pknirsch@redhat.de>
  238. - Fixed bugzilla bug #21644 where few manpages had a small error.
  239. * Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
  240. - Fixed bugzilla bug #19487 where asciitopgm dumped core on Alpha. Actually
  241. dumped core everywhere
  242. * Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
  243. - update to 9.9
  244. - Due to patent infringement problems removed the jbig support from the tarball
  245. (pnm/jbig + Makefile changes) and created a new tarball
  246. * Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
  247. - include shared libraries missing from previous build
  248. * Tue Oct 24 2000 Nalin Dahyabhai <nalin@redhat.com>
  249. - update to 9.8
  250. - make sure shhopt.h is included in the -devel package (#19672)
  251. - rename shhopt.h to pbmshhopt.h because it's not the same as the normal
  252. shhopt.h that other things (like util-linux) expect
  253. * Wed Aug 9 2000 Crutcher Dunnavant <crutcher@redhat.com>
  254. - added a png-to-pnm.fpi filter
  255. * Wed Aug 2 2000 Matt Wilson <msw@redhat.com>
  256. - rebuilt against new libpng
  257. * Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
  258. - move netpbm-progs to the Applications/Multimedia group
  259. - reintroduce patches from the old libgr package
  260. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  261. - automatic rebuild
  262. * Sat Jul 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  263. - update to 9.5
  264. * Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  265. - update to 9.4
  266. * Sat Jun 3 2000 Nalin Dahyabhai <nalin@redhat.com>
  267. - switch back to the netpbm tree, which is maintained again
  268. * Mon Feb 14 2000 Nalin Dahyabhai <nalin@redhat.com>
  269. - make sure all man pages are included (#9328)
  270. - fix pstopnm bomb when xres == yres (#9329)
  271. - add libjpeg and libz because libtiff now needs them
  272. * Wed Feb 02 2000 Nalin Dahyabhai <nalin@redhat.com>
  273. - added/updated TIFF compression patch from jik@kamens.brookline.ma.us (#8826)
  274. * Mon Dec 06 1999 Michael K. Johnson <johnsonm@redhat.com>
  275. - added TIFF resolution patch from jik@kamens.brookline.ma.us (#7589)
  276. * Mon Sep 20 1999 Michael K. Johnson <johnsonm@redhat.com>
  277. - added section 5 man pages
  278. * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
  279. - fix tiff-to-pnm.fpi (#4267)
  280. * Thu Jul 29 1999 Bill Nottingham <notting@redhat.com>
  281. - add a pile of foo-to-bar.fpi filters (#4251)
  282. * Mon Mar 23 1999 Michael Johnson <johnsonm@redhat.com>
  283. - removed old png.h header file that was causing png utils to die
  284. - build png in build instead of install section...
  285. * Mon Mar 22 1999 Bill Nottingham <notting@redhat.com>
  286. - patch for 24-bit .BMP files (from sam@campbellsci.co.uk)
  287. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  288. - auto rebuild in the new build environment (release 15)
  289. * Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
  290. - clean up the spec file
  291. - build for glibc 2.1
  292. - patch to fix pktopbm
  293. * Wed Jun 10 1998 Prospector System <bugs@redhat.com>
  294. - translations modified for de
  295. * Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com>
  296. - glibc2 defines random in <stdlib.h> (pbm/pbmplus.h problem #693)
  297. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  298. - translations modified for de, fr, tr
  299. * Thu May 07 1998 Cristian Gafton <gafton@redhat.com>
  300. - cleaned up the spec file a little bit
  301. - validated mike's changes :-)
  302. * Wed May 6 1998 Michael Maher <mike@redhat.com>
  303. - added pnm-to-ps.fpi that was missing from previous packages
  304. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  305. - altered %install so that the package installs now even if a previous
  306. version was not installed on the system
  307. * Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
  308. - built against libpng 1.0
  309. * Thu Nov 06 1997 Donnie Barnes <djb@redhat.com>
  310. - changed copyright from "distributable" to "freeware"
  311. - added some missing scripts that existed in netpbm
  312. - added some binaries that weren't getting built
  313. - added patch to build tiff manipulation progs (requires libtiff)
  314. * Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
  315. - obsoletes netpbm now
  316. * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
  317. - mucked config.guess and Make.Rules to build on Alpha/Linux
  318. * Tue Oct 07 1997 Donnie Barnes <djb@redhat.com>
  319. - updated to 2.0.13
  320. - dropped libjpeg and libtiff (those should come from home sources)
  321. - removed glibc patch (new version appears to have it!)
  322. - added i686 as a valid arch type to config.guess
  323. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  324. - built against glibc