netpbm-vl.spec 15 KB

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