]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- added using CVS keywords in %changelog (for automating them).
[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 %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_platform} \
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 %find_lang %{name}
90
91 %post
92 /sbin/install-info %{_infodir}/a2ps.info.gz /etc/info-dir 
93 /sbin/install-info %{_infodir}/ogonkify.info.gz /etc/info-dir 
94 /sbin/ldconfig
95
96 %preun
97 if [ $1 = 0 ]; then
98         /sbin/install-info --delete %{_infodir}/a2ps.info.gz /etc/info-dir
99         /sbin/install-info --delete %{_infodir}/ogonkify.info.gz /etc/info-dir
100 fi
101
102 %postun 
103 /sbin/ldconfig
104
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
108
109 %config(noreplace) %verify(not size mtime md5) /etc/a2ps.cfg
110
111 %attr(755,root,root) %{_bindir}/*
112 %attr(755,root,root) %{_libdir}/*.so.*
113 %{_mandir}/man1/*
114 %{_infodir}/a2ps*info*
115 %{_infodir}/ogonkify*info*
116
117 %dir %{_datadir}/a2ps/afm
118 %{_datadir}/a2ps/afm/*.afm
119 %{_datadir}/a2ps/afm/*.map
120 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
121
122 %dir %{_datadir}/a2ps/encoding
123 %{_datadir}/a2ps/encoding/*
124
125 %dir %{_datadir}/a2ps/fonts
126 %{_datadir}/a2ps/fonts/*
127
128 %dir %{_datadir}/a2ps/ogonkify
129 %{_datadir}/a2ps/ogonkify/*.enc
130 %{_datadir}/a2ps/ogonkify/*.ps
131
132 %dir %{_datadir}/a2ps/ppd
133 %{_datadir}/a2ps/ppd/*.ppd
134
135 %dir %{_datadir}/a2ps/ps
136 %{_datadir}/a2ps/ps/*
137
138 %dir %{_datadir}/a2ps/sheets
139 %{_datadir}/a2ps/sheets/*
140
141 %files devel
142 %defattr(644,root,root,755)
143
144 %attr(755,root,root) %{_libdir}/lib*.so
145
146 %{_includedir}/*
147
148 %files static
149 %defattr(644,root,root,755)
150
151 %{_libdir}/lib*.a
152
153 %clean
154 rm -rf $RPM_BUILD_ROOT
This page took 0.040761 seconds and 4 git commands to generate.