source: projects/specs/branches/6/a/a2ps/a2ps-vl.spec @ 6095

Revision 6095, 16.2 KB checked in by munepi, 12 years ago (diff)

updated a2ps-vl.spec

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