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

Revision 521, 16.0 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Summary: Converts text and other types of files to PostScript(TM).
2Summary(ja): テキストなどのPostscriptへのフィルタ
3Name: a2ps
4Version: 4.13b
5Release: 56%{?_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, jbibtex 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* Sat Jun 13 2009 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.13b-54
275- add x86_64 patch (patch104)
276
277* Thu Apr 30 2009 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.13b-55
278- modified a2ps/pf wrapper script for handling utf-8
279
280* Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 4.13b-54vl5
281- applied new versioning policy, spec in utf-8
282- fixed typo of release number at Sun Aug 20 2006
283
284#* Sun Aug 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.13b-30vl5
285* Sun Aug 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.13b-53vl1
286- add BuildRequires: emacsen instead of emacs
287- add BuildRequires: flex, automake, autoconf
288- add Requires: mktemp
289- update conf.patch (patch0)
290- move {po,printers,pdf}.patch to patch101-103
291- not apply po.patch (patch101)
292- sync with fedora core's 4.13b-53
293
294  * Fri Jul 14 2006 Tim Waugh <twaugh@redhat.com> 4.13b-53
295  - Fixed Hebrew font names (bug #174304).
296
297  * Tue May 30 2006 Tim Waugh <twaugh@redhat.com> 4.13b-51
298  - Build requires gettext (bug #193346).
299
300  * Tue Apr  4 2006 Tim Waugh <twaugh@redhat.com> 4.13b-50
301  - Use sort correctly in make_font_map.sh (bug #187884).
302
303  * Wed Feb 15 2006 Tim Waugh <twaugh@redhat.com> 4.13b-49
304  - Use mktemp in scripts.
305
306  * Thu May  5 2005 Tim Waugh <twaugh@redhat.com> 4.13b-47
307  - Make pdiff use diff(1) properly (bug #156916).
308
309  * Wed Mar 23 2005 Tim Waugh <twaugh@redhat.com> 4.13b-46
310  - Make pdiff default to not requiring wdiff (bug #68537).
311
312  * Wed Feb  2 2005 Tim Waugh <twaugh@redhat.com> 4.13b-44
313  - Don't try to run netscape.  Run mozilla instead (bug #121393).
314
315  * Thu Dec  9 2004 Tim Waugh <twaugh@redhat.com> 4.13b-43
316  - Fixed font path (bug #142294).
317  - Fixed problems in make_fonts_map script (bug #142299).  Patch from
318    Michal Jaegermann.
319
320  * Tue Dec  7 2004 Tim Waugh <twaugh@redhat.com> 4.13b-42
321  - Fixed configure.in.
322  - Fixed m4 files.
323  - Apply patch from bug #122699 to fix "too many includes" error.
324
325  * Tue Oct  5 2004 Tim Waugh <twaugh@redhat.com> 4.13b-41
326  - Build requires texinfo (bug #134663).
327
328  * Thu Jul 29 2004 Tim Waugh <twaugh@redhat.com> 4.13b-40
329  - Use environment variable to pass filenames to shell (bug #128647).
330
331  * Thu Jun 24 2004 Tim Waugh <twaugh@redhat.com> 4.13b-39
332  - Build requires libtool (bug #125823).
333
334  * Mon Mar 22 2004 Tim Waugh <twaugh@redhat.com> 4.13b-37
335  - Build requires flex (bug #118892).
336
337  * Tue Mar  2 2004 Tim Waugh <twaugh@redhat.com> 4.13b-35
338  - Prevent "error: conflicting types for 'malloc'".
339
340  * Fri Jan 16 2004 Tim Waugh <twaugh@redhat.com> 4.13b-33
341  - Post scriptlet requires sed, coreutils (bug #107322).
342
343  * Mon Jan 12 2004 Tim Waugh <twaugh@redhat.com> 4.13b-32
344  - Hebrew support (bug #113191).
345
346  * Tue Jan  6 2004 Tim Waugh <twaugh@redhat.com> 4.13b-31
347  - Build requires gperf.
348  - Fix problems in .y file spotted by stricter bison.
349  - Fix reference to a2ps binary (bug #112930).
350
351* Mon Dec 06 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.13b-30vl4
352- added {pdf,po,printers}.patch
353  changed default output dev from printer to stdout.
354- added a2pdf and requires ghostscript
355- build requires gperf
356
357* Thu Apr 24 2004 Satoshi MACHINO <machino@vinelinux.org> 4.13b-30vl2
358- fixed char set in spec
359        -- SJIS to EUC-JP
360
361* Mon Dec 22 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.13b-30vl1
362- modified for Vine
363- added patch100 for using ptex and platex instead of tex and latex
364
365* Fri Oct 17 2003 Tim Waugh <twaugh@redhat.com> 4.13b-30
366- Prevent strsignal segfaulting (bug #104970).
367
368* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
369- rebuilt
370
371* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
372- rebuilt
373
374* Thu Jan  9 2003 Tim Waugh <twaugh@redhat.com> 4.13b-27
375- Add Korean resource file (bug #81421).
376
377* Tue Jan  7 2003 Jeff Johnson <jbj@redhat.com> 4.13b-26
378- don't include -debuginfo files in package.
379
380* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
381- rebuild on all arches
382- remove lingering files from the buildroot that we aren't shipping
383- pass %%{_libdir} and %%{_datadir} to configure so that we are lib64'ized
384- fix bad perms on some files
385
386* Mon Aug  5 2002 Tim Waugh <twaugh@redhat.com> 4.13b-24
387- Prevent configure from going interactive (bug #70333).
388- Try to cope with UTF-8 a little bit (bug #70057).
389
390* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.13b-23
391- automated rebuild
392
393* Fri Jun 21 2002 Tim Waugh <twaugh@redhat.com> 4.13b-22
394- Fix koi8 tilde (bug #66393).
395
396* Thu May 30 2002 Tim Waugh <twaugh@redhat.com> 4.13b-21
397- Provide a2ps-i18n (bug #65231).
398- Fix default encoding (bug #64584).
399
400* Thu May 23 2002 Tim Powers <timp@redhat.com> 4.13b-20
401- automated rebuild
402
403* Mon Feb 25 2002 Tim Waugh <twaugh@redhat.com> 4.13b-19
404- Rebuild in new environment.
405
406* Tue Jan 22 2002 Tim Waugh <twaugh@redhat.com> 4.13b-18
407- Fix a2ps-4.13-conf.patch (bug #31360).
408- Add documentation about the default behaviour concerning LC_PAPER
409  (bug #43829).
410
411* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 4.13b-17
412- automated rebuild
413
414* Wed Jan  9 2002 Tim Waugh <twaugh@redhat.com>
415- Fix build with newer compiler.
416- s/Copyright:/License:/.
417- Use C locale's decimal point style (bug #53715).
418
419* Fri Jun  1 2001 Oliver Paukstadt <oliver.paukstadt@millenux.com>
420- fixed varargs-usage in title.c
421
422* Thu Apr 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
423- call libtoolize to allow easy porting to new archs
424
425* Thu Feb 28 2001 SATO Satoru <ssato@redhat.com>
426- bunzip2-ed all patches except eucjp
427
428* Thu Feb 22 2001 SATO Satoru <ssato@redhat.com>
429- support Japanese
430- bzip2-ed all patches
431- replace macros (%%makeinstall, %%configure) with traditional
432  commands to avoid some troubles those macros caused.
433
434* Tue Feb 20 2001 Trond Eivind Glomsr <teg@redhat.com>
435- Using letter is as weird as oz, fl. oz, Fahrenheit, lb etc.
436  Add a patch for using the glibc media type for giving US
437  letter for en_US (only locale with this paper), and A4
438  for everyone else.
439
440* Tue Feb 20 2001 Tim Powers <timp@redhat.com>
441- changed default medium back to letter (bug 27794)
442
443* Mon Feb 19 2001 Trond Eivind Glomsr <teg@redhat.com>
444- langify
445- use %%{_tmppath}
446
447* Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com>
448- Fix tmpfile security patch so that it actually _works_ (bug #27155).
449
450* Sun Jan 21 2001 Tim Waugh <twaugh@redhat.com>
451- New-style prereq line.
452- %%post script requires fileutils (mv) and sh-utils (true).  This
453  should fix bug #24251).
454
455* Mon Jan 08 2001 Trond Eivind Glomsr <teg@redhat.com>
456- Add /usr/bin/emacs to BuildRequires
457- A4
458- specify use of GNU Emacs for building
459
460* Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
461- security patch for tmpfile creation from Olaf Kirch <okir@lst.de>
462
463* Mon Dec 11 2000 Preston Brown <pbrown@redhat.com>
464- obsoleted old a2ps-i18n package (it was tiny) and included those fonts
465  directly here.
466
467* Thu Dec  7 2000 Tim Powers <timp@redhat.com>
468- built for dist-7.1
469
470* Mon Aug 07 2000 Tim Powers <timp@redhat.com>
471- update to 4.13b to fix some bugs, thanks to czar@acm.org for giving me a
472  heads up on this (bug #15679)
473
474* Mon Jul 24 2000 Prospector <prospector@redhat.com>
475- rebuilt
476
477* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
478- rebuilt
479
480* Fri Jun 23 2000 Tim Powers <timp@redhat.com>
481- info pages weren't getting gzipped.
482- stdout & stderror redirected to /dev/null in post section
483
484* Mon Jun 19 2000 Tim Powers <timp@redhat.com>
485- fixed bug 12451 which was a stupid mistake by me.
486- quiet the post section
487- added patches from michal@ellpspace.math.ualberta.ca and did some spec file
488  magic he suggested as well.
489
490* Fri Jun 2 2000 Tim Powers <timp@redhat.com>
491- fixed bug 5876, was not setting the paper size to Letter again :(
492- man pages and info pages to /usr/share, FHS compliant.
493- used macros wherever possible
494
495* Wed May 31 2000 Tim Powers <timp@rehat.com>
496- fixed bug #11078, now requires psutils
497
498* Wed Apr 26 2000 Tim Powers <timp@redhat.com>
499- updated to 4.13
500- compress man pages
501
502* Thu Feb 10 2000 Tim Powers <timp@redhat.com>
503- gzip man pages
504- strip binaries
505
506* Mon Jan 24 2000 Tim Powers <timp@redhat.com>
507- had to be more specific since the i18n stuff was removed from the package.
508        There is a new a2ps-i18n package which treats the
509        /usr/share/a2ps/afm/fonts.map file as a config file
510       
511* Wed Oct 27 1999 Tim Powers <timp@redhat.com>
512- added the --with-medium=Letter option to the configure process
513
514* Thu Aug 5 1999 Tim Powers <timp@redhat.com>
515- fixed problems with missing dirs as reported in bug 3822
516- built for powertools
517
518* Tue Jul 6 1999 Tim Powers <timp@redhat.com>
519- rebuilt for powertools 6.1
520
521* Wed May 12 1999 Bill Nottingham <notting@redhat.com>
522- add a2ps-site.cfg
523
524* Mon Apr 26 1999 Preston Brown <pbrown@redhat.com>
525- update to 4.12 for Powertools 6.0
526
527* Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com>
528- narrower range of %files splats.
529- install info correctly.
530- new description/summary text.
531
532* Tue Oct 06 1998 Michael Maher <mike@redhat.com>
533- updated source
534
535* Sat Jul 04 1998 Michael Maher <mike@redhat.com>
536- built package
Note: See TracBrowser for help on using the repository browser.