]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- updated to 4.15.6
[packages/a2ps.git] / a2ps.spec
1 Summary:        Text to Postscript filter
2 Summary(ja.UTF-8):      テキスト→PostScript フィルタ
3 Summary(pl.UTF-8):      Filtr text/plain do Postscriptu
4 Summary(zh_CN.UTF-8):   纯文本到Postscript转换器
5 Name:           a2ps
6 Version:        4.15.6
7 Release:        1
8 License:        GPL v3+
9 Group:          Applications/Text
10 Source0:        https://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz
11 # Source0-md5:  95c3ad5f7c0c87b71109b34c875cf7c0
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 Patch2:         %{name}-etc.patch
17 Patch4:         %{name}-conf.patch
18 Patch5:         %{name}-glibcpaper.patch
19 Patch6:         %{name}-autoenc.patch
20 Patch7:         %{name}-i18n.patch
21 Patch8:         %{name}-ogonkify-xfig-fix.patch
22 URL:            http://www.gnu.org/software/a2ps/
23 BuildRequires:  autoconf >= 2.71
24 BuildRequires:  automake >= 1:1.15
25 BuildRequires:  bison
26 BuildRequires:  flex
27 BuildRequires:  gc-devel >= 7.2
28 BuildRequires:  gettext-tools >= 0.20.2
29 BuildRequires:  gperf
30 BuildRequires:  help2man
31 BuildRequires:  libpaper-devel
32 BuildRequires:  libtool >= 2:2
33 BuildRequires:  pkgconfig
34 BuildRequires:  texinfo
35 Requires(post,postun):  /sbin/ldconfig
36 Requires:       psutils
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
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %define         _sysconfdir     /etc/a2ps
49
50 %description
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.
57
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.
67
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
72 Requires:       %{name} = %{version}-%{release}
73 Requires:       emacs-common
74
75 %description -n emacs-a2ps
76 Emacs a2ps mode and printing hook.
77
78 %description -n emacs-a2ps -l pl.UTF-8
79 Tryb a2ps oraz obsługa drukowania przez a2ps dla Emacsa.
80
81 %prep
82 %setup -q -a1
83 %patch0 -p1
84 %patch2 -p1
85 %patch4 -p1
86 %patch5 -p1
87 %patch6 -p1
88 %patch7 -p1
89 %patch8 -p0
90
91 %{__sed} -i -e '1s,/usr/bin/env sh,/bin/sh,' contrib/{card,fixps,lp2,pdiff}.in
92
93 %build
94 %{__libtoolize}
95 %{__aclocal} -I m4
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99 %configure \
100         --with-encoding=latin1 \
101         --with-lispdir=%{_datadir}/emacs/site-lisp
102
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
108         $RPM_BUILD_ROOT%{_mandir}/pl/man1
109
110 %{__make} install \
111         DESTDIR=$RPM_BUILD_ROOT
112
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
115 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
116
117 # it doesn't belong here (part of glibc in PLD case)
118 %{__rm} $RPM_BUILD_ROOT%{_infodir}/regex.info
119
120 # a2ps and a2ps-gnulib domains
121 %find_lang %{name} --all-name
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %post
127 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
128
129 %postun
130 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
131
132 %files -f %{name}.lang
133 %defattr(644,root,root,755)
134 %doc AUTHORS ChangeLog NEWS README THANKS
135 %dir %{_sysconfdir}
136 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps.cfg
137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg
138 %attr(755,root,root) %{_bindir}/a2ps
139 %attr(755,root,root) %{_bindir}/a2ps-lpr-wrapper
140 %attr(755,root,root) %{_bindir}/card
141 %attr(755,root,root) %{_bindir}/composeglyphs
142 %attr(755,root,root) %{_bindir}/fixps
143 %attr(755,root,root) %{_bindir}/lp2
144 %attr(755,root,root) %{_bindir}/ogonkify
145 %attr(755,root,root) %{_bindir}/pdiff
146 %{_mandir}/man1/a2ps.1*
147 %{_mandir}/man1/a2ps-lpr-wrapper.1*
148 %{_mandir}/man1/card.1*
149 %{_mandir}/man1/fixps.1*
150 %{_mandir}/man1/lp2.1*
151 %{_mandir}/man1/ogonkify.1*
152 %{_mandir}/man1/pdiff.1*
153 %lang(pl) %{_mandir}/pl/man1/ogonkify.1*
154 %{_infodir}/a2ps.info*
155 %{_infodir}/ogonkify.info*
156
157 %dir %{_datadir}/a2ps
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
163 %{_datadir}/a2ps/encoding
164 %{_datadir}/a2ps/fonts
165 %{_datadir}/a2ps/ppd
166 %{_datadir}/a2ps/ps
167 %{_datadir}/a2ps/sheets
168
169 %dir %{_datadir}/ogonkify
170 %{_datadir}/ogonkify/*.enc
171 %{_datadir}/ogonkify/*.ps
172 %{_datadir}/ogonkify/afm
173 %{_datadir}/ogonkify/fonts
174
175 %files -n emacs-a2ps
176 %defattr(644,root,root,755)
177 %{_datadir}/emacs/site-lisp/a2ps.el
178 %{_datadir}/emacs/site-lisp/a2ps-print.el
This page took 0.05578 seconds and 4 git commands to generate.