Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37838100
en ru br
ALT Linux repos
S:1.6.6-alt2
5.0: 1.6.4-alt3
4.1: 1.6.4-alt3
4.0: 1.6.4-alt2.0
3.0: 1.6.4-alt2

Other repositories
Upstream:1.6.1

Group :: Publishing
RPM: enscript

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: enscript
Version: 1.6.4
Release: alt2.0

Summary: Converts plain ASCII to PostScript
License: GPL
Group: Publishing
Url: http://people.ssh.fi/mtr/genscript/

PreReq: %__install_info

Source0: ftp://ftp.gnu.org/pub/gnu/%name/%name-%version.tar.bz2

Patch1: enscript-1.6.3-rh-mail.patch
Patch2: enscript-1.6.1-rh-locale.patch
Patch3: enscript-1.6.3-alt-fontpath.patch
Patch4: enscript-1.6.3-alt-default-enc.patch  
Patch5: enscript-1.6.3-alt-encodings.patch
Patch6: enscript-1.6.4-alt-build.patch
Patch7: enscript-1.6.3-deb-CAN-2004-1184.patch
Patch8: enscript-1.6.3-deb-CAN-2004-1185.patch
Patch9: enscript-1.6.3-deb-CAN-2004-1186.patch

BuildPreReq: rpm-build >= 4.0.4-alt10, automake_1.7
%set_automake_version 1.7

Obsoletes: nenscript

# Automatically added by buildreq on Tue Sep 16 2003

BuildRequires: flex

%description
Enscript is a print filter. It can take ASCII input
and format it into PostScript output. At the same time,
it can also do nice transformations like putting two
ASCII pages on one physical page (side by side) or
changing fonts.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

aclocal
automake lib/Makefile
automake afmlib/Makefile


%build
%add_optflags -D_GNU_SOURCE
%configure --with-media=Letter
%make_build

%install
%makeinstall

%__install -pm755 -d $RPM_BUILD_ROOT%_sysconfdir/%name
%__install -pm644 $RPM_BUILD_ROOT/%_datadir/%name/afm/font.map $RPM_BUILD_ROOT%_sysconfdir/%name/font.map
pushd $RPM_BUILD_ROOT/%_datadir/%name
%__ln_s  %_sysconfdir/%name/font.map
popd

%find_lang %name

# XXX note doubled %% in sed script below.

(cd %buildroot;find .%_datadir/enscript/* -type f) | \
sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list

%__ln_s %_bindir/enscript $RPM_BUILD_ROOT%_bindir/nenscript

%post
%install_info %name.info

%preun
%uninstall_info %name.info


%files -f %name.lang
%doc AUTHORS ChangeLog NEWS README README.ESCAPES THANKS TODO
%config(noreplace) %_sysconfdir/enscript.cfg
%config(noreplace) %_sysconfdir/enscript/font.map
%_bindir/*
%_mandir/man?/*
%_datadir/%name
%_infodir/*.info*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin