netpbm-vl.spec 15 KB

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