]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- use macros in %{pre,post}{,un}
[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:        16
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 Patch7:         %{name}-i18n.patch
21 URL:            http://www.inf.enst.fr/~demaille/a2ps/
22 Prereq:         /sbin/ldconfig
23 Requires:       psutils
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _sysconfdir     /etc/a2ps
27
28 %description
29 a2ps is a text to PostScript filter with pretty-printing capabilities.
30 It includes support for a wide number of programming languages,
31 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
32 (for the interface). It has also the ability to delegate the
33 processing of some files to other applications, letting you print DVI,
34 PostScript etc. with the very same interface.
35
36 %description -l pl 
37 A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików
38 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
39 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
40 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
41 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
42 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
43 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
44 PostScript zawieraj±cy polskie znaki.
45
46 %package devel
47 Summary:        Header files and development documentation for a2ps
48 Summary(pl):    Pliki nag³ówkowe i dokunentacja do a2ps
49 Group:          Libraries
50 Group(de):      Libraries
51 Group(es):      Bibliotecas
52 Group(fr):      Librairies
53 Group(pl):      Biblioteki
54 Requires:       %{name} = %{version}
55
56 %description devel
57 Header files and development documentation for a2ps.
58
59 %description devel -l pl
60 Pliki nag³ówkowe i dokumentacja do a2ps.
61
62 %package static
63 Summary:        a2ps static libraries
64 Summary(pl):    Biblioteki statyczne do a2ps
65 Group:          Libraries
66 Group(de):      Libraries
67 Group(es):      Bibliotecas
68 Group(fr):      Librairies
69 Group(pl):      Biblioteki
70 Requires:       %{name}-devel = %{version}
71
72 %description static
73 a2ps static libraries.
74
75 %description static -l pl
76 Biblioteki statyczne do a2ps.
77
78 %prep
79 %setup  -q -n %{name}-4.13 -a 1
80 %patch0 -p1
81 %patch1 -p1
82 %patch2 -p1
83 %patch3 -p1
84 %patch4 -p1
85 %patch5 -p1
86 %patch6 -p1
87 %patch7 -p1
88
89 %build
90 %configure \
91         --with-gnu-gettext \
92         --with-medium=_glibc  \
93         --with-encoding=latin1 \
94         --enable-shared \
95         --enable-kanji
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts}
101
102 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
103
104 mv -f tmp contrib/emacs/Makefile
105
106 %{__make} install DESTDIR=$RPM_BUILD_ROOT
107
108 gzip -9nf AUTHORS ChangeLog NEWS README THANKS
109
110 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
111 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
112
113 %find_lang %{name}
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post
119 %fix_info_dir
120 /sbin/ldconfig
121
122 %postun
123 %fix_info_dir
124 /sbin/ldconfig
125
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
129
130 %dir %{_sysconfdir}
131 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
132 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
133
134 %attr(755,root,root) %{_bindir}/*
135 %attr(755,root,root) %{_libdir}/lib*.so.*.*
136 %{_mandir}/man1/*
137 %{_infodir}/a2ps*info*
138 %{_infodir}/ogonkify*info*
139
140 %dir %{_datadir}/a2ps
141 %dir %{_datadir}/a2ps/afm
142 %{_datadir}/a2ps/afm/*.afm
143 %{_datadir}/a2ps/afm/*.map
144 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
145
146 %{_datadir}/a2ps/encoding
147 %{_datadir}/a2ps/fonts
148 %{_datadir}/a2ps/ppd
149 %{_datadir}/a2ps/ps
150 %{_datadir}/a2ps/sheets
151
152 %dir %{_datadir}/ogonkify
153 %{_datadir}/ogonkify/*.enc
154 %{_datadir}/ogonkify/*.ps
155 %{_datadir}/ogonkify/afm
156 %{_datadir}/ogonkify/fonts
157
158 %files devel
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_libdir}/lib*.la
161 %attr(755,root,root) %{_libdir}/lib*.so
162 %{_includedir}/*
163
164 %files static
165 %defattr(644,root,root,755)
166 %{_libdir}/lib*.a
This page took 0.080564 seconds and 4 git commands to generate.