]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- release 14,
[packages/a2ps.git] / a2ps.spec
1 Summary:        Text to Postscript filter
2 Summary(pl):    Filtr text/plain do  Postscriptu
3 Name:           a2ps
4 Version:        4.13b
5 Release:        14
6 License:        GPL
7 Group:          Applications/Text
8 Group(de):      Applikationen/Text
9 Group(fr):      Utilitaires/Texte
10 Group(pl):      Aplikacje/Tekst
11 Source0:        ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
12 Source1:        ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
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 URL:            http://www.inf.enst.fr/~demaille/a2ps/
21 Prereq:         /sbin/ldconfig
22 Requires:       psutils
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _sysconfdir     /etc/a2ps
26
27 %description
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.
34
35 %description -l pl 
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.
44
45 %package devel
46 Summary:        Header files and development documentation for a2ps
47 Summary(pl):    Pliki nag³ówkowe i dokunentacja do a2ps
48 Group:          Libraries
49 Group(de):      Libraries
50 Group(es):      Bibliotecas
51 Group(fr):      Librairies
52 Group(pl):      Biblioteki
53 Requires:       %{name} = %{version}
54
55 %description devel
56 Header files and development documentation for a2ps.
57
58 %description devel -l pl
59 Pliki nag³ówkowe i dokumentacja do a2ps.
60
61 %package static
62 Summary:        a2ps static libraries
63 Summary(pl):    Biblioteki statyczne do a2ps
64 Group:          Libraries
65 Group(de):      Libraries
66 Group(es):      Bibliotecas
67 Group(fr):      Librairies
68 Group(pl):      Biblioteki
69 Requires:       %{name}-devel = %{version}
70
71 %description static
72 a2ps static libraries.
73
74 %description static -l pl
75 Biblioteki statyczne do a2ps.
76
77 %prep
78 %setup  -q -n %{name}-4.13 -a 1
79 %patch0 -p1
80 %patch1 -p1
81 %patch2 -p1
82 %patch3 -p1
83 %patch4 -p1
84 %patch5 -p1
85 %patch6 -p1
86
87 %build
88 %configure \
89         --with-gnu-gettext \
90         --with-medium=_glibc  \
91         --with-encoding=latin1 \
92         --enable-shared \
93         --enable-kanji
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT/usr/share/a2ps/{afm,fonts}
99
100 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
101
102 mv -f tmp contrib/emacs/Makefile
103
104 %{__make} install DESTDIR=$RPM_BUILD_ROOT
105
106 gzip -9nf AUTHORS ChangeLog NEWS README THANKS
107
108 install i18n-fonts-0.1/afm/*.afm %{buildroot}/usr/share/a2ps/afm
109 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}/usr/share/a2ps/fonts
110
111 %find_lang %{name}
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
118 /sbin/ldconfig
119
120 %postun
121 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
122 /sbin/ldconfig
123
124 %files -f %{name}.lang
125 %defattr(644,root,root,755)
126 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
127
128 %dir %{_sysconfdir}
129 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
130 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
131
132 %attr(755,root,root) %{_bindir}/*
133 %attr(755,root,root) %{_libdir}/lib*.so.*.*
134 %{_mandir}/man1/*
135 %{_infodir}/a2ps*info*
136 %{_infodir}/ogonkify*info*
137
138 %dir %{_datadir}/a2ps
139 %dir %{_datadir}/a2ps/afm
140 %{_datadir}/a2ps/afm/*.afm
141 %{_datadir}/a2ps/afm/*.map
142 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
143
144 %{_datadir}/a2ps/encoding
145 %{_datadir}/a2ps/fonts
146 %{_datadir}/a2ps/ppd
147 %{_datadir}/a2ps/ps
148 %{_datadir}/a2ps/sheets
149
150 %dir %{_datadir}/ogonkify
151 %{_datadir}/ogonkify/*.enc
152 %{_datadir}/ogonkify/*.ps
153 %{_datadir}/ogonkify/afm
154 %{_datadir}/ogonkify/fonts
155
156 %files devel
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_libdir}/lib*.la
159 %attr(755,root,root) %{_libdir}/lib*.so
160 %{_includedir}/*
161
162 %files static
163 %defattr(644,root,root,755)
164 %{_libdir}/lib*.a
This page took 0.04475 seconds and 3 git commands to generate.