From fb3f21648ca62d99b42f93f3289299b7f70a38b0 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 04:31:18 +0000 Subject: auto-import changelog data from enscript-1.6.1-11.src.rpm Wed Jul 12 2000 Prospector - automatic rebuild Mon Jun 12 2000 Preston Brown - FHS paths Thu Feb 03 2000 Preston Brown - rebuild to gzip man pages Wed Mar 24 1999 Erik Troan - marked /usr/share/enscript/font.map as a config file Mon Mar 22 1999 Preston Brown - added documentation to the RPM Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) Fri Mar 19 1999 Jeff Johnson - strip binaries. - include i18n locales. Wed Feb 24 1999 Preston Brown - Injected new description and group. Wed Nov 11 1998 Preston Brown - translations ripped out, slight cleanup to build section. Mon Nov 09 1998 Preston Brown - initial build of GNU enscript to replace nenscript. --- diff --git a/.cvsignore b/.cvsignore index e69de29..41d3b07 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +enscript-1.6.1.tar.gz diff --git a/enscript-1.6.1-config.patch b/enscript-1.6.1-config.patch new file mode 100644 index 0000000..c15372e --- /dev/null +++ b/enscript-1.6.1-config.patch @@ -0,0 +1,76 @@ +--- enscript-1.6.1/lib/Makefile.in.config Mon Nov 9 15:37:40 1998 ++++ enscript-1.6.1/lib/Makefile.in Mon Nov 9 15:39:04 1998 +@@ -240,15 +240,16 @@ + all-local: enscript.cfg + + install-data-local: enscript.cfg +- $(top_srcdir)/mkinstalldirs $(sysconfdir) +- if test -r $(sysconfdir)/enscript.cfg; then \ +- cp $(sysconfdir)/enscript.cfg $(sysconfdir)/enscript.cfg.old; \ ++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir) ++ if test -r $(DESTDIR)$(sysconfdir)/enscript.cfg; then \ ++ cp $(DESTDIR)$(sysconfdir)/enscript.cfg \ ++ $(DESTDIR)$(sysconfdir)/enscript.cfg.old; \ + else :; \ + fi +- $(INSTALL_DATA) enscript.cfg $(sysconfdir)/enscript.cfg ++ $(INSTALL_DATA) enscript.cfg $(DESTDIR)$(sysconfdir)/enscript.cfg + + uninstall-local: +- rm -f $(sysconfdir)/enscript.cfg ++ rm -f $(DESTDIR)$(sysconfdir)/enscript.cfg + + enscript.cfg: $(srcdir)/enscript.cfg.in Makefile + sed 's%@DATADIR@%$(datadir)%g; s%@media@%@MEDIA@%g; s%@BINDIR@%$(bindir)%g; s%@spooler@%@SPOOLER@%g; s%@pslevel@%@PSLEVEL@%g' \ +--- enscript-1.6.1/po/Makefile.in.in.config Mon Nov 9 15:43:34 1998 ++++ enscript-1.6.1/po/Makefile.in.in Mon Nov 9 15:45:17 1998 +@@ -137,27 +137,27 @@ + lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \ + dir=$$destdir/$$lang/LC_MESSAGES; \ + if test -r $(MKINSTALLDIRS); then \ +- $(MKINSTALLDIRS) $$dir; \ ++ $(MKINSTALLDIRS) $(DESTDIR)$$dir; \ + else \ + $(top_srcdir)/mkinstalldirs $$dir; \ + fi; \ + if test -r $$cat; then \ +- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ +- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \ ++ $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \ ++ echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ + else \ +- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ ++ $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \ + echo "installing $(srcdir)/$$cat as" \ +- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ ++ "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ + fi; \ + if test -r $$cat.m; then \ +- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ +- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ ++ $(INSTALL_DATA) $$cat.m $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \ ++ echo "installing $$cat.m as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ + else \ + if test -r $(srcdir)/$$cat.m ; then \ + $(INSTALL_DATA) $(srcdir)/$$cat.m \ +- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ ++ $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \ + echo "installing $(srcdir)/$$cat as" \ +- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ ++ "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ + else \ + true; \ + fi; \ +--- enscript-1.6.1/states/Makefile.in.config Mon Nov 9 15:46:55 1998 ++++ enscript-1.6.1/states/Makefile.in Mon Nov 9 15:47:17 1998 +@@ -493,8 +493,8 @@ + $(srcdir)/over.in > over + + install-data-local: enscript.st +- $(top_srcdir)/mkinstalldirs $(datadir)/enscript +- $(INSTALL_DATA) $(srcdir)/enscript.st $(datadir)/enscript/enscript.st ++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/enscript ++ $(INSTALL_DATA) $(srcdir)/enscript.st $(DESTDIR)$(datadir)/enscript/enscript.st + + uninstall-local: + rm -f $(datadir)/enscript/enscript.st diff --git a/enscript.spec b/enscript.spec new file mode 100644 index 0000000..812429e --- /dev/null +++ b/enscript.spec @@ -0,0 +1,83 @@ +Summary: A plain ASCII to PostScript converter. +Name: enscript +Version: 1.6.1 +Release: 11 +Copyright: GNU +Group: Applications/Publishing +Source0: ftp://ftp.gnu.org/pub/gnu/enscript-1.6.1.tar.gz +Patch: enscript-1.6.1-config.patch +URL: http://www.ngs.fi/mtr/genscript/index.html +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Obsoletes: nenscript + +%description +GNU enscript is a free replacement for Adobe's Enscript +program. Enscript converts ASCII files to PostScript(TM) and spools +generated PostScript output to the specified printer or saves it to a +file. Enscript can be extended to handle different output media and +includes many options for customizing printouts. + +%prep +%setup -q +%patch -p1 + +%build +%configure --with-media=Letter + + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES +make DESTDIR=%{buildroot} install + +# XXX note doubled %% in sed script below. +(cd %{buildroot};find .%{_datadir}/enscript/*) | \ + sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list + +{ cd %{buildroot} + ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript +} + + +%clean +rm -rf %{buildroot} + +%files -f share.list +%defattr(-,root,root) +%{_datadir}/locale/*/LC_MESSAGES/enscript.mo +%{_bindir}/* +%{_mandir}/man1/* +%config(noreplace) %{_sysconfdir}/enscript.cfg + +%doc AUTHORS ChangeLog FAQ.html NEWS README README.ESCAPES THANKS TODO + +%changelog +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jun 12 2000 Preston Brown +- FHS paths +* Thu Feb 03 2000 Preston Brown +- rebuild to gzip man pages + +* Wed Mar 24 1999 Erik Troan +- marked /usr/share/enscript/font.map as a config file + +* Mon Mar 22 1999 Preston Brown +- added documentation to the RPM + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 5) + +* Fri Mar 19 1999 Jeff Johnson +- strip binaries. +- include i18n locales. + +* Wed Feb 24 1999 Preston Brown +- Injected new description and group. + +* Wed Nov 11 1998 Preston Brown +- translations ripped out, slight cleanup to build section. + +* Mon Nov 09 1998 Preston Brown +- initial build of GNU enscript to replace nenscript. diff --git a/sources b/sources index e69de29..33a6f69 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5ebcd29011806fb038b088a6adbda8b2 enscript-1.6.1.tar.gz