cvsdist fb3f216
Summary: A plain ASCII to PostScript converter.
cvsdist fb3f216
Name: enscript
34b903b
Version: 1.6.4
Adam Tkac f262f92
Release: 7%{?dist}
cvsdist a42edcb
License: GPL
cvsdist fb3f216
Group: Applications/Publishing
34b903b
Source0: http://www.iki.fi/mtr/genscript/enscript-%{version}.tar.gz
jkudrnac 17aa3ce
Source1: enscript-ruby-1.6.4.tar.gz
jkudrnac 17aa3ce
#http://neugierig.org/software/ruby/ruby-enscript.tar.gz
jkudrnac 17aa3ce
Source2: enscript-php-1.6.4.st
jkudrnac 17aa3ce
#http://home.raxnet.net/downloads/viewcvs/php.st
cvsdist ba9fc2c
Patch0: enscript-1.6.1-config.patch
jkudrnac 17aa3ce
Patch1: enscript-1.6.4-hilight.patch
cvsdist 2b2c189
Patch3: enscript-1.6.1-locale.patch
7e9d1fc
Patch4: enscript-doublefree.patch
0498d55
Patch6: enscript-1.6.1-CAN-2004-1185.patch
657c28d
Patch7: enscript-1.6.1-CAN-2004-1186.patch
Adam Tkac ecde858
Patch8: enscript-wrap_header.patch
jkudrnac f2c5358
URL: http://www.codento.com/people/mtr/genscript/
Florian La Roche 816f136
Prereq: /sbin/install-info
cvsdist fb3f216
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist fb3f216
Obsoletes: nenscript
cvsdist fb3f216
cvsdist fb3f216
%description
cvsdist fb3f216
GNU enscript is a free replacement for Adobe's Enscript
cvsdist fb3f216
program. Enscript converts ASCII files to PostScript(TM) and spools
cvsdist fb3f216
generated PostScript output to the specified printer or saves it to a
cvsdist 4398c90
file. Enscript can be extended to handle different output media and
cvsdist fb3f216
includes many options for customizing printouts.
cvsdist fb3f216
cvsdist fb3f216
%prep
cvsdist fb3f216
%setup -q
cvsdist ba9fc2c
%patch0 -p1 -b .config
jkudrnac 17aa3ce
%patch1 -p1 -b .hilight
cvsdist 2b2c189
%patch3 -p1 -b .locale
7e9d1fc
%patch4 -p1 -b .doublefree
0498d55
%patch6 -p1 -b .CAN-2004-1185
6039656
%patch7 -p1 -b .CAN-2004-1186
jkudrnac 8053e3f
%patch8 -p1 -b .wrap_header
jkudrnac 17aa3ce
%{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
jkudrnac 17aa3ce
install -pm 644 %{SOURCE2} states/hl/php.st
cvsdist fb3f216
cvsdist fb3f216
%build
cvsdist fb3f216
%configure --with-media=Letter
8376f69
make
cvsdist fb3f216
cvsdist fb3f216
cvsdist fb3f216
%install
cvsdist fb3f216
rm -rf %{buildroot}
cvsdist fb3f216
mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
cvsdist fb3f216
make DESTDIR=%{buildroot} install
775d0c6
rm -f %{buildroot}%{_datadir}/info/dir
cvsdist fb3f216
cvsdist 285065e
%find_lang %name
cvsdist 285065e
cvsdist fb3f216
# XXX note doubled %% in sed script below.
34b903b
(cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \
cvsdist fb3f216
	sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list
34b903b
(cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \
34b903b
	sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list
cvsdist fb3f216
cvsdist 285065e
( cd %{buildroot}
cvsdist fb3f216
  ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
cvsdist 285065e
)
cvsdist fb3f216
cvsdist 285065e
cat %{name}.lang >> share.list
cvsdist fb3f216
cvsdist fb3f216
%clean
cvsdist fb3f216
rm -rf %{buildroot}
cvsdist fb3f216
34b903b
%preun
34b903b
if [ $1 = 0 ]; then
34b903b
    [ -f %{_infodir}/%{name}.info.gz ] && \
34b903b
      /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
34b903b
	%{_infodir}/dir || :
34b903b
fi
34b903b
34b903b
%post
34b903b
[ -f %{_infodir}/%{name}.info.gz ] && \
34b903b
  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
34b903b
cvsdist fb3f216
%files -f share.list
34b903b
%doc AUTHORS ChangeLog docs/FAQ.html NEWS README README.ESCAPES THANKS TODO 
cvsdist fb3f216
%defattr(-,root,root)
cvsdist fb3f216
%{_bindir}/*
cvsdist fb3f216
%{_mandir}/man1/*
cvsdist 4398c90
%dir %{_datadir}/enscript
34b903b
%{_infodir}/%{name}*
cvsdist fb3f216
%config(noreplace) %{_sysconfdir}/enscript.cfg
cvsdist fb3f216
cvsdist fb3f216
cvsdist fb3f216
%changelog
Adam Tkac f262f92
* Mon Feb 12 2007 Adam Tkac <atkac redhat com> 1.6.4-7.fc7
Adam Tkac f262f92
- wrap_header patch had problems with around 70 characters long headers
Adam Tkac f262f92
Adam Tkac f262f92
* Fri Jan 26 2007 Adam Tkac <atkac redhat com> 1.6.4-6.fc7
Adam Tkac ecde858
- wrap_header patch has been improved
Adam Tkac ecde858
Adam Tkac f262f92
* Tue Dec 19 2006 Adam Tkac <atkac redhat com> 1.6.4-5.fc7
Adam Tkac ecde858
- fixed long-header patch
Adam Tkac 51743be
jkudrnac 8053e3f
* Fri Sep 01 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 1.6.4-4
jkudrnac 8053e3f
- enscript now wrapes long header instead of truncating
jkudrnac 8053e3f
f30628e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-3.1
f30628e
- rebuild
f30628e
Florian La Roche 816f136
* Tue Jun 27 2006 Florian La Roche <laroche@redhat.com> - 1.6.4-3
Florian La Roche 816f136
- /sbin/install-info is required for scripts
Florian La Roche 816f136
jkudrnac 17aa3ce
*Fri Feb 17 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 1.6.4-2
jkudrnac 17aa3ce
- added new highlighters (#177336)
jkudrnac 17aa3ce
3878099
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-1.1.2
3878099
- bump again for double-long bug on ppc(64)
3878099
ac62d36
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-1.1.1
ac62d36
- rebuilt for new gcc4.1 snapshot and glibc changes
ac62d36
jkudrnac f2c5358
* Fri Jan 27 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 1.6.4-1.1
jkudrnac f2c5358
- fixed URL in the description (bug #178444)
jkudrnac f2c5358
34b903b
* Fri Dec 23 2005 Tim Waugh <twaugh@redhat.com> 1.6.4-1
6ffd3f4
- 1.6.4 (bug #176349).  No longer need tmp, CAN-2004-1184, demunge patches.
34b903b
c8732c6
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c8732c6
- rebuilt
c8732c6
8376f69
* Tue Mar  8 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-31
8376f69
- Fixed po files (bug #149859).
8376f69
13f4221
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-30
13f4221
- Rebuild for new GCC.
13f4221
38e65e4
* Tue Jan 29 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-29
657c28d
- Applied patch to fix CAN-2004-1186 (bug #144684).
0498d55
- Applied patch to fix CAN-2004-1185 (bug #144684).
ace8c28
- Backported patch to fix CAN-2004-1184 (bug #144684).
ace8c28
7e9d1fc
* Mon Sep 27 2004 Tim Waugh <twaugh@redhat.com> 1.6.1-28
7e9d1fc
- Fixed double-free problem (bug #132964).
7e9d1fc
cvsdist 3f453cb
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 3f453cb
- rebuilt
cvsdist 3f453cb
cvsdist 3f453cb
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 3f453cb
- rebuilt
cvsdist 3f453cb
cvsdist 3f453cb
* Mon Nov  3 2003 Tim Waugh <twaugh@redhat.com>
cvsdist 3f453cb
- Removed mail patch.  It was included to be more compatible with an
cvsdist 3f453cb
  lpr we no longer ship.  Fixes bug #108762.
cvsdist 3f453cb
cvsdist b392803
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist b392803
- rebuilt
cvsdist b392803
cvsdist 6a78892
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 6a78892
- rebuilt
cvsdist 6a78892
cvsdist 6a78892
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
cvsdist 6a78892
- rebuild on all arches
cvsdist 6a78892
cvsdist 407f5c3
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 407f5c3
- automated rebuild
cvsdist 407f5c3
cvsdist f1254bd
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist f1254bd
- automated rebuild
cvsdist f1254bd
cvsdist f1254bd
* Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-20
cvsdist f1254bd
- Fix URL (bug #65278).
cvsdist f1254bd
cvsdist a42edcb
* Wed Apr  3 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-19
cvsdist a42edcb
- Fix license (bug #62573).
cvsdist a42edcb
cvsdist 2b2c189
* Mon Mar 18 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-18
cvsdist 2b2c189
- Fix locale issues (bug #61294).
cvsdist 2b2c189
cvsdist 2b2c189
* Mon Feb 04 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-17
cvsdist 2b2c189
- Rebuild in new environment.
cvsdist 517910a
cvsdist 4398c90
* Mon Jan 14 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-16.2
cvsdist 4398c90
- Use tmpfile instead of tmpnam or tempnam (bug #57704).
cvsdist 4398c90
- Built for Red Hat Linux 7.x.
cvsdist 4398c90
cvsdist 4398c90
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.6.1-16
cvsdist 4398c90
- automated rebuild
cvsdist 4398c90
cvsdist 4398c90
* Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15
cvsdist 4398c90
- Own %{_datadir}/enscript directory (bug #56974).
cvsdist 4398c90
cvsdist 4398c90
* Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14
cvsdist ba9fc2c
- add optional mail paramater, closing bug #17750
cvsdist ba9fc2c
- patch from marques@cs.cornell.edu
cvsdist ba9fc2c
cvsdist bd16bde
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist bd16bde
- Bump release + rebuild.
cvsdist bd16bde
cvsdist 285065e
* Tue Feb 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 285065e
- langify
cvsdist 285065e
cvsdist fb3f216
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist fb3f216
- automatic rebuild
cvsdist fb3f216
cvsdist fb3f216
* Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
cvsdist fb3f216
- FHS paths
cvsdist 4398c90
cvsdist fb3f216
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
cvsdist fb3f216
- rebuild to gzip man pages
cvsdist fb3f216
cvsdist fb3f216
* Wed Mar 24 1999 Erik Troan <ewt@redhat.com>
cvsdist fb3f216
- marked /usr/share/enscript/font.map as a config file
cvsdist fb3f216
cvsdist fb3f216
* Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
cvsdist fb3f216
- added documentation to the RPM
cvsdist fb3f216
cvsdist fb3f216
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist fb3f216
- auto rebuild in the new build environment (release 5)
cvsdist fb3f216
cvsdist fb3f216
* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
cvsdist fb3f216
- strip binaries.
cvsdist fb3f216
- include i18n locales.
cvsdist fb3f216
cvsdist fb3f216
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
cvsdist fb3f216
- Injected new description and group.
cvsdist fb3f216
cvsdist fb3f216
* Wed Nov 11 1998 Preston Brown <pbrown@redhat.com>
cvsdist fb3f216
- translations ripped out, slight cleanup to build section.
cvsdist fb3f216
cvsdist fb3f216
* Mon Nov 09 1998 Preston Brown <pbrown@redhat.com>
cvsdist fb3f216
- initial build of GNU enscript to replace nenscript.