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