]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- added missing "Prereq: /sbin/ldconfig".
[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.12h
5 Release:        1
6 License:        GPL
7 Group:          Utilities/Text
8 Group(pl):      Narzêdzia/Tekst
9 Source:         ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tgz
10 Patch0:         a2ps-info.patch
11 Prereq:         /usr/sbin/fix-info-dir
12 Prereq:         /sbin/ldconfig
13 URL:            http://www.inf.enst.fr/~demaille/a2ps/
14 BuildRoot:      /tmp/%{name}-%{version}-root
15
16 %define         _sysconfdir     /etc/a2ps
17
18 %description
19 a2ps is a text to PostScript filter with pretty-printing capabilities. It 
20 includes support for a wide number of programming languages, encodings (ISO 
21 Latins, Cyrillic etc.), medias, and spoken languages (for the interface). 
22 It has also the ability to delegate the processing of some files to other 
23 applications, letting you print DVI, PostScript etc. with the very same 
24 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 %patch0 -p1
64
65 %build
66 LDFLAGS="-s"; export LDFLAGS
67 %configure \
68         --with-gnu-gettext \
69         --with-medium=A4  \
70         --with-encoding=latin1 \
71         --enable-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 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
83
84 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
85         $RPM_BUILD_ROOT%{_mandir}/man1/* \
86         AUTHORS ChangeLog NEWS README THANKS
87
88 %find_lang %{name}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post
94 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
95 /sbin/ldconfig
96
97 %postun
98 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
99 /sbin/ldconfig
100
101 %files -f %{name}.lang
102 %defattr(644,root,root,755)
103 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
104
105 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
106 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
107
108 %attr(755,root,root) %{_bindir}/*
109 %attr(755,root,root) %{_libdir}/lib*.so.*.*
110 %{_mandir}/man1/*
111 %{_infodir}/a2ps*info*
112 %{_infodir}/ogonkify*info*
113
114 %dir %{_datadir}/a2ps/afm
115 %{_datadir}/a2ps/afm/*.afm
116 %{_datadir}/a2ps/afm/*.map
117 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
118
119 %{_datadir}/a2ps/encoding
120 %{_datadir}/a2ps/fonts
121 %{_datadir}/a2ps/ppd
122 %{_datadir}/a2ps/ps
123 %{_datadir}/a2ps/sheets
124
125 %dir %{_datadir}/ogonkify
126 %{_datadir}/ogonkify/*.enc
127 %{_datadir}/ogonkify/*.ps
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/lib*.la
132 %attr(755,root,root) %{_libdir}/lib*.so
133 %{_includedir}/*
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/lib*.a
This page took 0.067082 seconds and 4 git commands to generate.