source: projects/specs/trunk/a/a2ps/a2ps-vl.spec @ 6169

Revision 6169, 16.4 KB checked in by munepi, 12 years ago (diff)

updated a2ps

Line 
1Summary: Converts text and other types of files to PostScript(TM).
2Summary(ja): テキストなどのPostscriptへのフィルタ
3Name: a2ps
4Version: 4.14
5Release: 1%{?_dist_release}
6License: GPL
7Group: Applications/Publishing
8URL: http://www.inf.enst.fr/~demaille/a2ps/
9Source: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
10Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
11Source2: a2ps.sh
12Patch0: a2ps-4.13-conf.patch
13Patch1: a2ps-4.13-etc.patch
14Patch3: a2ps-4.13-security.patch
15Patch4: a2ps-4.13-glibcpaper.patch
16Patch6: a2ps-tmpdir.patch
17Patch7: a2ps-sort.patch
18Patch8: a2ps-iso5-minus.patch
19Patch9: a2ps-perl.patch
20# EUC-JP support
21Patch10: a2ps-4.13-eucjp.patch
22Patch11: a2ps-4.13-autoenc.patch
23Patch12: a2ps-4.13b-attr.patch
24Patch13: a2ps-4.13b-numeric.patch
25Patch14: a2ps-4.13b-encoding.patch
26Patch15: a2ps-4.13b-tilde.patch
27Patch16: a2ps-4.13b-rm.patch
28Patch17: a2ps-4.13-euckr.patch
29Patch18: a2ps-4.13-gnusource.patch
30Patch22: a2ps-4.13-hebrew.patch
31Patch26: a2ps-make-fonts-map.patch
32Patch27: a2ps-netscape.patch
33Patch28: a2ps-wdiff.patch
34Patch29: a2ps-U.patch
35Patch31: a2ps-mb.patch
36Patch34: a2ps-external-libtool.patch
37Patch35: a2ps-4.14-texinfo-nodes.patch
38Patch36: a2ps-forward-null.patch
39Patch37: a2ps-overrun-dynamic.patch
40Patch38: a2ps-overrun-static.patch
41Patch39: a2ps-resource-leak.patch
42BuildRoot: %{_tmppath}/%{name}-%{version}-root
43BuildRequires: emacsen, gperf, flex, automake, autoconf, texinfo
44Requires: fileutils, sh-utils, info, mktemp
45Requires: psutils, ghostscript
46Obsoletes: a2ps-i18n
47Provides: a2ps-i18n
48Vendor: Project Vine
49Distribution: Vine Linux
50
51# Vine Patches
52Patch100: a2ps-4.13b-ptex.patch
53Patch101: a2ps-4.14-ja_po.patch
54Patch102: a2ps-4.13-printers.patch
55Patch103: a2ps-4.13-pdf.patch
56Patch104: a2ps-4.13-x86_64.patch
57
58%description
59The a2ps filter converts text and other types of files to PostScript(TM).
60A2ps has pretty-printing capabilities and includes support for a wide
61number of programming languages, encodings (ISO Latins, Cyrillic, etc.),
62and medias.
63
64%description -l ja
65a2psは優れた印刷能力をもった, テキストを PostScriptへ変換するフィルタ
66です。
67これは、プログラム言語や文字コード(ISO Latins, Cyrillic, EUC-JP等)、
68用紙、(インタフェースに対して)NLSなどを広範囲にサポートしています。
69いくつかのファイルを別のアプリケーションでフィルタリングさせる機能も持っ
70ており、DVIや PostScript等を全く同じインタフェースで区別することなく印
71刷することができます。
72
73%prep
74%setup -q -a 1
75%patch0 -p1
76%patch1 -p1
77%patch3 -p1 -b .security
78%patch4 -p1 -b .glibcpaper
79%patch7 -p1 -b .sort
80%patch8 -p1 -b .iso5-minus
81%patch9 -p1 -b .perl
82
83%patch10 -p1 -b .euc
84%patch11 -p1 -b .ae
85%patch12 -p1 -b .attr
86
87# Use C locale's decimal point style (bug #53715).
88%patch13 -p1 -b .numeric
89
90# Use locale to determine a sensible default encoding (bug #64584).
91%patch14 -p1 -b .encoding
92
93# Fix koi8 tilde (bug #66393).
94%patch15 -p1 -b .tilde
95
96# Add Korean resource file (bug #81421).
97%patch17 -p1 -b .euckr
98
99# Prevent strsignal segfaulting (bug #104970).
100%patch18 -p1 -b .gnusource
101
102# Hebrew support (bug #113191).
103%patch22 -p1 -b .hebrew
104
105# Use external libtool (bug #225235).
106%patch34 -p1 -b .external-libtool
107
108# Fix problems in make_fonts_map script (bug #142299).  Patch from
109# Michal Jaegermann.
110%patch26 -p1 -b .make-fonts-map
111
112# Make pdiff default to not requiring wdiff (bug #68537).
113%patch28 -p1 -b .wdiff
114
115# Make pdiff use diff(1) properly (bug #156916).
116%patch29 -p1 -b .U
117
118# Fixed multibyte handling (bug #212154).
119%patch31 -p1 -b .mb
120
121# Remove dots in node names, patch from Vitezslav Crhonek (Bug #445971)
122%patch35 -p1 -b .nodes
123
124# Coverity fix (forward-null).
125%patch36 -p1 -b .forward-null
126
127# Coverity fix (overrun-dynamic).
128%patch37 -p1 -b .overrun-dynamic
129
130# Coverity fix (overrun-static).
131%patch38 -p1 -b .overrun-static
132
133# Coverity fix (resource-leak).
134%patch39 -p1 -b .resource-leak
135
136#
137# Vine patches
138#
139
140# use ptex, platex, pbibtex instead of tex, latex, bibtex
141%patch100 -p1 -b .ptex
142
143# year-month-day fix
144%patch101 -p0 -b .po
145
146# default output to stdout
147%patch102 -p0 -b .print
148
149# for ps2pdf
150%patch103 -p1 -b .pdf
151
152for file in AUTHORS ChangeLog; do
153  iconv -f latin1 -t UTF-8 < $file > $file.utf8
154  touch -c -r $file $file.utf8
155  mv $file.utf8 $file
156done
157
158# Fix reference to a2ps binary (bug #112930).
159perl -pi -e "s,/usr/local/bin,%{_bindir}," contrib/emacs/a2ps.el
160
161#%__libtoolize --copy --force
162#%__cp %{_datadir}/aclocal/libtool.m4 m4/
163#%__aclocal -I m4
164#%__autoconf
165
166rm -f po/ja.gmo
167
168%build
169chmod 644 {encoding/euc-jp.edf,README.eucJP}.euc
170chmod 644 encoding/euc-kr.edf.euckr
171touch `find $PWD`
172EMACS=emacs ./configure \
173  --prefix=%{_prefix} \
174  --libdir=%{_libdir} \
175  --sysconfdir=%{_sysconfdir} \
176  --infodir=%{_infodir} \
177  --mandir=%{_mandir} \
178  --datadir=%{_datadir} \
179  --with-medium=_glibc \
180  --enable-kanji
181
182# Remove prebuilt info files to force regeneration at build time
183find . -name "*.info*" -exec rm -f {} \;
184# force rebuilding scanners by flex - patched or not
185find src lib -name '*.l' -exec touch {} \;
186# these scanners use 'lineno' - incompatible with -CFe flex flags
187#(
188#    cd src
189#    /bin/sh ../auxdir/ylwrap "flex" sheets-map.l lex.yy.c sheets-map.c --
190#    /bin/sh ../auxdir/ylwrap "flex" lexssh.l lex.yy.c lexssh.c --
191#    cd ../lib
192#    /bin/sh ../auxdir/ylwrap "flex" lexppd.l lex.yy.c lexppd.c --
193#)
194
195make CFLAGS="$RPM_OPT_FLAGS"
196
197%install
198rm -rf $RPM_BUILD_ROOT
199make DESTDIR=$RPM_BUILD_ROOT install
200
201mkdir -p %{buildroot}%{_datadir}/a2ps/{afm,fonts}
202pushd i18n-fonts-0.1/afm
203install -m 0644 *.afm %{buildroot}%{_datadir}/a2ps/afm
204pushd ../fonts
205install -m 0644 *.pfb %{buildroot}%{_datadir}/a2ps/fonts
206popd
207popd
208
209# for ja_JP.UTF-8
210mv %{buildroot}%{_bindir}/a2ps %{buildroot}%{_bindir}/a2ps.bin
211install -c -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/a2ps
212ln -sf %{_bindir}/a2ps %{buildroot}%{_bindir}/a2pdf
213
214### FIXME ###
215inst()
216{
217mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/
218for f in contrib/emacs/*.el; do \
219  install -m 0644 $f %{buildroot}%{_datadir}/emacs/site-lisp/ ; done
220}
221
222rm -f $RPM_BUILD_ROOT%{_infodir}/dir
223gzip $RPM_BUILD_ROOT%{_infodir}/* || :
224
225%find_lang %name
226
227%clean
228rm -rf $RPM_BUILD_ROOT
229
230%post
231/sbin/install-info %{_infodir}/a2ps.info.gz %{_infodir}/dir
232/sbin/install-info %{_infodir}/ogonkify.info.gz %{_infodir}/dir
233/sbin/install-info %{_infodir}/regex.info.gz %{_infodir}/dir
234(cd %{_datadir}/a2ps/afm;
235        ./make_fonts_map.sh > /dev/null 2>&1 || /bin/true
236        if [ -f fonts.map.new ]; then
237            mv fonts.map.new fonts.map
238        fi
239)
240
241%preun
242if [ $1 = 0 ]; then
243   /sbin/install-info --delete %{_infodir}/a2ps.info.gz %{_infodir}/dir
244   /sbin/install-info --delete %{_infodir}/ogonkify.info.gz %{_infodir}/dir
245   /sbin/install-info --delete %{_infodir}/regex.info.gz %{_infodir}/dir
246fi
247
248%files -f %{name}.lang
249%defattr(-,root,root)
250%config (noreplace) %{_sysconfdir}/a2ps.cfg
251%config(noreplace) %{_sysconfdir}/a2ps-site.cfg
252%doc AUTHORS ChangeLog COPYING NEWS README TODO THANKS
253%{_bindir}/*
254%{_libdir}/*.so*
255%{_includedir}/*
256%{_infodir}/a2ps.info*
257%{_infodir}/ogonkify.info*
258%{_infodir}/regex.info*
259%{_mandir}/*/*
260%config %{_datadir}/a2ps/afm/fonts.map
261%{_datadir}/a2ps/afm/*.afm
262%{_datadir}/a2ps/afm/make_fonts_map.sh
263%{_datadir}/a2ps/README
264%{_datadir}/a2ps/encoding
265%{_datadir}/a2ps/fonts
266%{_datadir}/a2ps/ppd
267%{_datadir}/a2ps/ps
268%{_datadir}/a2ps/sheets
269%{_datadir}/ogonkify/
270%{_datadir}/emacs/site-lisp/*
271%dir %{_datadir}/a2ps/afm
272%dir %{_datadir}/a2ps
273
274%changelog
275* Mon May 07 2012 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.14-1
276- new upstream release
277- a2ps.sh: fix handling options
278
279* Fri Apr 20 2012 Munehiro Yamamoto <munepi@vinelinux.org> 4.13b-58
280- updated a2ps-4.13b-ptex.patch: replaced jbibtex with pbibtex
281
282* Mon Jun 21 2010 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.13b-57
283- a2ps.sh: fix suffix handling
284
285* Sat Jun 13 2009 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.13b-56
286- add x86_64 patch (patch104)
287
288* Thu Apr 30 2009 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.13b-55
289- modified a2ps/pf wrapper script for handling utf-8
290
291* Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 4.13b-54vl5
292- applied new versioning policy, spec in utf-8
293- fixed typo of release number at Sun Aug 20 2006
294
295#* Sun Aug 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.13b-30vl5
296* Sun Aug 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.13b-53vl1
297- add BuildRequires: emacsen instead of emacs
298- add BuildRequires: flex, automake, autoconf
299- add Requires: mktemp
300- update conf.patch (patch0)
301- move {po,printers,pdf}.patch to patch101-103
302- not apply po.patch (patch101)
303- sync with fedora core's 4.13b-53
304
305  * Fri Jul 14 2006 Tim Waugh <twaugh@redhat.com> 4.13b-53
306  - Fixed Hebrew font names (bug #174304).
307
308  * Tue May 30 2006 Tim Waugh <twaugh@redhat.com> 4.13b-51
309  - Build requires gettext (bug #193346).
310
311  * Tue Apr  4 2006 Tim Waugh <twaugh@redhat.com> 4.13b-50
312  - Use sort correctly in make_font_map.sh (bug #187884).
313
314  * Wed Feb 15 2006 Tim Waugh <twaugh@redhat.com> 4.13b-49
315  - Use mktemp in scripts.
316
317  * Thu May  5 2005 Tim Waugh <twaugh@redhat.com> 4.13b-47
318  - Make pdiff use diff(1) properly (bug #156916).
319
320  * Wed Mar 23 2005 Tim Waugh <twaugh@redhat.com> 4.13b-46
321  - Make pdiff default to not requiring wdiff (bug #68537).
322
323  * Wed Feb  2 2005 Tim Waugh <twaugh@redhat.com> 4.13b-44
324  - Don't try to run netscape.  Run mozilla instead (bug #121393).
325
326  * Thu Dec  9 2004 Tim Waugh <twaugh@redhat.com> 4.13b-43
327  - Fixed font path (bug #142294).
328  - Fixed problems in make_fonts_map script (bug #142299).  Patch from
329    Michal Jaegermann.
330
331  * Tue Dec  7 2004 Tim Waugh <twaugh@redhat.com> 4.13b-42
332  - Fixed configure.in.
333  - Fixed m4 files.
334  - Apply patch from bug #122699 to fix "too many includes" error.
335
336  * Tue Oct  5 2004 Tim Waugh <twaugh@redhat.com> 4.13b-41
337  - Build requires texinfo (bug #134663).
338
339  * Thu Jul 29 2004 Tim Waugh <twaugh@redhat.com> 4.13b-40
340  - Use environment variable to pass filenames to shell (bug #128647).
341
342  * Thu Jun 24 2004 Tim Waugh <twaugh@redhat.com> 4.13b-39
343  - Build requires libtool (bug #125823).
344
345  * Mon Mar 22 2004 Tim Waugh <twaugh@redhat.com> 4.13b-37
346  - Build requires flex (bug #118892).
347
348  * Tue Mar  2 2004 Tim Waugh <twaugh@redhat.com> 4.13b-35
349  - Prevent "error: conflicting types for 'malloc'".
350
351  * Fri Jan 16 2004 Tim Waugh <twaugh@redhat.com> 4.13b-33
352  - Post scriptlet requires sed, coreutils (bug #107322).
353
354  * Mon Jan 12 2004 Tim Waugh <twaugh@redhat.com> 4.13b-32
355  - Hebrew support (bug #113191).
356
357  * Tue Jan  6 2004 Tim Waugh <twaugh@redhat.com> 4.13b-31
358  - Build requires gperf.
359  - Fix problems in .y file spotted by stricter bison.
360  - Fix reference to a2ps binary (bug #112930).
361
362* Mon Dec 06 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.13b-30vl4
363- added {pdf,po,printers}.patch
364  changed default output dev from printer to stdout.
365- added a2pdf and requires ghostscript
366- build requires gperf
367
368* Thu Apr 24 2004 Satoshi MACHINO <machino@vinelinux.org> 4.13b-30vl2
369- fixed char set in spec
370        -- SJIS to EUC-JP
371
372* Mon Dec 22 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.13b-30vl1
373- modified for Vine
374- added patch100 for using ptex and platex instead of tex and latex
375
376* Fri Oct 17 2003 Tim Waugh <twaugh@redhat.com> 4.13b-30
377- Prevent strsignal segfaulting (bug #104970).
378
379* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
380- rebuilt
381
382* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
383- rebuilt
384
385* Thu Jan  9 2003 Tim Waugh <twaugh@redhat.com> 4.13b-27
386- Add Korean resource file (bug #81421).
387
388* Tue Jan  7 2003 Jeff Johnson <jbj@redhat.com> 4.13b-26
389- don't include -debuginfo files in package.
390
391* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
392- rebuild on all arches
393- remove lingering files from the buildroot that we aren't shipping
394- pass %%{_libdir} and %%{_datadir} to configure so that we are lib64'ized
395- fix bad perms on some files
396
397* Mon Aug  5 2002 Tim Waugh <twaugh@redhat.com> 4.13b-24
398- Prevent configure from going interactive (bug #70333).
399- Try to cope with UTF-8 a little bit (bug #70057).
400
401* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.13b-23
402- automated rebuild
403
404* Fri Jun 21 2002 Tim Waugh <twaugh@redhat.com> 4.13b-22
405- Fix koi8 tilde (bug #66393).
406
407* Thu May 30 2002 Tim Waugh <twaugh@redhat.com> 4.13b-21
408- Provide a2ps-i18n (bug #65231).
409- Fix default encoding (bug #64584).
410
411* Thu May 23 2002 Tim Powers <timp@redhat.com> 4.13b-20
412- automated rebuild
413
414* Mon Feb 25 2002 Tim Waugh <twaugh@redhat.com> 4.13b-19
415- Rebuild in new environment.
416
417* Tue Jan 22 2002 Tim Waugh <twaugh@redhat.com> 4.13b-18
418- Fix a2ps-4.13-conf.patch (bug #31360).
419- Add documentation about the default behaviour concerning LC_PAPER
420  (bug #43829).
421
422* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 4.13b-17
423- automated rebuild
424
425* Wed Jan  9 2002 Tim Waugh <twaugh@redhat.com>
426- Fix build with newer compiler.
427- s/Copyright:/License:/.
428- Use C locale's decimal point style (bug #53715).
429
430* Fri Jun  1 2001 Oliver Paukstadt <oliver.paukstadt@millenux.com>
431- fixed varargs-usage in title.c
432
433* Thu Apr 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
434- call libtoolize to allow easy porting to new archs
435
436* Thu Feb 28 2001 SATO Satoru <ssato@redhat.com>
437- bunzip2-ed all patches except eucjp
438
439* Thu Feb 22 2001 SATO Satoru <ssato@redhat.com>
440- support Japanese
441- bzip2-ed all patches
442- replace macros (%%makeinstall, %%configure) with traditional
443  commands to avoid some troubles those macros caused.
444
445* Tue Feb 20 2001 Trond Eivind Glomsr <teg@redhat.com>
446- Using letter is as weird as oz, fl. oz, Fahrenheit, lb etc.
447  Add a patch for using the glibc media type for giving US
448  letter for en_US (only locale with this paper), and A4
449  for everyone else.
450
451* Tue Feb 20 2001 Tim Powers <timp@redhat.com>
452- changed default medium back to letter (bug 27794)
453
454* Mon Feb 19 2001 Trond Eivind Glomsr <teg@redhat.com>
455- langify
456- use %%{_tmppath}
457
458* Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com>
459- Fix tmpfile security patch so that it actually _works_ (bug #27155).
460
461* Sun Jan 21 2001 Tim Waugh <twaugh@redhat.com>
462- New-style prereq line.
463- %%post script requires fileutils (mv) and sh-utils (true).  This
464  should fix bug #24251).
465
466* Mon Jan 08 2001 Trond Eivind Glomsr <teg@redhat.com>
467- Add /usr/bin/emacs to BuildRequires
468- A4
469- specify use of GNU Emacs for building
470
471* Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
472- security patch for tmpfile creation from Olaf Kirch <okir@lst.de>
473
474* Mon Dec 11 2000 Preston Brown <pbrown@redhat.com>
475- obsoleted old a2ps-i18n package (it was tiny) and included those fonts
476  directly here.
477
478* Thu Dec  7 2000 Tim Powers <timp@redhat.com>
479- built for dist-7.1
480
481* Mon Aug 07 2000 Tim Powers <timp@redhat.com>
482- update to 4.13b to fix some bugs, thanks to czar@acm.org for giving me a
483  heads up on this (bug #15679)
484
485* Mon Jul 24 2000 Prospector <prospector@redhat.com>
486- rebuilt
487
488* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
489- rebuilt
490
491* Fri Jun 23 2000 Tim Powers <timp@redhat.com>
492- info pages weren't getting gzipped.
493- stdout & stderror redirected to /dev/null in post section
494
495* Mon Jun 19 2000 Tim Powers <timp@redhat.com>
496- fixed bug 12451 which was a stupid mistake by me.
497- quiet the post section
498- added patches from michal@ellpspace.math.ualberta.ca and did some spec file
499  magic he suggested as well.
500
501* Fri Jun 2 2000 Tim Powers <timp@redhat.com>
502- fixed bug 5876, was not setting the paper size to Letter again :(
503- man pages and info pages to /usr/share, FHS compliant.
504- used macros wherever possible
505
506* Wed May 31 2000 Tim Powers <timp@rehat.com>
507- fixed bug #11078, now requires psutils
508
509* Wed Apr 26 2000 Tim Powers <timp@redhat.com>
510- updated to 4.13
511- compress man pages
512
513* Thu Feb 10 2000 Tim Powers <timp@redhat.com>
514- gzip man pages
515- strip binaries
516
517* Mon Jan 24 2000 Tim Powers <timp@redhat.com>
518- had to be more specific since the i18n stuff was removed from the package.
519        There is a new a2ps-i18n package which treats the
520        /usr/share/a2ps/afm/fonts.map file as a config file
521       
522* Wed Oct 27 1999 Tim Powers <timp@redhat.com>
523- added the --with-medium=Letter option to the configure process
524
525* Thu Aug 5 1999 Tim Powers <timp@redhat.com>
526- fixed problems with missing dirs as reported in bug 3822
527- built for powertools
528
529* Tue Jul 6 1999 Tim Powers <timp@redhat.com>
530- rebuilt for powertools 6.1
531
532* Wed May 12 1999 Bill Nottingham <notting@redhat.com>
533- add a2ps-site.cfg
534
535* Mon Apr 26 1999 Preston Brown <pbrown@redhat.com>
536- update to 4.12 for Powertools 6.0
537
538* Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com>
539- narrower range of %files splats.
540- install info correctly.
541- new description/summary text.
542
543* Tue Oct 06 1998 Michael Maher <mike@redhat.com>
544- updated source
545
546* Sat Jul 04 1998 Michael Maher <mike@redhat.com>
547- built package
Note: See TracBrowser for help on using the repository browser.