1 Summary: Text to Postscript filter
2 Summary(pl): Filtr text/plain do Postscriptu
7 Group: Applications/Text
8 Source0: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
9 Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
10 Source2: ogonkify.1.pl
11 Patch0: %{name}-info.patch
12 Patch1: %{name}-security.patch
13 Patch2: %{name}-etc.patch
14 Patch3: %{name}-flex.patch
15 Patch4: %{name}-conf.patch
16 Patch5: %{name}-glibcpaper.patch
17 Patch6: %{name}-autoenc.patch
18 Patch7: %{name}-i18n.patch
19 URL: http://www.inf.enst.fr/~demaille/a2ps/
21 Prereq: /sbin/ldconfig
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sysconfdir /etc/a2ps
28 a2ps is a text to PostScript filter with pretty-printing capabilities.
29 It includes support for a wide number of programming languages,
30 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
31 (for the interface). It has also the ability to delegate the
32 processing of some files to other applications, letting you print DVI,
33 PostScript etc. with the very same interface.
36 A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików
37 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
38 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
39 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
40 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
41 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
42 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
43 PostScript zawieraj±cy polskie znaki.
46 Summary: Header files and development documentation for a2ps
47 Summary(pl): Pliki nag³ówkowe i dokunentacja do a2ps
48 Group: Development/Libraries
49 Requires: %{name} = %{version}
52 Header files and development documentation for a2ps.
54 %description devel -l pl
55 Pliki nag³ówkowe i dokumentacja do a2ps.
58 Summary: a2ps static libraries
59 Summary(pl): Biblioteki statyczne do a2ps
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}
64 a2ps static libraries.
66 %description static -l pl
67 Biblioteki statyczne do a2ps.
70 %setup -q -n %{name}-4.13 -a 1
83 --with-medium=_glibc \
84 --with-encoding=latin1 \
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
92 $RPM_BUILD_ROOT%{_mandir}/pl/man1
94 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
96 mv -f tmp contrib/emacs/Makefile
98 %{__make} install DESTDIR=$RPM_BUILD_ROOT
100 gzip -9nf AUTHORS ChangeLog NEWS README THANKS
102 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
103 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
104 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
108 rm -rf $RPM_BUILD_ROOT
111 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
115 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
123 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
124 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
126 %attr(755,root,root) %{_bindir}/*
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
129 %lang(pl) %{_mandir}/pl/man1/*
130 %{_infodir}/a2ps*info*
131 %{_infodir}/ogonkify*info*
133 %dir %{_datadir}/a2ps
134 %dir %{_datadir}/a2ps/afm
135 %{_datadir}/a2ps/afm/*.afm
136 %{_datadir}/a2ps/afm/*.map
137 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
139 %{_datadir}/a2ps/encoding
140 %{_datadir}/a2ps/fonts
143 %{_datadir}/a2ps/sheets
145 %dir %{_datadir}/ogonkify
146 %{_datadir}/ogonkify/*.enc
147 %{_datadir}/ogonkify/*.ps
148 %{_datadir}/ogonkify/afm
149 %{_datadir}/ogonkify/fonts
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/lib*.la
154 %attr(755,root,root) %{_libdir}/lib*.so
158 %defattr(644,root,root,755)