Blame SPECS/enscript.spec

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