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