]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- added security patch, rel. 28
[packages/a2ps.git] / a2ps.spec
1 Summary:        Text to Postscript filter
2 Summary(ja):    ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
3 Summary(pl):    Filtr text/plain do Postscriptu
4 Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷
5 Name:           a2ps
6 Version:        4.13b
7 Release:        28
8 License:        GPL
9 Group:          Applications/Text
10 Source0:        ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
11 # Source0-md5:  0c8e0c31b08c14f7a7198ce967eb3281
12 Source1:        ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
13 # Source1-md5:  fee1456d0e6e94af4fc5b5a1bb9687b7
14 Source2:        ogonkify.1.pl
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-security.patch
17 Patch2:         %{name}-etc.patch
18 Patch3:         %{name}-flex.patch
19 Patch4:         %{name}-conf.patch
20 Patch5:         %{name}-glibcpaper.patch
21 Patch6:         %{name}-autoenc.patch
22 Patch7:         %{name}-i18n.patch
23 Patch8:         %{name}-ogonkify-xfig-fix.patch
24 Patch9:         %{name}-pl.po-update.patch
25 Patch10:        %{name}-locale-names.patch
26 Patch11:        %{name}-malloc.patch
27 Patch12:        %{name}-CAN-2004-1170.patch
28 URL:            http://www.inf.enst.fr/~demaille/a2ps/
29 BuildRequires:  automake
30 BuildRequires:  flex
31 BuildRequires:  gettext-devel
32 Requires(post,postun):  /sbin/ldconfig
33 Requires:       psutils
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _sysconfdir     /etc/a2ps
37
38 %description
39 a2ps is a text to PostScript filter with pretty-printing capabilities.
40 It includes support for a wide number of programming languages,
41 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
42 (for the interface). It has also the ability to delegate the
43 processing of some files to other applications, letting you print DVI,
44 PostScript etc. with the very same interface.
45
46 %description -l pl
47 A2ps jest programem pozwalaj±cym na ³adne drukowanie plików
48 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
49 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
50 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
51 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
52 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
53 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
54 PostScript zawieraj±cy polskie znaki.
55
56 %package devel
57 Summary:        Header files and development documentation for a2ps
58 Summary(pl):    Pliki nag³ówkowe i dokumentacja do a2ps
59 Group:          Development/Libraries
60 Requires:       %{name} = %{version}-%{release}
61
62 %description devel
63 Header files and development documentation for a2ps.
64
65 %description devel -l pl
66 Pliki nag³ówkowe i dokumentacja do a2ps.
67
68 %package static
69 Summary:        a2ps static libraries
70 Summary(pl):    Biblioteki statyczne do a2ps
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 a2ps static libraries.
76
77 %description static -l pl
78 Biblioteki statyczne do a2ps.
79
80 %prep
81 %setup -q -n %{name}-4.13 -a1
82 %patch0 -p1
83 %patch1 -p1
84 %patch2 -p1
85 %patch3 -p1
86 %patch4 -p1
87 %patch5 -p1
88 %patch6 -p1
89 %patch7 -p1
90 %patch8 -p0
91 %patch9 -p1
92 %patch10 -p1
93 %patch11 -p1
94 %patch12 -p1
95
96 mv -f po/{no,nb}.po
97
98 %build
99 cp -f /usr/share/automake/config.* auxdir
100 %configure2_13 \
101         --with-gnu-gettext \
102         --with-medium=_glibc  \
103         --with-encoding=latin1 \
104         --enable-shared \
105         --enable-kanji
106 %{__make}
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
111         $RPM_BUILD_ROOT%{_mandir}/pl/man1
112
113 %{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile
114
115 %{__make} install \
116         DESTDIR=$RPM_BUILD_ROOT
117
118 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
119 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
120 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
121
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
138 %dir %{_sysconfdir}
139 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
140 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
141 %attr(755,root,root) %{_bindir}/*
142 %attr(755,root,root) %{_libdir}/lib*.so.*.*
143 %{_mandir}/man1/*
144 %lang(pl) %{_mandir}/pl/man1/*
145 %{_infodir}/a2ps*info*
146 %{_infodir}/ogonkify*info*
147
148 %dir %{_datadir}/a2ps
149 %dir %{_datadir}/a2ps/afm
150 %{_datadir}/a2ps/afm/*.afm
151 %{_datadir}/a2ps/afm/*.map
152 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
153
154 %{_datadir}/a2ps/encoding
155 %{_datadir}/a2ps/fonts
156 %{_datadir}/a2ps/ppd
157 %{_datadir}/a2ps/ps
158 %{_datadir}/a2ps/sheets
159
160 %dir %{_datadir}/ogonkify
161 %{_datadir}/ogonkify/*.enc
162 %{_datadir}/ogonkify/*.ps
163 %{_datadir}/ogonkify/afm
164 %{_datadir}/ogonkify/fonts
165
166 %files devel
167 %defattr(644,root,root,755)
168 %{_libdir}/lib*.la
169 %attr(755,root,root) %{_libdir}/lib*.so
170 %{_includedir}/*
171
172 %files static
173 %defattr(644,root,root,755)
174 %{_libdir}/lib*.a
This page took 0.040273 seconds and 3 git commands to generate.