1 |
Name: enscript |
2 |
Summary: Converts plain ASCII to PostScript |
3 |
Release: %mkrel 7 |
4 |
Version: 1.6.6 |
5 |
License: GPLv3 |
6 |
Group: Publishing |
7 |
Source0: ftp://ftp.gnu.org/gnu/enscript/%{name}-%{version}.tar.gz |
8 |
URL: ftp://ftp.gnu.org/gnu/enscript/ |
9 |
BuildRequires: flex |
10 |
BuildRequires: gettext |
11 |
Requires(post): info-install |
12 |
Requires(preun):info-install |
13 |
Obsoletes: nenscript |
14 |
Provides: nenscript |
15 |
|
16 |
%description |
17 |
GNU enscript is a free replacement for Adobe's Enscript program. Enscript |
18 |
converts ASCII files to PostScript(TM) and spools generated PostScript |
19 |
output to the specified printer or saves it to a file. Enscript can be |
20 |
extended to handle different output media and includes many options for |
21 |
customizing printouts. |
22 |
|
23 |
%prep |
24 |
%setup -q |
25 |
|
26 |
%build |
27 |
%configure2_5x --with-media=Letter |
28 |
%make_build |
29 |
|
30 |
%install |
31 |
%make_install |
32 |
|
33 |
mkdir -p %{buildroot}/etc/%{name} |
34 |
cp %{buildroot}/%{_datadir}/%{name}/afm/font.map %{buildroot}/etc/%{name}/font.map |
35 |
pushd %{buildroot}/%{_datadir}/%{name} |
36 |
ln -sf /etc/%{name}/font.map |
37 |
popd |
38 |
|
39 |
rm -f %{buildroot}/%{_datadir}/%{name}/font.map |
40 |
|
41 |
%find_lang %name |
42 |
|
43 |
# XXX note doubled %% in sed script below. |
44 |
(cd %{buildroot};find .%{_datadir}/enscript/* -type f) | \ |
45 |
sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list |
46 |
|
47 |
( cd %{buildroot} |
48 |
ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript |
49 |
) |
50 |
|
51 |
cat share.list >> %{name}.lang |
52 |
|
53 |
%post |
54 |
%_install_info %{name}.info |
55 |
|
56 |
%preun |
57 |
%_remove_install_info %{name}.info |
58 |
|
59 |
%files -f %{name}.lang |
60 |
%doc AUTHORS ChangeLog NEWS README README.ESCAPES THANKS TODO |
61 |
%config(noreplace) %{_sysconfdir}/enscript.cfg |
62 |
%dir %{_sysconfdir}/enscript |
63 |
%config(noreplace) %{_sysconfdir}/enscript/font.map |
64 |
%dir %{_datadir}/%{name} |
65 |
%dir %{_datadir}/%{name}/hl |
66 |
%dir %{_datadir}/%{name}/afm |
67 |
%{_bindir}/* |
68 |
%{_mandir}/*/* |
69 |
%{_infodir}/%{name}* |