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