17e065
Summary: A plain ASCII to PostScript converter
17e065
Name: enscript
17e065
Version: 1.6.6
d2ad92
Release: 17%{?dist}
17e065
License: GPLv3+ and LGPLv2+ and GPLv2+
17e065
URL: http://www.gnu.org/software/enscript
17e065
# Tarball exists nowhere. You have to obtain it via:
17e065
# $ git clone git://git.savannah.gnu.org/enscript.git
17e065
# $ git archive --format=tar --prefix=enscript-1.6.4/ v1.6.4 |gzip > enscript-1.6.4.tar.gz
17e065
Source0: enscript-%{version}.tar.gz
17e065
Source1: enscript-ruby-1.6.4.tar.gz
17e065
#http://neugierig.org/software/ruby/ruby-enscript.tar.gz
17e065
Source2: enscript-php-1.6.4.st
17e065
#http://home.raxnet.net/downloads/viewcvs/php.st
17e065
17e065
# RH #61294
17e065
Patch3: enscript-1.6.1-locale.patch
17e065
17e065
# RH #224548
17e065
Patch8: enscript-wrap_header.patch
17e065
17e065
Patch10:enscript-1.6.4-rh457720.patch
17e065
Patch12:enscript-rh477382.patch
17e065
Patch13:enscript-build.patch
17e065
Patch14:enscript-manfixes.patch
17e065
Patch15: enscript-bufpos-crash.patch
d2ad92
Patch16: 0001-enscript-newencodings.patch
17e065
17e065
Requires(preun): /sbin/install-info
17e065
Requires(post): /sbin/install-info
17e065
Obsoletes: nenscript < 1.13++-13
17e065
Provides: nenscript = 1.13++-13
17e065
17e065
# gcc is no longer in buildroot by default
17e065
BuildRequires: gcc
17e065
BuildRequires: autoconf, automake, gettext
17e065
BuildRequires: gettext-devel
17e065
17e065
%description
17e065
GNU enscript is a free replacement for Adobe's Enscript
17e065
program. Enscript converts ASCII files to PostScript(TM) and spools
17e065
generated PostScript output to the specified printer or saves it to a
17e065
file. Enscript can be extended to handle different output media and
17e065
includes many options for customizing printouts
17e065
17e065
%prep
17e065
%setup -q
17e065
%patch3 -p1 -b .locale
17e065
%patch8 -p1 -b .wrap_header
17e065
%patch10 -p1 -b .rh457720
17e065
%patch12 -p1 -b .rh477382
17e065
%patch13 -p1 -b .build
17e065
%patch14 -p1 -b .manfixes
17e065
%patch15 -p1 -b .bufpos-crash
d2ad92
%patch16 -p1 -b .newencodings
17e065
17e065
%{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
17e065
install -pm 644 %{SOURCE2} states/hl/php.st
17e065
17e065
%build
17e065
autoreconf -fiv
17e065
export CPPFLAGS='-DPROTOTYPES'
17e065
%configure --with-media=Letter
17e065
make %{?_smp_mflags}
17e065
17e065
17e065
%install
17e065
mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
17e065
make DESTDIR=%{buildroot} install
17e065
rm -f %{buildroot}%{_datadir}/info/dir
17e065
17e065
%find_lang %name
17e065
17e065
# XXX note doubled %% in sed script below.
17e065
(cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \
17e065
	sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list
17e065
(cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \
17e065
	sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list
17e065
17e065
( cd %{buildroot}
17e065
  ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
17e065
)
17e065
17e065
%find_lang %{name} %{name}.lang
17e065
17e065
for all in README THANKS; do
17e065
	iconv -f ISO88591 -t UTF8 < $all > $all.new
17e065
	touch -r $all $all.new
17e065
	mv $all.new $all
17e065
done
17e065
17e065
%preun
17e065
if [ $1 = 0 ]; then
17e065
    [ -f %{_infodir}/%{name}.info.gz ] && \
17e065
      /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
17e065
	%{_infodir}/dir || :
17e065
fi
17e065
17e065
%post
17e065
[ -f %{_infodir}/%{name}.info.gz ] && \
17e065
  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
17e065
17e065
%files -f %{name}.lang -f share.list
17e065
%defattr(-,root,root,-)
17e065
%doc AUTHORS ChangeLog COPYING docs/FAQ.html NEWS README README.ESCAPES THANKS TODO
17e065
%{_bindir}/*
17e065
%{_mandir}/man1/*
17e065
%dir %{_datadir}/enscript
17e065
%{_infodir}/%{name}*
17e065
%config(noreplace) %{_sysconfdir}/enscript.cfg
17e065
17e065
%changelog
d2ad92
* Fri Jun 07 2019 Zdenek Dohnal <zdohnal@redhat.com> - 1.6.6-17
d2ad92
- 1664366 - [RFE] Add support for 885915 encoding in enscript
d2ad92
17e065
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.6.6-16
17e065
- correcting license
17e065
17e065
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.6.6-15
17e065
- gcc is no longer in buildroot by default
17e065
17e065
* Thu Feb 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.6.6-14
17e065
- remove old stuff https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
17e065
17e065
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-13
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
17e065
17e065
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-12
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
17e065
17e065
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-11
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
17e065
17e065
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-10
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
17e065
17e065
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-9
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
17e065
17e065
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-8
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
17e065
17e065
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-7
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
17e065
17e065
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-6
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
17e065
17e065
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-5
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
17e065
17e065
* Mon May 13 2013 Tim Waugh <twaugh@redhat.com> - 1.6.6-4
17e065
17e065
- Fixed word-wrapping crash in tokenizer (bug #870639).
17e065
* Thu Apr 04 2013 Adam Tkac <atkac redhat="" com=""> - 1.6.6-3
17e065
- some manpage fixes
17e065
17e065
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-2
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
17e065
17e065
* Wed Sep 26 2012 Adam Tkac <atkac redhat="" com=""> - 1.6.6-1
17e065
- update to 1.6.6
17e065
- paches merged
17e065
  - enscript-1.6.4-hilight.patch
17e065
  - enscript-1.6.4-rh457719.patch
17e065
17e065
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5.2-6
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
17e065
17e065
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5.2-5
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
17e065
17e065
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5.2-4
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
17e065
17e065
* Wed Sep 08 2010 Adam Tkac <atkac redhat="" com=""> - 1.6.5.2-3
17e065
- BR: s/gettext-autopoint/gettext-devel (#631147)
17e065
17e065
* Sat Jul 17 2010 Dan Horák <dan[at]danny.cz> - 1.6.5.2-2
17e065
- add gettext-autopoint to BuildRequires
17e065
17e065
* Wed Jun 02 2010 Adam Tkac <atkac redhat="" com=""> - 1.6.5.2-1
17e065
- update to 1.6.5.2
17e065
17e065
* Thu May 20 2010 Adam Tkac <atkac redhat="" com=""> - 1.6.5.1-1
17e065
- update to 1.6.5.1
17e065
- patches merged
17e065
  - enscript-1.6.1-config.patch
17e065
  - enscript-doublefree.patch
17e065
  - enscript-1.6.1-CAN-2004-1185.patch
17e065
  - enscript-1.6.1-CAN-2004-1186.patch
17e065
  - enscript-CVE-2008-3863+CVE-2008-4306.patch
17e065
- license changed to GPLv3+
17e065
- add gettext to BuildRequires
17e065
17e065
* Mon Dec 14 2009 Adam Tkac <atkac redhat="" com=""> - 1.6.4-16
17e065
- merge review related fixes (#225729)
17e065
17e065
* Mon Nov 30 2009 Adam Tkac <atkac redhat="" com=""> - 1.6.4-15
17e065
- ship postscript files with .eps extension (#505775)
17e065
- merge review fixes (#225729)
17e065
- improve enscript-1.6.1-config.patch
17e065
17e065
* Mon Aug 10 2009 Ville Skyttä <ville.skytta at="" iki.fi=""> - 1.6.4-14
17e065
- Convert specfile to UTF-8.
17e065
17e065
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-13
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
17e065
17e065
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-12
17e065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
17e065
17e065
* Mon Nov 03 2008 Adam Tkac <atkac redhat="" com=""> 1.6.4-11
17e065
- fixed various buffer overflows (CVE-2008-3863, CVE-2008-4306)
17e065
17e065
* Fri Aug 08 2008 Adam Tkac <atkac redhat="" com=""> 1.6.4-10
17e065
- updated patches due rpm 4.6
17e065
- enscript -w is handled well (#457719)
17e065
- mkafmmap -V is handled well (#457720)
17e065
17e065
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.6.4-9
17e065
- Autorebuild for GCC 4.3
17e065
17e065
* Wed Aug 22 2007 Adam Tkac <atkac redhat="" com=""> 1.6.4-8
17e065
- rebuild (BuildID feature)
17e065
- change license to GPLv2
17e065
17e065
* Mon Feb 12 2007 Adam Tkac <atkac redhat="" com=""> 1.6.4-7
17e065
- wrap_header patch had problems with around 70 characters long headers
17e065
17e065
* Fri Jan 26 2007 Adam Tkac <atkac redhat="" com=""> 1.6.4-6
17e065
- wrap_header patch has been improved
17e065
17e065
* Tue Dec 19 2006 Adam Tkac <atkac redhat="" com=""> 1.6.4-5
17e065
- fixed long-header patch
17e065
17e065
* Fri Sep 01 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 1.6.4-4
17e065
- enscript now wrapes long header instead of truncating
17e065
17e065
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-3.1
17e065
- rebuild
17e065
17e065
* Tue Jun 27 2006 Florian La Roche <laroche@redhat.com> - 1.6.4-3
17e065
- /sbin/install-info is required for scripts
17e065
17e065
*Fri Feb 17 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 1.6.4-2
17e065
- added new highlighters (#177336)
17e065
17e065
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-1.1.2
17e065
- bump again for double-long bug on ppc(64)
17e065
17e065
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.6.4-1.1.1
17e065
- rebuilt for new gcc4.1 snapshot and glibc changes
17e065
17e065
* Fri Jan 27 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 1.6.4-1.1
17e065
- fixed URL in the description (bug #178444)
17e065
17e065
* Fri Dec 23 2005 Tim Waugh <twaugh@redhat.com> 1.6.4-1
17e065
- 1.6.4 (bug #176349).  No longer need tmp, CAN-2004-1184, demunge patches.
17e065
17e065
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
17e065
- rebuilt
17e065
17e065
* Tue Mar  8 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-31
17e065
- Fixed po files (bug #149859).
17e065
17e065
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-30
17e065
- Rebuild for new GCC.
17e065
17e065
* Sat Jan 29 2005 Tim Waugh <twaugh@redhat.com> 1.6.1-29
17e065
- Applied patch to fix CAN-2004-1186 (bug #144684).
17e065
- Applied patch to fix CAN-2004-1185 (bug #144684).
17e065
- Backported patch to fix CAN-2004-1184 (bug #144684).
17e065
17e065
* Mon Sep 27 2004 Tim Waugh <twaugh@redhat.com> 1.6.1-28
17e065
- Fixed double-free problem (bug #132964).
17e065
17e065
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
17e065
- rebuilt
17e065
17e065
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
17e065
- rebuilt
17e065
17e065
* Mon Nov  3 2003 Tim Waugh <twaugh@redhat.com>
17e065
- Removed mail patch.  It was included to be more compatible with an
17e065
  lpr we no longer ship.  Fixes bug #108762.
17e065
17e065
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
17e065
- rebuilt
17e065
17e065
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
17e065
- rebuilt
17e065
17e065
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
17e065
- rebuild on all arches
17e065
17e065
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
17e065
- automated rebuild
17e065
17e065
* Sun May 26 2002 Tim Powers <timp@redhat.com>
17e065
- automated rebuild
17e065
17e065
* Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-20
17e065
- Fix URL (bug #65278).
17e065
17e065
* Wed Apr  3 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-19
17e065
- Fix license (bug #62573).
17e065
17e065
* Mon Mar 18 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-18
17e065
- Fix locale issues (bug #61294).
17e065
17e065
* Mon Feb 04 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-17
17e065
- Rebuild in new environment.
17e065
17e065
* Mon Jan 14 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-16.2
17e065
- Use tmpfile instead of tmpnam or tempnam (bug #57704).
17e065
- Built for Red Hat Linux 7.x.
17e065
17e065
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.6.1-16
17e065
- automated rebuild
17e065
17e065
* Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15
17e065
- Own %%{_datadir}/enscript directory (bug #56974).
17e065
17e065
* Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14
17e065
- add optional mail paramater, closing bug #17750
17e065
- patch from marques@cs.cornell.edu
17e065
17e065
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
17e065
- Bump release + rebuild.
17e065
17e065
* Tue Feb 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
17e065
- langify
17e065
17e065
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
17e065
- automatic rebuild
17e065
17e065
* Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
17e065
- FHS paths
17e065
17e065
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
17e065
- rebuild to gzip man pages
17e065
17e065
* Wed Mar 24 1999 Erik Troan <ewt@redhat.com>
17e065
- marked /usr/share/enscript/font.map as a config file
17e065
17e065
* Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
17e065
- added documentation to the RPM
17e065
17e065
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
17e065
- auto rebuild in the new build environment (release 5)
17e065
17e065
* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
17e065
- strip binaries.
17e065
- include i18n locales.
17e065
17e065
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
17e065
- Injected new description and group.
17e065
17e065
* Wed Nov 11 1998 Preston Brown <pbrown@redhat.com>
17e065
- translations ripped out, slight cleanup to build section.
17e065
17e065
* Mon Nov 09 1998 Preston Brown <pbrown@redhat.com>
17e065
- initial build of GNU enscript to replace nenscript.