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