linuxdoc-tools-vl.spec 7.4 KB

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