enscript-vl.spec 6.6 KB

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