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