linuxdoc-tools-vl.spec 7.2 KB

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