linuxdoc-tools-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Summary: A text formatting system based on SGML
  2. Summary(ja): SGML に基づいたテキスト整形システム
  3. Name: linuxdoc-tools
  4. Version: 0.9.21
  5. Release: 2%{?_dist_release}
  6. License: distributable
  7. Group: Applications/Text
  8. Source0: http://people.debian.org/~sano/linuxdoc-tools/archives/linuxdoc-tools_%{version}.tar.gz
  9. Patch0: linuxdoc-tools-0.9.13-letter.patch.bz2
  10. Patch1: linuxdoc-tools-0.9.20-strip.patch.bz2
  11. # Vine Patches
  12. Patch100: linuxdoc-tools-0.9.21-platex.patch
  13. Patch101: linuxdoc-tools-0.9.21-replace_dvips.patch
  14. Patch102: linuxdoc-tools-0.9.21-lib64.patch
  15. # use ISO entities in 'sgml-common' package
  16. Patch103: linuxdoc-tools-0.9.21-catalog_file.patch
  17. Requires(post): sgml-common >= 0.5
  18. Requires(postun): sgml-common >= 0.5
  19. Requires: openjade, sgml-common >= 0.5
  20. Requires: docbook-utils, texlive, gawk, groff
  21. BuildRequires: openjade, flex, sgml-common >= 0.5
  22. Obsoletes: sgml-tools
  23. Provides: sgml-tools
  24. #Conflicts: docbook-dtds
  25. Buildroot: %{_tmppath}/%{name}-%{version}-root
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. %description
  29. linuxdoc-tools is a SGML-based text formatter which allows you to
  30. produce a variety of output formats. You can create PostScript and
  31. dvi (with LaTeX), plain text (with groff), HTML, and texinfo files
  32. from a single SGML source file.
  33. %description -l ja
  34. linuxdoc-tools は SGML-Tools のバグフィックス版です。
  35. LinuxDoc DTD をサポートしており、SGML ソースファイルから PostScript,
  36. (LaTeX による) dvi、(groff による)プレーンテキスト、HTML、texinfo
  37. ファイルを生成できます。
  38. DocBook DTD など、LinuxDoc DTD 以外のDTDを処理する場合には
  39. このパッケージのかわりに、sgml-tools-2.x と docbook が必要になります。
  40. %prep
  41. %setup -q
  42. %patch0 -p1
  43. %patch1 -p1 -b .strip
  44. %patch100 -p1 -b .platex
  45. %patch101 -p1 -b .dvips
  46. %patch102 -p1 -b .lib64
  47. #%patch103 -p1 -b .catalog
  48. #perl -i.bak -p -e "s/^(OPTIMIZE=).*$/\$1${RPM_OPT_FLAGS}/" Makefile.in sgmls-1.1/Makefile
  49. %build
  50. %configure --with-installed-nsgmls --with-installed-iso-entities
  51. # Packaging brain-damage
  52. ( cd entity-map
  53. autoconf
  54. %configure
  55. )
  56. make OPTIMIZE="$RPM_OPT_FLAGS"
  57. perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
  58. lib/LinuxDocTools.pm
  59. %install
  60. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  61. eval `perl '-V:installvendorlib'`
  62. mkdir -p $RPM_BUILD_ROOT/$installvendorlib
  63. %makeinstall perl5libdir=$RPM_BUILD_ROOT/$installvendorlib
  64. perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
  65. $RPM_BUILD_ROOT%{_datadir}/%{name}/LinuxDocTools.pm
  66. rm -rf guide
  67. mv $RPM_BUILD_ROOT%{_docdir}/%{name} guide
  68. ## for sgml2latex [JF:09828]
  69. mkdir -p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc/
  70. (cd $RPM_BUILD_ROOT%{_datadir}/%{name}
  71. ## remove url.sty (url.sty is provided from tetex)...
  72. rm -f url.sty
  73. for i in *.sty ; do
  74. ln -s %{_datadir}/%{name}/$i \
  75. $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc/$i
  76. done)
  77. ## remove backup files...
  78. rm -f $RPM_BUILD_ROOT%{_libdir}/linuxdoc-tools/dist/fmt_latex2e.pl.*
  79. rm -f guide/Makedoc.sh.dvips
  80. rm -f $RPM_BUILD_ROOT%{_libdir}/linuxdoc-tools/LinuxDocTools.pm.catalog_file
  81. cp entity-map/COPYING COPYING.entity-map
  82. %clean
  83. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  84. %post
  85. # Update the centralized catalog corresponding to this version of the DTD
  86. %{_bindir}/install-catalog --add %{_sysconfdir}/sgml/linuxdoc.cat %{_datadir}/linuxdoc-tools/linuxdoc-tools.catalog > /dev/null
  87. %postun
  88. if [ "$1" = 0 ]; then
  89. # Update the centralized catalog corresponding to this version of the DTD
  90. %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/linuxdoc.cat %{_datadir}/linuxdoc-tools/linuxdoc-tools.catalog > /dev/null
  91. fi
  92. %files
  93. %defattr(-,root,root)
  94. %doc COPYING* ChangeLog INSTALL README VERSION guide/ debian/
  95. %{_bindir}/*
  96. %{_datadir}/entity-map
  97. %{_datadir}/linuxdoc-tools
  98. %{_datadir}/texmf/tex/latex/misc/*
  99. %{_mandir}/man1/*
  100. %dir %{_prefix}/lib*/perl5/vendor_perl/*/Text
  101. %{_prefix}/lib*/perl5/vendor_perl/*/Text/EntityMap.pm
  102. %changelog
  103. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@Vvinelinux.org> 0.9.21-2
  104. - TeX Live 2009
  105. * Mon Jun 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-1
  106. - applied new versioning policy
  107. - built with perl-5.10.0-2, installed perl modules to vendor_perl dir
  108. - spec in UTF-8
  109. * Sun Sep 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.9.21-0vl5
  110. - added lib64.patch to have lib64 in perl path on 64bit machine
  111. * Tue Apr 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-0vl4
  112. - added patch1, 2 from mandrake package
  113. (prevent patch0--2 was moved 100--102)
  114. - added Requires: tetex, gawk, groff
  115. - added BuildRequires: docbook-utils
  116. - fixed spec file
  117. * Mon Apr 12 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.9.21-0vl3
  118. - remove Conflicts docbook-dtds
  119. * Tue Jun 3 2003 Jun Nishii <jun@vinelinux.org> 0.9.21-0vl2
  120. - added Conflicts docbook-dtds
  121. * Sun May 4 2003 IWAI Masaharu <iwai@alib.jp> 0.9.21-0vl1
  122. - upsteam release
  123. - use rpmmacros
  124. - update patches
  125. - platex.patch (Patch0)
  126. - replace_dvips.patch (Patch1)
  127. - catalog_file.patch (Patch2)
  128. * Mon Jan 7 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.9.1-0vl6
  129. - sgml-common's super catalog support
  130. - added PreReq: sgml-common >= 0.5
  131. * Wed Jul 18 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  132. - 0.9.1-0vl5: remove url.sty which is provided from tetex
  133. * Mon Apr 23 2001 <sagami@vinelinux.org>
  134. - 0.9.1-0vl4: move manpages to %%{_mandir}
  135. * Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
  136. - 0.9.1-0vl3
  137. - fixed $ENV{SGML_CATALOG_FILES}
  138. - Maybe it's a bug... but it won't work without iso-entities-8879.1986
  139. * Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
  140. - 0.9.1-0vl2
  141. - fixed some in description
  142. * Sun Jan 21 2001 Jun Nishii <jun@vinelinux.org>
  143. - 0.9.1-0vl1
  144. - updated to 0.9.1
  145. * Tue Nov 21 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  146. - 0.7.4-0vl3
  147. - now you can choose jlatex for sgml2latex
  148. - set '-l ja' as default
  149. * Sun Nov 19 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  150. - 0.7.4-0vl2
  151. - setup quietly
  152. - create symlinks for sgml2latex
  153. - use %{_prefix} macro
  154. - use platex as default in sgml2latex
  155. - use ${RPM_OPT_FLAGS}
  156. * Tue Nov 14 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  157. - 0.7.4-0vl1
  158. - updated to 0.7.4
  159. - Modified URL for Source
  160. - remove RPM_BUILD_ROOT first in %install
  161. - renamed directory which contains users' guide
  162. - remove RPM_BUILD_ROOT in %clean
  163. * Wed Jul 12 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  164. - 0.6.1-0vl2
  165. - Obsoletes: sgml_tools -> sgml-tools :-)
  166. - added Provides: sgml-tools (for compatibility with indexhtml)
  167. * Thu Jun 29 2000 Jun Nishii <jun@vinelinux.org>
  168. - 0.6.1-0vl1
  169. - first build