]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- disabled shared libs (broken)
[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:        1
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:         /sbin/ldconfig
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 #autoheader
67 #autoconf
68 %configure \
69         --with-gnu-gettext \
70         --with-medium=A4  \
71         --with-encoding=latin1 \
72         --disable-shared
73 make
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
79
80 mv tmp contrib/emacs/Makefile
81 make install DESTDIR=$RPM_BUILD_ROOT
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 %post
90 /sbin/install-info %{_infodir}/a2ps.info.gz /etc/info-dir 
91 /sbin/install-info %{_infodir}/ogonkify.info.gz /etc/info-dir 
92 /sbin/ldconfig
93
94 %preun
95 if [ $1 = 0 ]; then
96         /sbin/install-info --delete %{_infodir}/a2ps.info.gz /etc/info-dir
97         /sbin/install-info --delete %{_infodir}/ogonkify.info.gz /etc/info-dir
98 fi
99
100 %postun 
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 %config(noreplace) %verify(not size mtime md5) /etc/a2ps.cfg
108
109 %attr(755,root,root) %{_bindir}/*
110 #%attr(755,root,root) %{_libdir}/*.so.*
111 %{_mandir}/man1/*
112 %{_infodir}/a2ps*info*
113 %{_infodir}/ogonkify*info*
114
115 %dir %{_datadir}/a2ps/afm
116 %{_datadir}/a2ps/afm/*.afm
117 %{_datadir}/a2ps/afm/*.map
118 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
119
120 %dir %{_datadir}/a2ps/encoding
121 %{_datadir}/a2ps/encoding/*
122
123 %dir %{_datadir}/a2ps/fonts
124 %{_datadir}/a2ps/fonts/*
125
126 %dir %{_datadir}/ogonkify
127 %{_datadir}/ogonkify/*.enc
128 %{_datadir}/ogonkify/*.ps
129
130 %dir %{_datadir}/a2ps/ppd
131 %{_datadir}/a2ps/ppd/*.ppd
132
133 %dir %{_datadir}/a2ps/ps
134 %{_datadir}/a2ps/ps/*
135
136 %dir %{_datadir}/a2ps/sheets
137 %{_datadir}/a2ps/sheets/*
138
139 %files devel
140 %defattr(644,root,root,755)
141 #%attr(755,root,root) %{_libdir}/lib*.so
142 %{_includedir}/*
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/lib*.a
147
148 %clean
149 rm -rf $RPM_BUILD_ROOT
This page took 0.042955 seconds and 4 git commands to generate.