Blame SPECS/enscript.spec

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