]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- added man/pl/man1/ogonkify.1
[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.13b
5 Release:        19
6 License:        GPL
7 Group:          Applications/Text
8 Group(de):      Applikationen/Text
9 Group(fr):      Utilitaires/Texte
10 Group(pl):      Aplikacje/Tekst
11 Source0:        ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
12 Source1:        ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
13 Source2:        ogonkify.1.pl
14 Patch0:         %{name}-info.patch
15 #Patch1:                %{name}-security.patch
16 Patch2:         %{name}-etc.patch
17 Patch3:         %{name}-flex.patch
18 Patch4:         %{name}-conf.patch
19 Patch5:         %{name}-glibcpaper.patch
20 Patch6:         %{name}-autoenc.patch
21 Patch7:         %{name}-i18n.patch
22 URL:            http://www.inf.enst.fr/~demaille/a2ps/
23 BuildRequires:  flex
24 Prereq:         /sbin/ldconfig
25 Requires:       psutils
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _sysconfdir     /etc/a2ps
29
30 %description
31 a2ps is a text to PostScript filter with pretty-printing capabilities.
32 It includes support for a wide number of programming languages,
33 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
34 (for the interface). It has also the ability to delegate the
35 processing of some files to other applications, letting you print DVI,
36 PostScript etc. with the very same interface.
37
38 %description -l pl 
39 A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików
40 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
41 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
42 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
43 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
44 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
45 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
46 PostScript zawieraj±cy polskie znaki.
47
48 %package devel
49 Summary:        Header files and development documentation for a2ps
50 Summary(pl):    Pliki nag³ówkowe i dokunentacja do a2ps
51 Group:          Libraries
52 Group(de):      Libraries
53 Group(es):      Bibliotecas
54 Group(fr):      Librairies
55 Group(pl):      Biblioteki
56 Group(pt_BR):   Bibliotecas
57 Group(ru):      âÉÂÌÉÏÔÅËÉ
58 Group(uk):      â¦Â̦ÏÔÅËÉ
59 Requires:       %{name} = %{version}
60
61 %description devel
62 Header files and development documentation for a2ps.
63
64 %description devel -l pl
65 Pliki nag³ówkowe i dokumentacja do a2ps.
66
67 %package static
68 Summary:        a2ps static libraries
69 Summary(pl):    Biblioteki statyczne do a2ps
70 Group:          Libraries
71 Group(de):      Libraries
72 Group(es):      Bibliotecas
73 Group(fr):      Librairies
74 Group(pl):      Biblioteki
75 Group(pt_BR):   Bibliotecas
76 Group(ru):      âÉÂÌÉÏÔÅËÉ
77 Group(uk):      â¦Â̦ÏÔÅËÉ
78 Requires:       %{name}-devel = %{version}
79
80 %description static
81 a2ps static libraries.
82
83 %description static -l pl
84 Biblioteki statyczne do a2ps.
85
86 %prep
87 %setup  -q -n %{name}-4.13 -a 1
88 %patch0 -p1
89 #%patch1 -p1
90 %patch2 -p1
91 %patch3 -p1
92 %patch4 -p1
93 %patch5 -p1
94 %patch6 -p1
95 %patch7 -p1
96
97 %build
98 %configure2_13 \
99         --with-gnu-gettext \
100         --with-medium=_glibc  \
101         --with-encoding=latin1 \
102         --enable-shared \
103         --enable-kanji
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
109         $RPM_BUILD_ROOT%{_mandir}/pl/man1
110
111 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
112
113 mv -f tmp contrib/emacs/Makefile
114
115 %{__make} install DESTDIR=$RPM_BUILD_ROOT
116
117 gzip -9nf AUTHORS ChangeLog NEWS README THANKS
118
119 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
120 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
121 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
122 %find_lang %{name}
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post
128 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
129 /sbin/ldconfig
130
131 %postun
132 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
133 /sbin/ldconfig
134
135 %files -f %{name}.lang
136 %defattr(644,root,root,755)
137 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
138
139 %dir %{_sysconfdir}
140 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
141 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
142
143 %attr(755,root,root) %{_bindir}/*
144 %attr(755,root,root) %{_libdir}/lib*.so.*.*
145 %{_mandir}/man1/*
146 %lang(pl) %{_mandir}/pl/man1/*
147 %{_infodir}/a2ps*info*
148 %{_infodir}/ogonkify*info*
149
150 %dir %{_datadir}/a2ps
151 %dir %{_datadir}/a2ps/afm
152 %{_datadir}/a2ps/afm/*.afm
153 %{_datadir}/a2ps/afm/*.map
154 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
155
156 %{_datadir}/a2ps/encoding
157 %{_datadir}/a2ps/fonts
158 %{_datadir}/a2ps/ppd
159 %{_datadir}/a2ps/ps
160 %{_datadir}/a2ps/sheets
161
162 %dir %{_datadir}/ogonkify
163 %{_datadir}/ogonkify/*.enc
164 %{_datadir}/ogonkify/*.ps
165 %{_datadir}/ogonkify/afm
166 %{_datadir}/ogonkify/fonts
167
168 %files devel
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_libdir}/lib*.la
171 %attr(755,root,root) %{_libdir}/lib*.so
172 %{_includedir}/*
173
174 %files static
175 %defattr(644,root,root,755)
176 %{_libdir}/lib*.a
This page took 0.035716 seconds and 4 git commands to generate.