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