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