]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- release 3.
[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:        3
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 %configure \
70         --with-gnu-gettext \
71         --with-medium=A4  \
72         --with-encoding=latin1 \
73         --enable-shared
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
80
81 mv -f tmp contrib/emacs/Makefile
82 %{__make} install DESTDIR=$RPM_BUILD_ROOT
83
84 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
85
86 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
87         $RPM_BUILD_ROOT%{_mandir}/man1/* \
88         AUTHORS ChangeLog NEWS README THANKS
89
90 %find_lang %{name}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post
96 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
97 /sbin/ldconfig
98
99 %postun
100 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
101 /sbin/ldconfig
102
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
106
107 %dir %{_sysconfdir}
108 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
109 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
110
111 %attr(755,root,root) %{_bindir}/*
112 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113 %{_mandir}/man1/*
114 %{_infodir}/a2ps*info*
115 %{_infodir}/ogonkify*info*
116
117 %dir %{_datadir}/a2ps/afm
118 %{_datadir}/a2ps/afm/*.afm
119 %{_datadir}/a2ps/afm/*.map
120 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
121
122 %{_datadir}/a2ps/encoding
123 %{_datadir}/a2ps/fonts
124 %{_datadir}/a2ps/ppd
125 %{_datadir}/a2ps/ps
126 %{_datadir}/a2ps/sheets
127
128 %dir %{_datadir}/ogonkify
129 %{_datadir}/ogonkify/*.enc
130 %{_datadir}/ogonkify/*.ps
131 %{_datadir}/ogonkify/afm
132 %{_datadir}/ogonkify/fonts
133
134 %files devel
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/lib*.la
137 %attr(755,root,root) %{_libdir}/lib*.so
138 %{_includedir}/*
139
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/lib*.a
This page took 0.074225 seconds and 3 git commands to generate.