1 Summary: Text to Postscript filter
2 Summary(ja): ¥Æ¥¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
3 Summary(pl): Filtr text/plain do Postscriptu
4 Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷
9 Group: Applications/Text
10 Source0: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
11 Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
12 Source2: ogonkify.1.pl
13 Patch0: %{name}-info.patch
14 Patch1: %{name}-security.patch
15 Patch2: %{name}-etc.patch
16 Patch3: %{name}-flex.patch
17 Patch4: %{name}-conf.patch
18 Patch5: %{name}-glibcpaper.patch
19 Patch6: %{name}-autoenc.patch
20 Patch7: %{name}-i18n.patch
21 Patch8: %{name}-ogonkify-xfig-fix.patch
22 URL: http://www.inf.enst.fr/~demaille/a2ps/
24 Prereq: /sbin/ldconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _sysconfdir /etc/a2ps
31 a2ps is a text to PostScript filter with pretty-printing capabilities.
32 It includes support for a wide number of programming languages,
33 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
34 (for the interface). It has also the ability to delegate the
35 processing of some files to other applications, letting you print DVI,
36 PostScript etc. with the very same interface.
39 A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików
40 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
41 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
42 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
43 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
44 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
45 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
46 PostScript zawieraj±cy polskie znaki.
49 Summary: Header files and development documentation for a2ps
50 Summary(pl): Pliki nag³ówkowe i dokunentacja do a2ps
51 Group: Development/Libraries
52 Requires: %{name} = %{version}
55 Header files and development documentation for a2ps.
57 %description devel -l pl
58 Pliki nag³ówkowe i dokumentacja do a2ps.
61 Summary: a2ps static libraries
62 Summary(pl): Biblioteki statyczne do a2ps
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}
67 a2ps static libraries.
69 %description static -l pl
70 Biblioteki statyczne do a2ps.
73 %setup -q -n %{name}-4.13 -a 1
86 --with-medium=_glibc \
87 --with-encoding=latin1 \
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
95 $RPM_BUILD_ROOT%{_mandir}/pl/man1
97 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
99 mv -f tmp contrib/emacs/Makefile
101 %{__make} install DESTDIR=$RPM_BUILD_ROOT
103 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
104 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
105 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
110 rm -rf $RPM_BUILD_ROOT
113 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README THANKS
125 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
126 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
128 %attr(755,root,root) %{_bindir}/*
129 %attr(755,root,root) %{_libdir}/lib*.so.*.*
131 %lang(pl) %{_mandir}/pl/man1/*
132 %{_infodir}/a2ps*info*
133 %{_infodir}/ogonkify*info*
135 %dir %{_datadir}/a2ps
136 %dir %{_datadir}/a2ps/afm
137 %{_datadir}/a2ps/afm/*.afm
138 %{_datadir}/a2ps/afm/*.map
139 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
141 %{_datadir}/a2ps/encoding
142 %{_datadir}/a2ps/fonts
145 %{_datadir}/a2ps/sheets
147 %dir %{_datadir}/ogonkify
148 %{_datadir}/ogonkify/*.enc
149 %{_datadir}/ogonkify/*.ps
150 %{_datadir}/ogonkify/afm
151 %{_datadir}/ogonkify/fonts
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_libdir}/lib*.la
156 %attr(755,root,root) %{_libdir}/lib*.so
160 %defattr(644,root,root,755)