enscript-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. Summary: A plain ASCII to PostScript converter
  2. Name: enscript
  3. Version: 1.6.5.2
  4. Release: 1%{?_dist_release}
  5. License: GPLv3+
  6. Group: Applications/Publishing
  7. URL: http://www.gnu.org/software/enscript
  8. # Tarball exists nowhere. You have to obtain it via:
  9. # $ git clone git://git.savannah.gnu.org/enscript.git
  10. # $ git archive --format=tar --prefix=enscript-1.6.4/ v1.6.4 |gzip > enscript-1.6.4.tar.gz
  11. Source0: enscript-%{version}.tar.gz
  12. Source1: enscript-ruby-1.6.4.tar.gz
  13. #http://neugierig.org/software/ruby/ruby-enscript.tar.gz
  14. Source2: enscript-php-1.6.4.st
  15. #http://home.raxnet.net/downloads/viewcvs/php.st
  16. # RH #177336
  17. Patch1: enscript-1.6.4-hilight.patch
  18. # RH #61294
  19. Patch3: enscript-1.6.1-locale.patch
  20. # RH #224548
  21. Patch8: enscript-wrap_header.patch
  22. Patch9: enscript-1.6.4-rh457719.patch
  23. Patch10: enscript-1.6.4-rh457720.patch
  24. Patch12: enscript-rh477382.patch
  25. Requires(preun): /sbin/install-info
  26. Requires(post): /sbin/install-info
  27. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  28. Obsoletes: nenscript < 1.13++-13
  29. Provides: nenscript = 1.13++-13
  30. BuildRequires: autoconf, automake, gettext
  31. BuildRequires: gettext-devel
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. %description
  35. GNU enscript is a free replacement for Adobe's Enscript
  36. program. Enscript converts ASCII files to PostScript(TM) and spools
  37. generated PostScript output to the specified printer or saves it to a
  38. file. Enscript can be extended to handle different output media and
  39. includes many options for customizing printouts.
  40. %description -l ja
  41. GNU enscript は Adobe Enscript に代わるフリーなプログラムです。
  42. Enscript は ASCII ファイルを PostScript(TM) に変換して、
  43. 特定のプリンタに作成した PostScript ファイルをスプールしたり、
  44. ファイルに保存することができます。
  45. Enscript は異なる出力メディアを扱えるように拡張されており、
  46. プリント出力をカスタマイズするための多くのオプションを含んでいます。
  47. %prep
  48. %setup -q
  49. %patch1 -p1 -b .hilight
  50. %patch3 -p1 -b .locale
  51. %patch8 -p1 -b .wrap_header
  52. %patch9 -p1 -b .rh457719
  53. %patch10 -p1 -b .rh457720
  54. %patch12 -p1 -b .rh477382
  55. %{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
  56. install -pm 644 %{SOURCE2} states/hl/php.st
  57. %build
  58. autoreconf -fiv
  59. %configure --with-media=Letter
  60. make %{?_smp_mflags}
  61. %install
  62. rm -rf %{buildroot}
  63. mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
  64. make DESTDIR=%{buildroot} install
  65. rm -f %{buildroot}%{_datadir}/info/dir
  66. %find_lang %name
  67. # XXX note doubled %% in sed script below.
  68. (cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \
  69. sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list
  70. (cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \
  71. sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list
  72. ( cd %{buildroot}
  73. ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
  74. )
  75. %find_lang %{name} %{name}.lang
  76. for all in README THANKS; do
  77. iconv -f ISO88591 -t UTF8 < $all > $all.new
  78. touch -r $all $all.new
  79. mv $all.new $all
  80. done
  81. %clean
  82. rm -rf %{buildroot}
  83. %preun
  84. if [ $1 = 0 ]; then
  85. [ -f %{_infodir}/%{name}.info.gz ] && \
  86. /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
  87. %{_infodir}/dir || :
  88. fi
  89. %post
  90. [ -f %{_infodir}/%{name}.info.gz ] && \
  91. /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
  92. %files -f %{name}.lang -f share.list
  93. %defattr(-,root,root,-)
  94. %doc AUTHORS ChangeLog COPYING docs/FAQ.html NEWS README README.ESCAPES THANKS TODO
  95. %{_bindir}/*
  96. %{_mandir}/man1/*
  97. %dir %{_datadir}/enscript
  98. %{_infodir}/%{name}*
  99. %config(noreplace) %{_sysconfdir}/enscript.cfg
  100. %changelog
  101. * Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.5.2-1
  102. - updated to 1.6.5.2
  103. - spec revamped based on Fedora
  104. * Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.1-28vl5
  105. - applied new versioning policy, spec in utf-8
  106. * Sun Jul 11 2004 Satoshi MACHINO <machino@vinelinux.org> 1.6.1-27vl1
  107. - build for VineLinux
  108. - added BuildPrereq and Requires
  109. - added japanese description
  110. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  111. - rebuilt
  112. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  113. - rebuilt
  114. * Wed Nov 20 2002 Tim Powers <timp@redhat.com>
  115. - rebuild on all arches
  116. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  117. - automated rebuild
  118. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  119. - automated rebuild
  120. * Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-20
  121. - Fix URL (bug #65278).
  122. * Wed Apr 3 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-19
  123. - Fix license (bug #62573).
  124. * Mon Mar 18 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-18
  125. - Fix locale issues (bug #61294).
  126. * Mon Feb 04 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-17
  127. - Rebuild in new environment.
  128. * Mon Jan 14 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-16.2
  129. - Use tmpfile instead of tmpnam or tempnam (bug #57704).
  130. - Built for Red Hat Linux 7.x.
  131. * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.6.1-16
  132. - automated rebuild
  133. * Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15
  134. - Own %%{_datadir}/enscript directory (bug #56974).
  135. * Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14
  136. - add optional mail paramater, closing bug #17750
  137. - patch from marques@cs.cornell.edu
  138. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  139. - Bump release + rebuild.
  140. * Tue Feb 27 2001 Trond Eivind Glomsrテクd <teg@redhat.com>
  141. - langify
  142. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  143. - automatic rebuild
  144. * Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
  145. - FHS paths
  146. * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
  147. - rebuild to gzip man pages
  148. * Wed Mar 24 1999 Erik Troan <ewt@redhat.com>
  149. - marked /usr/share/enscript/font.map as a config file
  150. * Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
  151. - added documentation to the RPM
  152. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  153. - auto rebuild in the new build environment (release 5)
  154. * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
  155. - strip binaries.
  156. - include i18n locales.
  157. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  158. - Injected new description and group.
  159. * Wed Nov 11 1998 Preston Brown <pbrown@redhat.com>
  160. - translations ripped out, slight cleanup to build section.
  161. * Mon Nov 09 1998 Preston Brown <pbrown@redhat.com>
  162. - initial build of GNU enscript to replace nenscript.