source: projects/specs/branches/6/n/netpbm/netpbm-vl.spec @ 3535

Revision 3535, 15.0 KB checked in by tomop, 13 years ago (diff)

netpbm-10.47.27-1

Line 
1Summary: A library for handling different graphics file formats.
2Summary(ja): 異なる画像ファイル形式を取り扱うためのライブラリ
3Name: netpbm
4Version: 10.47.27
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
28Patch12: netpbm-pamscale.patch
29Patch13: netpbm-glibc.patch
30Patch14: netpbm-svgtopam.patch
31Patch15: netpbm-docfix.patch
32Patch16: netpbm-ppmfadeusage.patch
33Patch17: netpbm-fiasco-overflow.patch
34Patch18: netpbm-lz.patch
35Patch19: netpbm-pnmmontagefix.patch
36Patch20: netpbm-noppmtompeg.patch
37Patch21: netpbm-cmuwtopbm.patch
38Patch22: netpbm-pamtojpeg2k.patch
39Patch23: netpbm-manfix.patch
40
41# bugfix
42Patch110: netpbm-10.27-pnmcolormap_segfault.patch
43
44#Security fix
45
46
47URL: http://netpbm.sourceforge.net/
48Buildroot: %{_tmppath}/%{name}-root
49BuildRequires: libjpeg-devel, libtiff-devel, zlib-devel, perl
50BuildRequires: libpng-devel >= 1.2.5, libX11-devel
51BuildRequires: flex
52Obsoletes: libgr
53
54Vendor: Project Vine
55Distribution: Vine Linux
56
57%description
58The netpbm package contains a library of functions which support
59programs for handling various graphics file formats, including .pbm
60(portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
61.ppm (portable pixmaps) and others.
62
63%package devel
64Summary: Development tools for programs which will use the netpbm libraries.
65Summary(ja): netpbm ライブラリを使うプログラムの開発ツール
66Group: Development/Libraries
67Requires: netpbm = %{version}-%{release}
68Obsoletes: libgr-devel
69
70%description devel
71The netpbm-devel package contains the header files and static libraries,
72etc., for developing programs which can handle the various graphics file
73formats supported by the netpbm libraries.
74
75Install netpbm-devel if you want to develop programs for handling the
76graphics file formats supported by the netpbm libraries.  You will also
77need to have the netpbm package installed.
78
79%package progs
80Summary: Tools for manipulating graphics files in netpbm supported formats.
81Summary(ja): netpbm でサポートするフォーマットの画像ファイルを操作するツール
82Group: Applications/Graphics
83Requires: netpbm = %{version}-%{release}
84Requires: libpng libtiff libjpeg zlib perl bash
85Obsoletes: libgr-progs
86
87%description progs
88The netpbm-progs package contains a group of scripts for manipulating the
89graphics files in formats which are supported by the netpbm libraries.  For
90example, netpbm-progs includes the rasttopnm script, which will convert a
91Sun rasterfile into a portable anymap.  Netpbm-progs contains many other
92scripts for converting from one graphics file format to another.
93
94If you need to use these conversion scripts, you should install
95netpbm-progs.  You will also need to install the netpbm package.
96
97%package doc
98Summary: Documentation for manipulating graphics files with netpbm-progs formats
99
100Summary(ja): netpbm-progs による画像ファイル操作のドキュメント
101Group: Applications/Documentation
102Requires: netpbm-progs = %{version}-%{release}
103
104%description doc
105The netpbm-doc package contains a documentation in HTML format for utilities
106present in netpbm-progs package.
107
108If you need to look into the HTML documentation, you should install
109netpbm-doc.  You'll also need to install the netpbm-progs package.
110
111%prep
112%setup -q
113%patch1 -p1 -b .time
114%patch2 -p1 -b .message
115%patch3 -p1 -b .security-scripts
116%patch4 -p1 -b .security-code
117%patch5 -p1 -b .nodoc
118%patch6 -p1 -b .gcc4
119%patch7 -p1 -b .bmptopnm
120%patch8 -p1 -b .CAN-2005-2471
121%patch9 -p1 -b .xwdfix
122%patch11 -p1 -b .multilib
123%patch12 -p1 -b .pamscale
124%patch13 -p1 -b .glibc
125%patch14 -p1 -b .svgtopam
126%patch15 -p1
127%patch16 -p1 -b .ppmfadeusage
128%patch17 -p1 -b .fiasco-overflow
129%patch18 -p1 -b .lz
130%patch19 -p1 -b .pnmmmontagefix
131%patch20 -p1 -b .noppmtompeg
132%patch21 -p1 -b .cmuwtopbmfix
133%patch22 -p1 -b .pamtojpeg2kfix
134%patch23 -p1 -b .manfix
135
136##%patch110 -p0 -b .pnmcolor_segfault
137
138
139%build
140[ ! -f "/tmp/netpbm" ] && rm -rf /tmp/netpbm
141
142./configure <<EOF
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159%ifnarch %{ix86}
160
161%endif
162EOF
163
164TOP=`pwd`
165make \
166        CC=%{__cc} \
167        CFLAGS="$RPM_OPT_FLAGS -fPIC -flax-vector-conversions -fno-strict-aliasing" \
168        LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
169        LADD="-lm" \
170        JPEGINC_DIR=%{_includedir} \
171        PNGINC_DIR=%{_includedir} \
172        TIFFINC_DIR=%{_includedir} \
173        JPEGLIB_DIR=%{_libdir} \
174        PNGLIB_DIR=%{_libdir} \
175        TIFFLIB_DIR=%{_libdir} \
176        LINUXSVGALIB=NONE \
177        X11LIB=%{_libdir}/libX11.so
178
179# prepare man files
180cd userguide
181for i in *.html ; do
182  ../buildtools/makeman ${i}
183done
184for i in 1 3 5 ; do
185  mkdir -p man/man${i}
186  mv *.${i} man/man${i}
187done
188
189%install
190[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
191
192mkdir -p $RPM_BUILD_ROOT
193make package pkgdir=$RPM_BUILD_ROOT/usr LINUXSVGALIB=NONE
194
195# Ugly hack to have libs in correct dir on 64bit archs.
196mkdir -p $RPM_BUILD_ROOT%{_libdir}
197if [ "%{_libdir}" != "/usr/lib" ]; then
198  mv $RPM_BUILD_ROOT/usr/lib/lib* $RPM_BUILD_ROOT%{_libdir}
199fi
200
201cp -af lib/libnetpbm.a $RPM_BUILD_ROOT%{_libdir}/libnetpbm.a
202ln -sf libnetpbm.so.10 $RPM_BUILD_ROOT%{_libdir}/libnetpbm.so
203
204#mkdir -p $RPM_BUILD_ROOT%{_mandir}
205#tar jxvf %{SOURCE10} -C $RPM_BUILD_ROOT%{_mandir}
206
207mkdir -p $RPM_BUILD_ROOT%{_datadir}
208mv userguide/man $RPM_BUILD_ROOT%{_mandir}
209
210# Get rid of the useless non-ascii character in pgmminkowski.1
211sed -i 's/\xa0//' $RPM_BUILD_ROOT%{_mandir}/man1/pgmminkowski.1
212
213# Don't ship man pages for non-existent binaries and bogus ones
214for i in hpcdtoppm \
215         ppmsvgalib vidtoppm picttoppm \
216         directory error extendedopacity \
217         pam pbm pgm pnm ppm index libnetpbm_dir \
218         liberror ppmtotga; do
219        rm -f $RPM_BUILD_ROOT%{_mandir}/man1/${i}.1
220done
221
222mv $RPM_BUILD_ROOT/usr/misc/*.map $RPM_BUILD_ROOT%{_libdir}
223rm -rf $RPM_BUILD_ROOT/usr/README
224rm -rf $RPM_BUILD_ROOT/usr/VERSION
225rm -rf $RPM_BUILD_ROOT/usr/link
226rm -rf $RPM_BUILD_ROOT/usr/misc
227rm -rf $RPM_BUILD_ROOT/usr/man
228rm -rf $RPM_BUILD_ROOT/usr/pkginfo
229rm -rf $RPM_BUILD_ROOT/usr/config_template
230
231mkdir -p $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
232for filter in $RPM_SOURCE_DIR/*.fpi ; do
233    install -m755 $filter \
234        $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
235done
236
237rm -f $RPM_BUILD_ROOT%{_mandir}/man5/extendedopacity.5
238
239mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
240install lib/rgb.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/rgb.txt
241
242# Don't ship the static library
243rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*.a
244
245# remove/symlink/substitute obsolete utilities
246pushd $RPM_BUILD_ROOT%{_bindir}
247rm -f pgmtopbm pnmcomp
248ln -s pamcomp pnmcomp
249echo -e '#!/bin/sh\npamditherbw $@ | pamtopnm\n' > pgmtopbm
250chmod 0755 pgmtopbm
251popd
252
253%clean
254[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
255# clean builddir
256[ ! -f "/tmp/netpbm" ] && rm -rf /tmp/netpbm
257
258%post -p /sbin/ldconfig
259
260%postun -p /sbin/ldconfig
261
262%files
263%defattr(-,root,root)
264%doc README doc/COPYRIGHT.PATENT doc/GPL_LICENSE.txt doc/HISTORY doc/USERDOC
265%{_libdir}/lib*.so.*
266
267%files devel
268%defattr(-,root,root)
269%dir %{_includedir}/netpbm
270%{_includedir}/netpbm/*.h
271%{_libdir}/lib*.so
272%{_mandir}/man3/*
273
274%files progs
275%defattr(-,root,root)
276%{_bindir}/*
277#%{_libdir}/rhs/rhs-printfilters/jpeg-to-pnm.fpi
278#%{_libdir}/rhs/rhs-printfilters/pnm-to-ps.fpi
279#%{_libdir}/rhs/rhs-printfilters/bmp-to-pnm.fpi
280#%{_libdir}/rhs/rhs-printfilters/gif-to-pnm.fpi
281#%{_libdir}/rhs/rhs-printfilters/rast-to-pnm.fpi
282#%{_libdir}/rhs/rhs-printfilters/tiff-to-pnm.fpi
283#%{_libdir}/rhs/rhs-printfilters/png-to-pnm.fpi
284%{_libdir}/*.map
285%{_datadir}/%{name}/rgb.txt
286%{_mandir}/man1/*
287%{_mandir}/man5/*
288
289%files doc
290%defattr(-,root,root)
291%doc userguide/*
292
293%changelog
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* Mon 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.