Adam Tkac 8e5fd6
Summary: A plain ASCII to PostScript converter
cvsdist fb3f21
Name: enscript
Adam Tkac 2e6a42
Version: 1.6.5.2
Dennis Gilmore c41d0d
Release: 4%{?dist}
Adam Tkac a614ff
License: GPLv3+
cvsdist fb3f21
Group: Applications/Publishing
Adam Tkac aef817
URL: http://www.gnu.org/software/enscript
Adam Tkac aef817
# Tarball exists nowhere. You have to obtain it via:
Adam Tkac aef817
# $ git clone git://git.savannah.gnu.org/enscript.git
Adam Tkac aef817
# $ git archive --format=tar --prefix=enscript-1.6.4/ v1.6.4 |gzip > enscript-1.6.4.tar.gz
Adam Tkac aef817
Source0: enscript-%{version}.tar.gz
jkudrnac 17aa3c
Source1: enscript-ruby-1.6.4.tar.gz
jkudrnac 17aa3c
#http://neugierig.org/software/ruby/ruby-enscript.tar.gz
jkudrnac 17aa3c
Source2: enscript-php-1.6.4.st
jkudrnac 17aa3c
#http://home.raxnet.net/downloads/viewcvs/php.st
Adam Tkac aef817
Adam Tkac aef817
# RH #177336
jkudrnac 17aa3c
Patch1: enscript-1.6.4-hilight.patch
Adam Tkac aef817
# RH #61294
cvsdist 2b2c18
Patch3: enscript-1.6.1-locale.patch
Adam Tkac aef817
Adam Tkac aef817
# RH #224548
Adam Tkac ecde85
Patch8: enscript-wrap_header.patch
Adam Tkac aef817
Adam Tkac 9068b0
Patch9: enscript-1.6.4-rh457719.patch
Adam Tkac 9068b0
Patch10:enscript-1.6.4-rh457720.patch
Adam Tkac 8e5fd6
Patch12:enscript-rh477382.patch
Adam Tkac 8e5fd6
Requires(preun): /sbin/install-info
Adam Tkac 8e5fd6
Requires(post): /sbin/install-info
Adam Tkac 8e5fd6
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Adam Tkac aef817
Obsoletes: nenscript < 1.13++-13
Adam Tkac aef817
Provides: nenscript = 1.13++-13
cvsdist fb3f21
Adam Tkac 766de0
BuildRequires: autoconf, automake, gettext
Adam Tkac a42a1f
BuildRequires: gettext-devel
Adam Tkac 8e5fd6
cvsdist fb3f21
%description
cvsdist fb3f21
GNU enscript is a free replacement for Adobe's Enscript
cvsdist fb3f21
program. Enscript converts ASCII files to PostScript(TM) and spools
cvsdist fb3f21
generated PostScript output to the specified printer or saves it to a
cvsdist 4398c9
file. Enscript can be extended to handle different output media and
Adam Tkac 8e5fd6
includes many options for customizing printouts
cvsdist fb3f21
cvsdist fb3f21
%prep
cvsdist fb3f21
%setup -q
jkudrnac 17aa3c
%patch1 -p1 -b .hilight
cvsdist 2b2c18
%patch3 -p1 -b .locale
jkudrnac 8053e3
%patch8 -p1 -b .wrap_header
Adam Tkac 9068b0
%patch9 -p1 -b .rh457719
Adam Tkac 9068b0
%patch10 -p1 -b .rh457720
Adam Tkac 8e5fd6
%patch12 -p1 -b .rh477382
Adam Tkac 8e5fd6
jkudrnac 17aa3c
%{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
jkudrnac 17aa3c
install -pm 644 %{SOURCE2} states/hl/php.st
cvsdist fb3f21
cvsdist fb3f21
%build
Adam Tkac 8e5fd6
autoreconf -fiv
cvsdist fb3f21
%configure --with-media=Letter
Adam Tkac 8e5fd6
make %{?_smp_mflags}
cvsdist fb3f21
cvsdist fb3f21
cvsdist fb3f21
%install
cvsdist fb3f21
rm -rf %{buildroot}
cvsdist fb3f21
mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
cvsdist fb3f21
make DESTDIR=%{buildroot} install
Tim Waugh 775d0c
rm -f %{buildroot}%{_datadir}/info/dir
cvsdist fb3f21
cvsdist 285065
%find_lang %name
cvsdist 285065
cvsdist fb3f21
# XXX note doubled %% in sed script below.
Tim Waugh 34b903
(cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \
cvsdist fb3f21
	sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list
Tim Waugh 34b903
(cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \
Tim Waugh 34b903
	sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list
cvsdist fb3f21
cvsdist 285065
( cd %{buildroot}
cvsdist fb3f21
  ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
cvsdist 285065
)
cvsdist fb3f21
Adam Tkac aef817
%find_lang %{name} %{name}.lang
cvsdist fb3f21
Adam Tkac 8e5fd6
for all in README THANKS; do
Adam Tkac 8e5fd6
	iconv -f ISO88591 -t UTF8 < $all > $all.new
Adam Tkac 8e5fd6
	touch -r $all $all.new
Adam Tkac 8e5fd6
	mv $all.new $all
Adam Tkac 8e5fd6
done
Adam Tkac 8e5fd6
cvsdist fb3f21
%clean
cvsdist fb3f21
rm -rf %{buildroot}
cvsdist fb3f21
Tim Waugh 34b903
%preun
Tim Waugh 34b903
if [ $1 = 0 ]; then
Tim Waugh 34b903
    [ -f %{_infodir}/%{name}.info.gz ] && \
Tim Waugh 34b903
      /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
Tim Waugh 34b903
	%{_infodir}/dir || :
Tim Waugh 34b903
fi
Tim Waugh 34b903
Tim Waugh 34b903
%post
Tim Waugh 34b903
[ -f %{_infodir}/%{name}.info.gz ] && \
Tim Waugh 34b903
  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
Tim Waugh 34b903
Adam Tkac aef817
%files -f %{name}.lang -f share.list
Adam Tkac 8e5fd6
%defattr(-,root,root,-)
Adam Tkac aef817
%doc AUTHORS ChangeLog COPYING docs/FAQ.html NEWS README README.ESCAPES THANKS TODO
cvsdist fb3f21
%{_bindir}/*
cvsdist fb3f21
%{_mandir}/man1/*
cvsdist 4398c9
%dir %{_datadir}/enscript
Tim Waugh 34b903
%{_infodir}/%{name}*
cvsdist fb3f21
%config(noreplace) %{_sysconfdir}/enscript.cfg
cvsdist fb3f21
cvsdist fb3f21
%changelog
Dennis Gilmore c41d0d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5.2-4
Dennis Gilmore c41d0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore c41d0d
Adam Tkac a42a1f
* Wed Sep 08 2010 Adam Tkac <atkac redhat com> - 1.6.5.2-3
Adam Tkac a42a1f
- BR: s/gettext-autopoint/gettext-devel (#631147)
Adam Tkac a42a1f
Dan Horák ae0301
* Sat Jul 17 2010 Dan Horák <dan[at]danny.cz> - 1.6.5.2-2
Dan Horák ae0301
- add gettext-autopoint to BuildRequires
Dan Horák ae0301
Adam Tkac 2e6a42
* Wed Jun 02 2010 Adam Tkac <atkac redhat com> - 1.6.5.2-1
Adam Tkac 2e6a42
- update to 1.6.5.2
Adam Tkac 2e6a42
Adam Tkac a614ff
* Thu May 20 2010 Adam Tkac <atkac redhat com> - 1.6.5.1-1
Adam Tkac a614ff
- update to 1.6.5.1
Adam Tkac a614ff
- patches merged
Adam Tkac a614ff
  - enscript-1.6.1-config.patch
Adam Tkac a614ff
  - enscript-doublefree.patch
Adam Tkac a614ff
  - enscript-1.6.1-CAN-2004-1185.patch
Adam Tkac a614ff
  - enscript-1.6.1-CAN-2004-1186.patch
Adam Tkac a614ff
  - enscript-CVE-2008-3863+CVE-2008-4306.patch
Adam Tkac a614ff
- license changed to GPLv3+
Adam Tkac 766de0
- add gettext to BuildRequires
Adam Tkac a614ff
Adam Tkac aef817
* Mon Dec 14 2009 Adam Tkac <atkac redhat com> - 1.6.4-16
Adam Tkac aef817
- merge review related fixes (#225729)
Adam Tkac aef817
Adam Tkac 8e5fd6
* Mon Nov 30 2009 Adam Tkac <atkac redhat com> - 1.6.4-15
Adam Tkac 8e5fd6
- ship postscript files with .eps extension (#505775)
Adam Tkac 8e5fd6
- merge review fixes (#225729)
Adam Tkac 8e5fd6
- improve enscript-1.6.1-config.patch
Adam Tkac 8e5fd6
Ville Skyttä 8e2aca
* Mon Aug 10 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.6.4-14
Ville Skyttä 8e2aca
- Convert specfile to UTF-8.
Ville Skyttä 8e2aca
Jesse Keating e0d940
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-13
Jesse Keating e0d940
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating e0d940
Jesse Keating 84f45a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-12
Jesse Keating 84f45a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating 84f45a
Adam Tkac 0f3e89
* Mon Nov 03 2008 Adam Tkac <atkac redhat com> 1.6.4-11
Adam Tkac 0f3e89
- fixed various buffer overflows (CVE-2008-3863, CVE-2008-4306)
Adam Tkac 0f3e89
Adam Tkac 9068b0
* Fri Aug 08 2008 Adam Tkac <atkac redhat com> 1.6.4-10
Adam Tkac 9068b0
- updated patches due rpm 4.6
Adam Tkac 9068b0
- enscript -w is handled well (#457719)
Adam Tkac 9068b0
- mkafmmap -V is handled well (#457720)
Adam Tkac 9068b0
Jesse Keating 8a087a
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.6.4-9
Jesse Keating 8a087a
- Autorebuild for GCC 4.3
Jesse Keating 8a087a
Adam Tkac 2e25bb
* Wed Aug 22 2007 Adam Tkac <atkac redhat com> 1.6.4-8
Adam Tkac 2e25bb
- rebuild (BuildID feature)
Adam Tkac 2e25bb
- change license to GPLv2
Adam Tkac 2e25bb
Adam Tkac 2e25bb
* Mon Feb 12 2007 Adam Tkac <atkac redhat com> 1.6.4-7
Adam Tkac f262f9
- wrap_header patch had problems with around 70 characters long headers
Adam Tkac f262f9
Adam Tkac 2e25bb
* Fri Jan 26 2007 Adam Tkac <atkac redhat com> 1.6.4-6
Adam Tkac ecde85
- wrap_header patch has been improved
Adam Tkac ecde85
Adam Tkac 2e25bb
* Tue Dec 19 2006 Adam Tkac <atkac redhat com> 1.6.4-5
Adam Tkac ecde85
- fixed long-header patch
Adam Tkac 51743b
jkudrnac 8053e3
* Fri Sep 01 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 1.6.4-4
jkudrnac 8053e3
- enscript now wrapes long header instead of truncating
jkudrnac 8053e3
Jesse Keating f30628
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-3.1
Jesse Keating f30628
- rebuild
Jesse Keating f30628
Florian La Roche 816f13
* Tue Jun 27 2006 Florian La Roche <laroche@redhat.com> - 1.6.4-3
Florian La Roche 816f13
- /sbin/install-info is required for scripts
Florian La Roche 816f13
jkudrnac 17aa3c
*Fri Feb 17 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 1.6.4-2
jkudrnac 17aa3c
- added new highlighters (#177336)
jkudrnac 17aa3c
Jesse Keating 387809
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-1.1.2
Jesse Keating 387809
- bump again for double-long bug on ppc(64)
Jesse Keating 387809
Jesse Keating ac62d3
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-1.1.1
Jesse Keating ac62d3
- rebuilt for new gcc4.1 snapshot and glibc changes
Jesse Keating ac62d3
jkudrnac f2c535
* Fri Jan 27 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 1.6.4-1.1
jkudrnac f2c535
- fixed URL in the description (bug #178444)
jkudrnac f2c535
Tim Waugh 34b903
* Fri Dec 23 2005 Tim Waugh <twaugh@redhat.com> 1.6.4-1
Tim Waugh 6ffd3f
- 1.6.4 (bug #176349).  No longer need tmp, CAN-2004-1184, demunge patches.
Tim Waugh 34b903
Jesse Keating c8732c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
Jesse Keating c8732c
- rebuilt
Jesse Keating c8732c
Tim Waugh 8376f6
* Tue Mar  8 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-31
Tim Waugh 8376f6
- Fixed po files (bug #149859).
Tim Waugh 8376f6
Tim Waugh 13f422
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-30
Tim Waugh 13f422
- Rebuild for new GCC.
Tim Waugh 13f422
Tim Waugh 38e65e
* Tue Jan 29 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-29
Tim Waugh 657c28
- Applied patch to fix CAN-2004-1186 (bug #144684).
Tim Waugh 0498d5
- Applied patch to fix CAN-2004-1185 (bug #144684).
Tim Waugh ace8c2
- Backported patch to fix CAN-2004-1184 (bug #144684).
Tim Waugh ace8c2
Tim Waugh 7e9d1f
* Mon Sep 27 2004 Tim Waugh <twaugh@redhat.com> 1.6.1-28
Tim Waugh 7e9d1f
- Fixed double-free problem (bug #132964).
Tim Waugh 7e9d1f
cvsdist 3f453c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 3f453c
- rebuilt
cvsdist 3f453c
cvsdist 3f453c
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 3f453c
- rebuilt
cvsdist 3f453c
cvsdist 3f453c
* Mon Nov  3 2003 Tim Waugh <twaugh@redhat.com>
cvsdist 3f453c
- Removed mail patch.  It was included to be more compatible with an
cvsdist 3f453c
  lpr we no longer ship.  Fixes bug #108762.
cvsdist 3f453c
cvsdist b39280
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist b39280
- rebuilt
cvsdist b39280
cvsdist 6a7889
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 6a7889
- rebuilt
cvsdist 6a7889
cvsdist 6a7889
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
cvsdist 6a7889
- rebuild on all arches
cvsdist 6a7889
cvsdist 407f5c
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 407f5c
- automated rebuild
cvsdist 407f5c
cvsdist f1254b
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist f1254b
- automated rebuild
cvsdist f1254b
cvsdist f1254b
* Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-20
cvsdist f1254b
- Fix URL (bug #65278).
cvsdist f1254b
cvsdist a42edc
* Wed Apr  3 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-19
cvsdist a42edc
- Fix license (bug #62573).
cvsdist a42edc
cvsdist 2b2c18
* Mon Mar 18 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-18
cvsdist 2b2c18
- Fix locale issues (bug #61294).
cvsdist 2b2c18
cvsdist 2b2c18
* Mon Feb 04 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-17
cvsdist 2b2c18
- Rebuild in new environment.
cvsdist 517910
cvsdist 4398c9
* Mon Jan 14 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-16.2
cvsdist 4398c9
- Use tmpfile instead of tmpnam or tempnam (bug #57704).
cvsdist 4398c9
- Built for Red Hat Linux 7.x.
cvsdist 4398c9
cvsdist 4398c9
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.6.1-16
cvsdist 4398c9
- automated rebuild
cvsdist 4398c9
cvsdist 4398c9
* Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15
Adam Tkac 8e5fd6
- Own %%{_datadir}/enscript directory (bug #56974).
cvsdist 4398c9
cvsdist 4398c9
* Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14
cvsdist ba9fc2
- add optional mail paramater, closing bug #17750
cvsdist ba9fc2
- patch from marques@cs.cornell.edu
cvsdist ba9fc2
cvsdist bd16bd
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist bd16bd
- Bump release + rebuild.
cvsdist bd16bd
Ville Skyttä 8e2aca
* Tue Feb 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 285065
- langify
cvsdist 285065
cvsdist fb3f21
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist fb3f21
- automatic rebuild
cvsdist fb3f21
cvsdist fb3f21
* Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
cvsdist fb3f21
- FHS paths
cvsdist 4398c9
cvsdist fb3f21
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
cvsdist fb3f21
- rebuild to gzip man pages
cvsdist fb3f21
cvsdist fb3f21
* Wed Mar 24 1999 Erik Troan <ewt@redhat.com>
cvsdist fb3f21
- marked /usr/share/enscript/font.map as a config file
cvsdist fb3f21
cvsdist fb3f21
* Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
cvsdist fb3f21
- added documentation to the RPM
cvsdist fb3f21
cvsdist fb3f21
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist fb3f21
- auto rebuild in the new build environment (release 5)
cvsdist fb3f21
cvsdist fb3f21
* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
cvsdist fb3f21
- strip binaries.
cvsdist fb3f21
- include i18n locales.
cvsdist fb3f21
cvsdist fb3f21
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
cvsdist fb3f21
- Injected new description and group.
cvsdist fb3f21
cvsdist fb3f21
* Wed Nov 11 1998 Preston Brown <pbrown@redhat.com>
cvsdist fb3f21
- translations ripped out, slight cleanup to build section.
cvsdist fb3f21
cvsdist fb3f21
* Mon Nov 09 1998 Preston Brown <pbrown@redhat.com>
cvsdist fb3f21
- initial build of GNU enscript to replace nenscript.