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

Revision 8125, 15.0 KB checked in by tomop, 10 years ago (diff)

xl2tpd-1.3.3-1

Line 
1Summary: A library for handling different graphics file formats.
2Summary(ja): 異なる画像ファイル形式を取り扱うためのライブラリ
3Name: netpbm
4Version: 10.61.02
5Release: 1%{?_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 Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.61.02-1
291- new upstream release.
292- shipped all patches from RawHide.
293
294* Mon Apr 18 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.47.27-1
295- new upstream release.
296- shipped all patches from Fedora development.
297- added a subpackage "netpbm-doc".
298- rebuilt with recent environment.
299
300* Sun Jul 27 2008 Shu KONNO <owa@bg.wakwak.com> 10.27-1vl5
301- applied new versioning policy and spec in utf-8
302
303* Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.27-0vl6
304- changed progs package Group to Applications/Graphics
305
306* Sun Jan 07 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 10.27-0vl5
307- make with LINUXSVGALIB=NONE not to depend on svgalib
308
309* Wed Dec 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.27-0vl4
310- rebuilt for VineSeed
311
312* Thu Dec 21 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.2
313- add Vender/Distribution tag
314
315* Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.1
316- add patch200 for fix CVE-2005-2471
317- add patch210 for fix CVE-2005-2978
318- add patch220 for fix CVE-2005-3662
319
320* Wed Dec 13 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 10.27-0vl3.0.1
321- add patch110 for fix pnmcolormap segfault
322
323* Fri Aug 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 10.27-0vl3
324- add BuildPrereq: flex
325- fix build on x86_64
326
327* Mon Apr 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 10.27-0vl2
328- add Patch100 to use own rgb.txt as secondary rgb database.
329- add rgb.txt again, and move it to %%{_datadir}/netpbm/
330- remove dependancy to XOrg-libs
331- remove unneeded printconf filters
332
333* Sun Apr 24 2005 Satoshi MACHINO <machino@vinelinux.org> 10.27-0vl1
334- new upstream release
335        -- added some patches from fedora
336- removed rgb.txt because it is included XOrg-libs
337- added XOrg-libs, libpng, libtiff, libjpeg, perl and bash to Requires of progs
338
339* Mon May 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 10.18.12-0vl1
340- new upstream release
341- build without svgalib
342
343* Thu Jan 08 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.18.4-0vl2
344- modified build section for non-ix86 archtectures
345  (svgalib is exclusive package for ix86 arch)
346
347* Sun Dec 28 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.18.4-0vl1
348- update to 10.18.4
349- rebuild with new toolchains
350
351* Tue Oct 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.15-0vl1
352- update to 10.11.15
353
354* Sun Jul 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.10-0vl1
355- update to 10.11.10
356- s/Copyright/License/
357- fixed License to Artistic License/GPL/MIT
358  (http://sourceforge.net/projects/netpbm/)
359- added URL
360
361* Thu May  1 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 10.11.6-0vl2
362- rebuild with libpng-1.2.5 (BuildPrereq: libpng-devel >= 1.2.5)
363
364* Fri Mar 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.6-0vl1
365- update to 10.11.6
366
367* Thu Dec 12 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.2-0vl1
368- update to 10.11.2
369
370* Sun Jun 09 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 9.24-4vl1
371- merged with rawhide
372
373* Mon Feb 19 2001 Jun Nishii <jun@vinelinux.org>
374- 9.9-3vl1
375- added Summary(ja)
376
377* Wed Jan 24 2001 Philipp Knirsch <pknirsch@redhat.de>
378- Fixed bugzilla bug #21644 where few manpages had a small error.
379
380* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
381- Fixed bugzilla bug #19487 where asciitopgm dumped core on Alpha. Actually
382  dumped core everywhere
383
384* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
385- update to 9.9
386- Due to patent infringement problems removed the jbig support from the tarball
387  (pnm/jbig + Makefile changes) and created a new tarball
388
389* Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com>
390- include shared libraries missing from previous build
391
392* Tue Oct 24 2000 Nalin Dahyabhai <nalin@redhat.com>
393- update to 9.8
394- make sure shhopt.h is included in the -devel package (#19672)
395- rename shhopt.h to pbmshhopt.h because it's not the same as the normal
396  shhopt.h that other things (like util-linux) expect
397
398* Wed Aug  9 2000 Crutcher Dunnavant <crutcher@redhat.com>
399- added a png-to-pnm.fpi filter
400
401* Wed Aug  2 2000 Matt Wilson <msw@redhat.com>
402- rebuilt against new libpng
403
404* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
405- move netpbm-progs to the Applications/Multimedia group
406- reintroduce patches from the old libgr package
407
408* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
409- automatic rebuild
410
411* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
412- update to 9.5
413
414* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
415- update to 9.4
416
417* Sat Jun  3 2000 Nalin Dahyabhai <nalin@redhat.com>
418- switch back to the netpbm tree, which is maintained again
419
420* Mon Feb 14 2000 Nalin Dahyabhai <nalin@redhat.com>
421- make sure all man pages are included (#9328)
422- fix pstopnm bomb when xres == yres (#9329)
423- add libjpeg and libz because libtiff now needs them
424
425* Wed Feb 02 2000 Nalin Dahyabhai <nalin@redhat.com>
426- added/updated TIFF compression patch from jik@kamens.brookline.ma.us (#8826)
427
428* Mon Dec 06 1999 Michael K. Johnson <johnsonm@redhat.com>
429- added TIFF resolution patch from jik@kamens.brookline.ma.us (#7589)
430
431* Mon Sep 20 1999 Michael K. Johnson <johnsonm@redhat.com>
432- added section 5 man pages
433
434* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
435- fix tiff-to-pnm.fpi (#4267)
436
437* Thu Jul 29 1999 Bill Nottingham <notting@redhat.com>
438- add a pile of foo-to-bar.fpi filters (#4251)
439
440* Tue Mar 23 1999 Michael Johnson <johnsonm@redhat.com>
441- removed old png.h header file that was causing png utils to die
442- build png in build instead of install section...
443
444* Mon Mar 22 1999 Bill Nottingham <notting@redhat.com>
445- patch for 24-bit .BMP files (from sam@campbellsci.co.uk)
446
447* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
448- auto rebuild in the new build environment (release 15)
449
450* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
451- clean up the spec file
452- build for glibc 2.1
453- patch to fix pktopbm
454
455* Wed Jun 10 1998 Prospector System <bugs@redhat.com>
456- translations modified for de
457
458* Wed Jun 10 1998 Jeff Johnson <jbj@redhat.com>
459- glibc2 defines random in <stdlib.h> (pbm/pbmplus.h problem #693)
460
461* Thu May 07 1998 Prospector System <bugs@redhat.com>
462- translations modified for de, fr, tr
463
464* Thu May 07 1998 Cristian Gafton <gafton@redhat.com>
465- cleaned up the spec file a little bit
466- validated mike's changes :-)
467
468* Wed May 6 1998 Michael Maher <mike@redhat.com>
469- added pnm-to-ps.fpi that was missing from previous packages
470
471* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
472- altered %install so that the package installs now even if a previous
473  version was not installed on the system
474
475* Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
476- built against libpng 1.0
477
478* Thu Nov 06 1997 Donnie Barnes <djb@redhat.com>
479- changed copyright from "distributable" to "freeware"
480- added some missing scripts that existed in netpbm
481- added some binaries that weren't getting built
482- added patch to build tiff manipulation progs (requires libtiff)
483
484* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
485- obsoletes netpbm now
486
487* Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
488- mucked config.guess and Make.Rules to build on Alpha/Linux
489
490* Tue Oct 07 1997 Donnie Barnes <djb@redhat.com>
491- updated to 2.0.13
492- dropped libjpeg and libtiff (those should come from home sources)
493- removed glibc patch (new version appears to have it!)
494- added i686 as a valid arch type to config.guess
495
496* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
497- built against glibc
498
Note: See TracBrowser for help on using the repository browser.