Browse Source

* enscript: updated to 1.6.5.2; spec revamp; default paper size to A4

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5969 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 years ago
parent
commit
649b7bd645
1 changed files with 91 additions and 40 deletions
  1. 91 40
      e/enscript/enscript-vl.spec

+ 91 - 40
e/enscript/enscript-vl.spec

@@ -1,17 +1,42 @@
-Summary: A plain ASCII to PostScript converter.
-Name: enscript
-Version: 1.6.1
-Release: 28%{?_dist_release}
-License: GPL
-Group: Applications/Publishing
-Source0: ftp://ftp.gnu.org/pub/gnu/enscript-%{version}.tar.gz
-Patch0: enscript-1.6.1-config.patch
-Patch2: enscript-1.6.1-tmp.patch
-Patch3: enscript-1.6.1-locale.patch
-URL: http://people.ssh.fi/mtr/genscript/index.html
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildPrereq: flex, libtool, automake, autoconf
-Requires: perl
+Summary:	A plain ASCII to PostScript converter
+Name:		enscript
+Version:	1.6.5.2
+Release:	1%{?_dist_release}
+License:	GPLv3+
+Group:		Applications/Publishing
+URL:		http://www.gnu.org/software/enscript
+# Tarball exists nowhere. You have to obtain it via:
+# $ git clone git://git.savannah.gnu.org/enscript.git
+# $ git archive --format=tar --prefix=enscript-1.6.4/ v1.6.4 |gzip > enscript-1.6.4.tar.gz
+Source0:	enscript-%{version}.tar.gz
+Source1:	enscript-ruby-1.6.4.tar.gz
+#http://neugierig.org/software/ruby/ruby-enscript.tar.gz
+Source2:	enscript-php-1.6.4.st
+#http://home.raxnet.net/downloads/viewcvs/php.st
+
+# RH #177336
+Patch1:		enscript-1.6.4-hilight.patch
+# RH #61294
+Patch3:		enscript-1.6.1-locale.patch
+
+# RH #224548
+Patch8:		enscript-wrap_header.patch
+
+Patch9:		enscript-1.6.4-rh457719.patch
+Patch10:	enscript-1.6.4-rh457720.patch
+Patch12:	enscript-rh477382.patch
+Requires(preun): /sbin/install-info
+Requires(post): /sbin/install-info
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Obsoletes:	nenscript < 1.13++-13
+Provides:	nenscript = 1.13++-13
+
+BuildRequires:	autoconf, automake, gettext
+BuildRequires:	gettext-devel
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
+
 
 %description
 GNU enscript is a free replacement for Adobe's Enscript
@@ -21,53 +46,89 @@ file. Enscript can be extended to handle different output media and
 includes many options for customizing printouts.
 
 %description -l ja
-GNU enscript縺ッAdobe's Enscript縺ォ莉」繧上k繝輔Μ繝シ縺ェ繝励Ο繧ー繝ゥ繝�縺ァ縺吶€�
-Enscript縺ッASCII繝輔ぃ繧、繝ォ繧単ostScript(TM)縺ォ螟画鋤縺励※縲�
-迚ケ螳壹�繝励Μ繝ウ繧ソ縺ォ菴懈�縺励◆PostScript繝輔ぃ繧、繝ォ繧偵せ繝励�繝ォ縺励◆繧翫€�
-繝輔ぃ繧、繝ォ縺ォ菫晏ュ倥☆繧九%縺ィ縺後〒縺阪∪縺吶€�
-Enscript縺ッ逡ー縺ェ繧句�蜉帙Γ繝�ぅ繧「繧呈桶縺医k繧医≧縺ォ諡。蠑オ縺輔l縺ヲ縺翫j縲�
-繝励Μ繝ウ繝亥�蜉帙r繧ォ繧ケ繧ソ繝槭う繧コ縺吶k縺溘a縺ョ螟壹¥縺ョ繧ェ繝励す繝ァ繝ウ繧貞性繧薙〒縺�∪縺吶€�
+GNU enscript は Adobe Enscript に代わるフリーなプログラムです。
+Enscript は ASCII ファイルを PostScript(TM) に変換して、
+特定のプリンタに作成した PostScript ファイルをスプールしたり、
+ファイルに保存することができます。
+Enscript は異なる出力メディアを扱えるように拡張されており、
+プリント出力をカスタマイズするための多くのオプションを含んでいます。
+
 
 %prep
 %setup -q
