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

Revision 12495, 14.6 KB checked in by tomop, 3 years ago (diff)

updated 5 packages

cifs-utils-6.11-1

libproxy-0.4.15-3

netpbm-10.86.16-1

squashfs-tools-4.4-1

xorg-x11-server-1.20.9-1

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