]>
Commit | Line | Data |
---|---|---|
cc4bd0f6 | 1 | Summary: Text to Postscript filter |
0c09f6e7 ER |
2 | Summary(ja.UTF-8): テキスト→PostScript フィルタ |
3 | Summary(pl.UTF-8): Filtr text/plain do Postscriptu | |
4 | Summary(zh_CN.UTF-8): 纯文本到Postscript转换器 | |
842ab1c6 | 5 | Name: a2ps |
49f59e19 | 6 | Version: 4.14 |
718daff3 | 7 | Release: 2 |
82372bb1 | 8 | License: GPL v3+ |
cc4bd0f6 | 9 | Group: Applications/Text |
ffdb9d61 | 10 | Source0: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz |
49f59e19 | 11 | # Source0-md5: 781ac3d9b213fa3e1ed0d79f986dc8c7 |
f4c7b40d | 12 | Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz |
40a6492c | 13 | # Source1-md5: fee1456d0e6e94af4fc5b5a1bb9687b7 |
3984b7c7 | 14 | Source2: ogonkify.1.pl |
6f1a19c3 | 15 | Patch0: %{name}-info.patch |
e5d03e50 | 16 | Patch1: %{name}-security.patch |
f4c7b40d | 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 | |
8d12198d | 22 | Patch7: %{name}-i18n.patch |
a4bc71e1 | 23 | Patch8: %{name}-ogonkify-xfig-fix.patch |
8bfe0f1c | 24 | Patch9: %{name}-pl.po-update.patch |
ab646c7a | 25 | Patch10: %{name}-locale-names.patch |
2a0a5b50 | 26 | Patch11: %{name}-atan2.patch |
3a6ccbc6 | 27 | URL: http://www.gnu.org/software/a2ps/ |
8bfe0f1c | 28 | BuildRequires: automake |
e6246505 | 29 | BuildRequires: flex |
e35531e3 | 30 | BuildRequires: gettext-tools |
7b991c32 | 31 | BuildRequires: gperf |
718daff3 | 32 | BuildRequires: libpaper-devel |
fe10624c | 33 | BuildRequires: texinfo |
8bfe0f1c | 34 | Requires(post,postun): /sbin/ldconfig |
f4c7b40d | 35 | Requires: psutils |
ce89659f | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49e058ba | 37 | |
bb1d7181 | 38 | %define _sysconfdir /etc/a2ps |
75b4d611 | 39 | |
49e058ba | 40 | %description |
27031e15 | 41 | a2ps is a text to PostScript filter with pretty-printing capabilities. |
42 | It includes support for a wide number of programming languages, | |
43 | encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages | |
44 | (for the interface). It has also the ability to delegate the | |
45 | processing of some files to other applications, letting you print DVI, | |
46 | PostScript etc. with the very same interface. | |
49e058ba | 47 | |
3f520e73 JR |
48 | %description -l pl.UTF-8 |
49 | A2ps jest programem pozwalającym na ładne drukowanie plików tekstowych | |
50 | w PostScript. Posiada wsparcie dla wielu różnych języków | |
51 | programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielkości | |
52 | papieru, i języków komunikacji z użytkownikiem. Potrafi także | |
53 | przekazać przetwarzanie plików do innych programów (tak, że można | |
54 | wszystko drukować (DVI, PostScript) przy użyciu tego samego polecenia. | |
55 | Zawiera program ,,ogonkify'' poprawiający błędnie zakodowany | |
56 | PostScript zawierający polskie znaki. | |
49e058ba | 57 | |
06185f79 | 58 | %package devel |
82372bb1 JB |
59 | Summary: Header files for a2ps library |
60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki a2ps | |
e5d03e50 | 61 | Group: Development/Libraries |
ab646c7a | 62 | Requires: %{name} = %{version}-%{release} |
49e058ba | 63 | |
64 | %description devel | |
82372bb1 | 65 | Header files for a2ps library. |
49e058ba | 66 | |
3f520e73 | 67 | %description devel -l pl.UTF-8 |
82372bb1 | 68 | Pliki nagłówkowe biblioteki a2ps. |
49e058ba | 69 | |
06185f79 | 70 | %package static |
82372bb1 JB |
71 | Summary: a2ps static library |
72 | Summary(pl.UTF-8): Biblioteka statyczna a2ps | |
e5d03e50 | 73 | Group: Development/Libraries |
ab646c7a | 74 | Requires: %{name}-devel = %{version}-%{release} |
49e058ba | 75 | |
76 | %description static | |
82372bb1 | 77 | a2ps static library. |
49e058ba | 78 | |
3f520e73 | 79 | %description static -l pl.UTF-8 |
82372bb1 | 80 | Biblioteka statyczna a2ps. |
49e058ba | 81 | |
82 | %prep | |
ffdb9d61 | 83 | %setup -q -a1 |
90210d62 | 84 | %patch0 -p1 |
e5d03e50 | 85 | %patch1 -p1 |
f4c7b40d | 86 | %patch2 -p1 |
87 | %patch3 -p1 | |
88 | %patch4 -p1 | |
89 | %patch5 -p1 | |
90 | %patch6 -p1 | |
8d12198d | 91 | %patch7 -p1 |
a4bc71e1 | 92 | %patch8 -p0 |
8bfe0f1c | 93 | %patch9 -p1 |
ab646c7a | 94 | %patch10 -p1 |
2a0a5b50 | 95 | %patch11 -p1 |
ab646c7a JB |
96 | |
97 | mv -f po/{no,nb}.po | |
bb21d86a | 98 | |
49e058ba | 99 | %build |
8bfe0f1c | 100 | cp -f /usr/share/automake/config.* auxdir |
82372bb1 | 101 | %configure \ |
f4c7b40d | 102 | --with-gnu-gettext \ |
103 | --with-medium=_glibc \ | |
842ab1c6 | 104 | --with-encoding=latin1 \ |
f4c7b40d | 105 | --enable-shared \ |
106 | --enable-kanji | |
f4a8a2ee | 107 | %{__make} |
49e058ba | 108 | |
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
3984b7c7 | 111 | install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \ |
112 | $RPM_BUILD_ROOT%{_mandir}/pl/man1 | |
842ab1c6 | 113 | |
8bfe0f1c | 114 | %{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile |
c4af5858 | 115 | |
bacca9a2 PG |
116 | %{__make} install \ |
117 | DESTDIR=$RPM_BUILD_ROOT | |
bb1d7181 | 118 | |
bfc88ea4 ER |
119 | install i18n-fonts-0.1/afm/*.afm $RPM_BUILD_ROOT%{_datadir}/a2ps/afm |
120 | install i18n-fonts-0.1/fonts/*.pfb $RPM_BUILD_ROOT%{_datadir}/a2ps/fonts | |
3984b7c7 | 121 | install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1 |
9136753d | 122 | |
ee2b9d7b | 123 | %find_lang %{name} |
124 | ||
bb1d7181 | 125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
c4af5858 | 128 | %post |
47e8a5bf | 129 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
842ab1c6 | 130 | /sbin/ldconfig |
c4af5858 | 131 | |
19eb8916 | 132 | %postun |
47e8a5bf | 133 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
19eb8916 | 134 | /sbin/ldconfig |
49e058ba | 135 | |
ee2b9d7b | 136 | %files -f %{name}.lang |
253202e5 | 137 | %defattr(644,root,root,755) |
9136753d | 138 | %doc AUTHORS ChangeLog NEWS README THANKS |
1011688d | 139 | %dir %{_sysconfdir} |
bfc88ea4 ER |
140 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps.cfg |
141 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg | |
be4c848f | 142 | %attr(755,root,root) %{_bindir}/* |
3f321ca1 | 143 | %attr(755,root,root) %{_libdir}/liba2ps.so.*.*.* |
144 | %attr(755,root,root) %ghost %{_libdir}/liba2ps.so.1 | |
687997fb | 145 | %{_mandir}/man1/* |
3984b7c7 | 146 | %lang(pl) %{_mandir}/pl/man1/* |
82372bb1 JB |
147 | %{_infodir}/a2ps.info* |
148 | %{_infodir}/ogonkify.info* | |
842ab1c6 | 149 | |
2f5e00bd | 150 | %dir %{_datadir}/a2ps |
8f471631 | 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 | ||
06185f79 | 156 | %{_datadir}/a2ps/encoding |
157 | %{_datadir}/a2ps/fonts | |
158 | %{_datadir}/a2ps/ppd | |
159 | %{_datadir}/a2ps/ps | |
160 | %{_datadir}/a2ps/sheets | |
8f471631 | 161 | |
75b4d611 JR |
162 | %dir %{_datadir}/ogonkify |
163 | %{_datadir}/ogonkify/*.enc | |
164 | %{_datadir}/ogonkify/*.ps | |
b370eb7b | 165 | %{_datadir}/ogonkify/afm |
166 | %{_datadir}/ogonkify/fonts | |
8f471631 | 167 | |
49e058ba | 168 | %files devel |
842ab1c6 | 169 | %defattr(644,root,root,755) |
3f321ca1 | 170 | %attr(755,root,root) %{_libdir}/liba2ps.so |
82372bb1 JB |
171 | %{_libdir}/liba2ps.la |
172 | %{_includedir}/liba2ps.h | |
49e058ba | 173 | |
174 | %files static | |
842ab1c6 | 175 | %defattr(644,root,root,755) |
3f321ca1 | 176 | %{_libdir}/liba2ps.a |