-%patch0 -p1 -b .config
-%patch2 -p1 -b .tmp
+%patch1 -p1 -b .hilight
 %patch3 -p1 -b .locale
+%patch8 -p1 -b .wrap_header
+%patch9 -p1 -b .rh457719
+%patch10 -p1 -b .rh457720
+%patch12 -p1 -b .rh477382
+
+%{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
+install -pm 644 %{SOURCE2} states/hl/php.st
+
 
 %build
-%configure 
+autoreconf -fiv
+%configure --with-media=Letter
+make %{?_smp_mflags}
 
 
 %install
 rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
 make DESTDIR=%{buildroot} install
+rm -f %{buildroot}%{_datadir}/info/dir
 
 %find_lang %name
 
 # XXX note doubled %% in sed script below.
-(cd %{buildroot};find .%{_datadir}/enscript/*) | \
+(cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \
 	sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list
+(cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \
+	sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list
 
 ( cd %{buildroot}
   ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
 )
 
-cat %{name}.lang >> share.list
+%find_lang %{name} %{name}.lang
+
+for all in README THANKS; do
+	iconv -f ISO88591 -t UTF8 < $all > $all.new
+	touch -r $all $all.new
+	mv $all.new $all
+done
 
 %clean
 rm -rf %{buildroot}
 
-%files -f share.list
-%defattr(-,root,root)
+%preun
+if [ $1 = 0 ]; then
+    [ -f %{_infodir}/%{name}.info.gz ] && \
+      /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
+	%{_infodir}/dir || :
+fi
+
+%post
+[ -f %{_infodir}/%{name}.info.gz ] && \
+  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
+
+
+%files -f %{name}.lang -f share.list
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING docs/FAQ.html NEWS README README.ESCAPES THANKS TODO
 %{_bindir}/*
 %{_mandir}/man1/*
 %dir %{_datadir}/enscript
+%{_infodir}/%{name}*
 %config(noreplace) %{_sysconfdir}/enscript.cfg
 
-%doc AUTHORS ChangeLog FAQ.html NEWS README README.ESCAPES THANKS TODO 
 
 %changelog
+* Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.5.2-1
+- updated to 1.6.5.2
+- spec revamped based on Fedora
+
 * Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.1-28vl5
 - applied new versioning policy, spec in utf-8
 
@@ -76,16 +137,6 @@ rm -rf %{buildroot}
 - added BuildPrereq and Requires
 - added japanese description
 
-* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
-- rebuilt
-
-* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
-- rebuilt
-
-* Mon Nov  3 2003 Tim Waugh <twaugh@redhat.com>
-- Removed mail patch.  It was included to be more compatible with an
-  lpr we no longer ship.  Fixes bug #108762.
-
 * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
 - rebuilt
 
@@ -121,7 +172,7 @@ rm -rf %{buildroot}
 - automated rebuild
 
 * Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15
-- Own %{_datadir}/enscript directory (bug #56974).
+- Own %%{_datadir}/enscript directory (bug #56974).
 
 * Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14
 - add optional mail paramater, closing bug #17750
@@ -130,7 +181,7 @@ rm -rf %{buildroot}
 * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
 - Bump release + rebuild.
 
-* Tue Feb 27 2001 Trond Eivind Glomsrツ湘� <teg@redhat.com>
+* Tue Feb 27 2001 Trond Eivind Glomsrテクd <teg@redhat.com>
 - langify
 
 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>