]>
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 |
ea0214aa JB |
6 | Version: 4.15.6 |
7 | Release: 1 | |
82372bb1 | 8 | License: GPL v3+ |
cc4bd0f6 | 9 | Group: Applications/Text |
46bdc2f0 | 10 | Source0: https://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz |
ea0214aa | 11 | # Source0-md5: 95c3ad5f7c0c87b71109b34c875cf7c0 |
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 |
f4c7b40d | 16 | Patch2: %{name}-etc.patch |
f4c7b40d | 17 | Patch4: %{name}-conf.patch |
18 | Patch5: %{name}-glibcpaper.patch | |
19 | Patch6: %{name}-autoenc.patch | |
8d12198d | 20 | Patch7: %{name}-i18n.patch |
a4bc71e1 | 21 | Patch8: %{name}-ogonkify-xfig-fix.patch |
3a6ccbc6 | 22 | URL: http://www.gnu.org/software/a2ps/ |
938b2c3a JB |
23 | BuildRequires: autoconf >= 2.71 |
24 | BuildRequires: automake >= 1:1.15 | |
25 | BuildRequires: bison | |
e6246505 | 26 | BuildRequires: flex |
938b2c3a JB |
27 | BuildRequires: gc-devel >= 7.2 |
28 | BuildRequires: gettext-tools >= 0.20.2 | |
7b991c32 | 29 | BuildRequires: gperf |
938b2c3a | 30 | BuildRequires: help2man |
718daff3 | 31 | BuildRequires: libpaper-devel |
938b2c3a JB |
32 | BuildRequires: libtool >= 2:2 |
33 | BuildRequires: pkgconfig | |
fe10624c | 34 | BuildRequires: texinfo |
8bfe0f1c | 35 | Requires(post,postun): /sbin/ldconfig |
40d7a065 | 36 | Requires: psutils |
938b2c3a JB |
37 | Suggests: ImageMagick |
38 | Suggests: ghostscript | |
39 | # grog | |
40 | Suggests: groff-perl | |
41 | Suggests: gzip | |
42 | Suggests: html2ps | |
43 | Suggests: texlive-dvips | |
44 | Obsoletes: a2ps-devel < 4.15 | |
45 | Obsoletes: a2ps-static < 4.15 | |
ce89659f | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49e058ba | 47 | |
bb1d7181 | 48 | %define _sysconfdir /etc/a2ps |
75b4d611 | 49 | |
49e058ba | 50 | %description |
27031e15 | 51 | a2ps is a text to PostScript filter with pretty-printing capabilities. |
52 | It includes support for a wide number of programming languages, | |
53 | encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages | |
54 | (for the interface). It has also the ability to delegate the | |
55 | processing of some files to other applications, letting you print DVI, | |
56 | PostScript etc. with the very same interface. | |
49e058ba | 57 | |
3f520e73 JR |
58 | %description -l pl.UTF-8 |
59 | A2ps jest programem pozwalającym na ładne drukowanie plików tekstowych | |
60 | w PostScript. Posiada wsparcie dla wielu różnych języków | |
61 | programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielkości | |
62 | papieru, i języków komunikacji z użytkownikiem. Potrafi także | |
63 | przekazać przetwarzanie plików do innych programów (tak, że można | |
64 | wszystko drukować (DVI, PostScript) przy użyciu tego samego polecenia. | |
65 | Zawiera program ,,ogonkify'' poprawiający błędnie zakodowany | |
66 | PostScript zawierający polskie znaki. | |
49e058ba | 67 | |
938b2c3a JB |
68 | %package -n emacs-a2ps |
69 | Summary: Emacs support for a2ps | |
70 | Summary(pl.UTF-8): Wsparcie do pracy z a2ps w Emacsie | |
71 | Group: Applications/Editors | |
ab646c7a | 72 | Requires: %{name} = %{version}-%{release} |
938b2c3a | 73 | Requires: emacs-common |
49e058ba | 74 | |
938b2c3a JB |
75 | %description -n emacs-a2ps |
76 | Emacs a2ps mode and printing hook. | |
49e058ba | 77 | |
938b2c3a JB |
78 | %description -n emacs-a2ps -l pl.UTF-8 |
79 | Tryb a2ps oraz obsługa drukowania przez a2ps dla Emacsa. | |
49e058ba | 80 | |
81 | %prep | |
ffdb9d61 | 82 | %setup -q -a1 |
90210d62 | 83 | %patch0 -p1 |
f4c7b40d | 84 | %patch2 -p1 |
f4c7b40d | 85 | %patch4 -p1 |
86 | %patch5 -p1 | |
87 | %patch6 -p1 | |
8d12198d | 88 | %patch7 -p1 |
a4bc71e1 | 89 | %patch8 -p0 |
ab646c7a | 90 | |
938b2c3a | 91 | %{__sed} -i -e '1s,/usr/bin/env sh,/bin/sh,' contrib/{card,fixps,lp2,pdiff}.in |
bb21d86a | 92 | |
49e058ba | 93 | %build |
938b2c3a JB |
94 | %{__libtoolize} |
95 | %{__aclocal} -I m4 | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
82372bb1 | 99 | %configure \ |
842ab1c6 | 100 | --with-encoding=latin1 \ |
938b2c3a JB |
101 | --with-lispdir=%{_datadir}/emacs/site-lisp |
102 | ||
f4a8a2ee | 103 | %{__make} |
49e058ba | 104 | |
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
3984b7c7 | 107 | install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \ |
108 | $RPM_BUILD_ROOT%{_mandir}/pl/man1 | |
842ab1c6 | 109 | |
bacca9a2 PG |
110 | %{__make} install \ |
111 | DESTDIR=$RPM_BUILD_ROOT | |
bb1d7181 | 112 | |
bfc88ea4 ER |
113 | install i18n-fonts-0.1/afm/*.afm $RPM_BUILD_ROOT%{_datadir}/a2ps/afm |
114 | install i18n-fonts-0.1/fonts/*.pfb $RPM_BUILD_ROOT%{_datadir}/a2ps/fonts | |
938b2c3a | 115 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1 |
9136753d | 116 | |
46bdc2f0 JB |
117 | # it doesn't belong here (part of glibc in PLD case) |
118 | %{__rm} $RPM_BUILD_ROOT%{_infodir}/regex.info | |
119 | ||
938b2c3a JB |
120 | # a2ps and a2ps-gnulib domains |
121 | %find_lang %{name} --all-name | |
ee2b9d7b | 122 | |
bb1d7181 | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
c4af5858 | 126 | %post |
47e8a5bf | 127 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
c4af5858 | 128 | |
19eb8916 | 129 | %postun |
47e8a5bf | 130 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
49e058ba | 131 | |
ee2b9d7b | 132 | %files -f %{name}.lang |
253202e5 | 133 | %defattr(644,root,root,755) |
9136753d | 134 | %doc AUTHORS ChangeLog NEWS README THANKS |
1011688d | 135 | %dir %{_sysconfdir} |
bfc88ea4 ER |
136 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps.cfg |
137 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg | |
46bdc2f0 | 138 | %attr(755,root,root) %{_bindir}/a2ps |
938b2c3a | 139 | %attr(755,root,root) %{_bindir}/a2ps-lpr-wrapper |
46bdc2f0 JB |
140 | %attr(755,root,root) %{_bindir}/card |
141 | %attr(755,root,root) %{_bindir}/composeglyphs | |
46bdc2f0 | 142 | %attr(755,root,root) %{_bindir}/fixps |
938b2c3a | 143 | %attr(755,root,root) %{_bindir}/lp2 |
46bdc2f0 JB |
144 | %attr(755,root,root) %{_bindir}/ogonkify |
145 | %attr(755,root,root) %{_bindir}/pdiff | |
46bdc2f0 | 146 | %{_mandir}/man1/a2ps.1* |
938b2c3a | 147 | %{_mandir}/man1/a2ps-lpr-wrapper.1* |
46bdc2f0 JB |
148 | %{_mandir}/man1/card.1* |
149 | %{_mandir}/man1/fixps.1* | |
938b2c3a | 150 | %{_mandir}/man1/lp2.1* |
46bdc2f0 JB |
151 | %{_mandir}/man1/ogonkify.1* |
152 | %{_mandir}/man1/pdiff.1* | |
46bdc2f0 | 153 | %lang(pl) %{_mandir}/pl/man1/ogonkify.1* |
82372bb1 JB |
154 | %{_infodir}/a2ps.info* |
155 | %{_infodir}/ogonkify.info* | |
842ab1c6 | 156 | |
2f5e00bd | 157 | %dir %{_datadir}/a2ps |
8f471631 | 158 | %dir %{_datadir}/a2ps/afm |
159 | %{_datadir}/a2ps/afm/*.afm | |
160 | %{_datadir}/a2ps/afm/*.map | |
161 | %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh | |
162 | ||
06185f79 | 163 | %{_datadir}/a2ps/encoding |
164 | %{_datadir}/a2ps/fonts | |
165 | %{_datadir}/a2ps/ppd | |
166 | %{_datadir}/a2ps/ps | |
167 | %{_datadir}/a2ps/sheets | |
8f471631 | 168 | |
75b4d611 JR |
169 | %dir %{_datadir}/ogonkify |
170 | %{_datadir}/ogonkify/*.enc | |
171 | %{_datadir}/ogonkify/*.ps | |
b370eb7b | 172 | %{_datadir}/ogonkify/afm |
173 | %{_datadir}/ogonkify/fonts | |
8f471631 | 174 | |
938b2c3a | 175 | %files -n emacs-a2ps |
842ab1c6 | 176 | %defattr(644,root,root,755) |
938b2c3a JB |
177 | %{_datadir}/emacs/site-lisp/a2ps.el |
178 | %{_datadir}/emacs/site-lisp/a2ps-print.el |