linuxdoc-tools-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. Summary: A text formatting system based on SGML
  2. Summary(ja): SGML に基づいたテキスト整形システム
  3. Name: linuxdoc-tools
  4. Version: 0.9.21
  5. Release: 1%{?_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, tetex, 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. * Mon Jun 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-1
  104. - applied new versioning policy
  105. - built with perl-5.10.0-2, installed perl modules to vendor_perl dir
  106. - spec in UTF-8
  107. * Sun Sep 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.9.21-0vl5
  108. - added lib64.patch to have lib64 in perl path on 64bit machine
  109. * Tue Apr 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-0vl4
  110. - added patch1, 2 from mandrake package
  111. (prevent patch0--2 was moved 100--102)
  112. - added Requires: tetex, gawk, groff
  113. - added BuildRequires: docbook-utils
  114. - fixed spec file
  115. * Mon Apr 12 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.9.21-0vl3
  116. - remove Conflicts docbook-dtds
  117. * Tue Jun 3 2003 Jun Nishii <jun@vinelinux.org> 0.9.21-0vl2
  118. - added Conflicts docbook-dtds
  119. * Sun May 4 2003 IWAI Masaharu <iwai@alib.jp> 0.9.21-0vl1
  120. - upsteam release
  121. - use rpmmacros
  122. - update patches
  123. - platex.patch (Patch0)
  124. - replace_dvips.patch (Patch1)
  125. - catalog_file.patch (Patch2)
  126. * Mon Jan 7 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.9.1-0vl6
  127. - sgml-common's super catalog support
  128. - added PreReq: sgml-common >= 0.5
  129. * Wed Jul 18 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  130. - 0.9.1-0vl5: remove url.sty which is provided from tetex
  131. * Mon Apr 23 2001 <sagami@vinelinux.org>
  132. - 0.9.1-0vl4: move manpages to %%{_mandir}
  133. * Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
  134. - 0.9.1-0vl3
  135. - fixed $ENV{SGML_CATALOG_FILES}
  136. - Maybe it's a bug... but it won't work without iso-entities-8879.1986
  137. * Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
  138. - 0.9.1-0vl2
  139. - fixed some in description
  140. * Sun Jan 21 2001 Jun Nishii <jun@vinelinux.org>
  141. - 0.9.1-0vl1
  142. - updated to 0.9.1
  143. * Tue Nov 21 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  144. - 0.7.4-0vl3
  145. - now you can choose jlatex for sgml2latex
  146. - set '-l ja' as default
  147. * Sun Nov 19 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  148. - 0.7.4-0vl2
  149. - setup quietly
  150. - create symlinks for sgml2latex
  151. - use %{_prefix} macro
  152. - use platex as default in sgml2latex
  153. - use ${RPM_OPT_FLAGS}
  154. * Tue Nov 14 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
  155. - 0.7.4-0vl1
  156. - updated to 0.7.4
  157. - Modified URL for Source
  158. - remove RPM_BUILD_ROOT first in %install
  159. - renamed directory which contains users' guide
  160. - remove RPM_BUILD_ROOT in %clean
  161. * Wed Jul 12 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  162. - 0.6.1-0vl2
  163. - Obsoletes: sgml_tools -> sgml-tools :-)
  164. - added Provides: sgml-tools (for compatibility with indexhtml)
  165. * Thu Jun 29 2000 Jun Nishii <jun@vinelinux.org>
  166. - 0.6.1-0vl1
  167. - first build