]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- s-/usr/share-%{_datadir}-
[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.10.4
5 Release:        6
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.bz2
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 %description
16 a2ps is a text to PostScript filter with pretty-printing capabilities.
17 It includes support for a wide number of programming languages,
18 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
19 (for the interface).
20 It has also the ability to delegate the processing of some files to
21 other applications, letting you print DVI, PostScript etc. with the
22 very same interface.
23
24 %description -l pl 
25 A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików tekstowych w 
26 PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków programowania, 
27 zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci papieru, i jêzyków 
28 komunikacji z u¿ytkownikiem. Potrafi tak¿e przekazaæ przetwarzanie plików 
29 do innych programów (tak, ¿e mo¿na wszystko drukowaæ (DVI, PostScript) przy 
30 u¿yciu tego samego polecenia. Zawiera program ,,ogonkify'' poprawiaj±cy 
31 b³êdnie zakodowany PostScript zawieraj±cy polskie znaki. 
32
33 %package        devel
34 Summary:        Header files and development documentation for a2ps
35 Summary(pl):    Pliki nag³ówkowe i dokunentacja do a2ps
36 Group:          Libraries
37 Group(pl):      Biblioteki
38 Requires:       %{name} = %{version}
39
40 %description devel
41 Header files and development documentation for a2ps.
42
43 %description devel -l pl
44 Pliki nag³ówkowe i dokumentacja do a2ps.
45
46 %package        static
47 Summary:        a2ps static libraries
48 Summary(pl):    Biblioteki statyczne do a2ps
49 Group:          Libraries
50 Group(pl):      Biblioteki
51 Requires:       %{name}-devel = %{version}
52
53 %description static
54 a2ps static libraries.
55
56 %description static -l pl
57 Biblioteki statyczne do a2ps.
58
59 %prep
60 %setup -q 
61 %patch -p1
62
63 %build
64 autoheader
65 autoconf
66 CFLAGS=$RPM_OPT_FLAGS LDFLAGS=-s \
67 ./configure %{_target} \
68         --with-included-gettext \
69         --prefix=/usr \
70         --sysconfdir=/etc \
71         --with-medium=A4  \
72         --with-encoding=latin1 \
73         --enable-shared
74 make
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 perl -pe 's/^lispdir = $/lispdir = {prefix}\/lib/g' contrib/emacs/Makefile >tmp
80
81 mv tmp contrib/emacs/Makefile
82 make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install
83
84 #chmod 755      $RPM_BUILD_ROOT%{_libdir}/*.so.*
85 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
86         $RPM_BUILD_ROOT%{_mandir}/man1/* \
87         AUTHORS ChangeLog NEWS README THANKS
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
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) /usr/bin/*
110 %attr(755,root,root) %{_libdir}/*.so.*
111 %{_mandir}/man1/*
112 %{_infodir}/a2ps*info*
113 %{_infodir}/ogonkify*info*
114
115 %lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/a2ps.mo
116 %lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/a2ps.mo
117 %lang(da) %{_datadir}/locale/da/LC_MESSAGES/a2ps.mo
118 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/a2ps.mo
119 %lang(es) %{_datadir}/locale/es/LC_MESSAGES/a2ps.mo
120 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/a2ps.mo
121 %lang(it) %{_datadir}/locale/it/LC_MESSAGES/a2ps.mo
122 %lang(ko) %{_datadir}/locale/ko/LC_MESSAGES/a2ps.mo
123 %lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/a2ps.mo
124 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/a2ps.mo
125 %lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/a2ps.mo
126 %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/a2ps.mo
127 %lang(sl) %{_datadir}/locale/sl/LC_MESSAGES/a2ps.mo
128 %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/a2ps.mo
129 %lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/a2ps.mo
130
131 %dir %{_datadir}/a2ps/afm
132 %{_datadir}/a2ps/afm/*.afm
133 %{_datadir}/a2ps/afm/*.map
134 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
135
136 %dir %{_datadir}/a2ps/encoding
137 %{_datadir}/a2ps/encoding/*
138
139 %dir %{_datadir}/a2ps/fonts
140 %{_datadir}/a2ps/fonts/*
141
142 %dir %{_datadir}/a2ps/ogonkify
143 %{_datadir}/a2ps/ogonkify/*.enc
144 %{_datadir}/a2ps/ogonkify/*.ps
145
146 %dir %{_datadir}/a2ps/ppd
147 %{_datadir}/a2ps/ppd/*.ppd
148
149 %dir %{_datadir}/a2ps/ps
150 %{_datadir}/a2ps/ps/*
151
152 %dir %{_datadir}/a2ps/sheets
153 %{_datadir}/a2ps/sheets/*
154
155 %files devel
156 %defattr(644,root,root,755)
157
158 %attr(755,root,root) %{_libdir}/lib*.so
159
160 /usr/include/*
161
162 %files static
163 %defattr(644,root,root,755)
164
165 %{_libdir}/lib*.a
166
167 %clean
168 rm -rf $RPM_BUILD_ROOT
169
170 %changelog
171 * Sun Jan 31 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
172   [4.10.3-5d]
173 - added missiong fonts.map ...
174 - autoheader && autoconf before configure,
175 - other 'extras' in %install section,
176 - added %dir for %{_datadir}/a2ps/*,
177 - added Group(pl),
178 - minor changes in %files *.
179
180 * Mon Dec 28 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
181   [4.10.3-5]
182 - added %post, %postun with {un}registering info pages (added
183   a2ps-info.patch),
184 - added compressed man pages.
185
186 * Thu Oct 15 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
187   [4.10.3-4]
188 - simplification in files,
189 - removed regexp info pages,
190 - added stripping shared libraries,
191 - changed default encoding to latin1,
192 - added devel subpackage.
193
194 * Mon Sep 07 1998 Ziemek Borowski <ziembor@faq-bot.ziembor.waw.pl>
195   [4.10.3-3d]
196 - based on Akim Demaille <demaille@inf.enst.fr> and 
197   Dave Whitinger <dave@whitinger.net> specs, 
198 - added lang tag,
199 - added pl spec translation,
200 - more detailed %files,
201 - default medium == A4,
202 - default encoding == latin2,
203 - build against GNU libc-2.1.
204
205 * Mon Aug 07 1998 Soos Peter <sp@osb.hu>
206 - BuildRoot spec correction %dir %{_datadir}/a2ps
This page took 0.039871 seconds and 4 git commands to generate.