netpbm-vl.spec 15 KB

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