source: projects/specs/trunk/n/netpbm/netpbm-vl.spec @ 8846

Revision 8846, 15.1 KB checked in by Takemikaduchi, 10 years ago (diff)

jack-audio-connection-kit, libfontenv, m17n-{db,lib}: new upstream release
others: rebuild

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