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