docbook-utils-vl.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. %define name docbook-utils
  2. %define ver 0.6.14
  3. %define rel 3%{?_dist_release}
  4. Summary: Shell scripts for managing DocBook documents.
  5. Summary(ja): DocBook ドキュメントを操作するためのスクリプト集
  6. Name: %{name}
  7. Version: %{ver}
  8. Release: %{rel}
  9. License: GPL
  10. Group: Applications/Text
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. Requires: docbook-style-dsssl >= 1.72
  14. Requires: docbook-dtds
  15. Requires: perl-SGMLSpm >= 1.03ii
  16. Requires: which
  17. Requires: texlive w3m
  18. Obsoletes: stylesheets
  19. Provides: stylesheets
  20. BuildRequires: docbook-style-dsssl >= 1.72
  21. BuildRequires: docbook-dtds
  22. BuildRequires: perl-SGMLSpm
  23. Source0: %{name}-%{version}.tar.gz
  24. Source1: db2html
  25. Source2: gdp-both.dsl
  26. # Vine (Original of Source3 is Source2)
  27. Source3: gdp-both.dsl.vine
  28. # Vine Patches
  29. # for using w3m priority
  30. Patch100: docbook-utils-w3m.patch
  31. %description
  32. This package contains scripts are for easy conversion from DocBook
  33. files to other formats (for example, HTML, RTF, and PostScript), and
  34. for comparing SGML files.
  35. %description -l ja
  36. DocBook ドキュメントを他の形式 (例: HTML, RTF, PostScript) に変換したり、
  37. SGML と比較するためのスクリプト集です。
  38. %package pdf
  39. Summary: A script for converting DocBook documents to PDF format.
  40. Summary(ja): DocBook ドキュメントを PDF 形式に変換するスクリプト
  41. Group: Applications/Text
  42. Requires: texlive
  43. Requires: docbook-utils = %{version}
  44. Obsoletes: stylesheets-db2pdf
  45. Provides: stylesheets-db2pdf
  46. %description pdf
  47. This package contains a script for converting DocBook documents to
  48. PDF format.
  49. %description pdf
  50. DocBook ドキュメントを PDF 形式に変換するためのスクリプトです。
  51. %prep
  52. %setup -q
  53. %patch100 -p1 -b .w3m
  54. %build
  55. %configure --prefix=%{_prefix} --mandir=%{_mandir}
  56. make
  57. %install
  58. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  59. %makeinstall
  60. for util in dvi html pdf ps rtf
  61. do
  62. ln -s docbook2$util $RPM_BUILD_ROOT%{_bindir}/db2$util
  63. ln -s jw.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/db2$util.1
  64. done
  65. # db2html is not just a symlink, as it has to create the output directory
  66. rm -f $RPM_BUILD_ROOT%{_bindir}/db2html
  67. install -c -m 775 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/db2html
  68. install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
  69. install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
  70. perl -pi -e 's/^ "USletter"/ "A4"/' $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
  71. # rm docdir
  72. rm -r $RPM_BUILD_ROOT/usr/doc
  73. %clean
  74. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  75. %files
  76. %defattr (-,root,root)
  77. %doc README COPYING TODO doc/HTML/*.html
  78. %{_bindir}/jw
  79. %{_bindir}/docbook2dvi
  80. %{_bindir}/docbook2html
  81. %{_bindir}/docbook2man
  82. %{_bindir}/docbook2ps
  83. %{_bindir}/docbook2rtf
  84. %{_bindir}/docbook2tex
  85. %{_bindir}/docbook2texi
  86. %{_bindir}/docbook2txt
  87. %{_bindir}/db2dvi
  88. %{_bindir}/db2html
  89. %{_bindir}/db2ps
  90. %{_bindir}/db2rtf
  91. %{_bindir}/sgmldiff
  92. %{_datadir}/sgml/docbook/utils-%{version}
  93. %{_mandir}/*/db2dvi.*
  94. %{_mandir}/*/db2html.*
  95. %{_mandir}/*/db2ps.*
  96. %{_mandir}/*/db2rtf.*
  97. %{_mandir}/*/docbook2dvi.*
  98. %{_mandir}/*/docbook2html.*
  99. %{_mandir}/*/docbook2ps.*
  100. %{_mandir}/*/docbook2rtf.*
  101. %{_mandir}/*/docbook2man.*
  102. %{_mandir}/*/docbook2tex.*
  103. %{_mandir}/*/docbook2texi.*
  104. %{_mandir}/*/jw.*
  105. %{_mandir}/*/sgmldiff.*
  106. %{_mandir}/*/*-spec.*
  107. %files pdf
  108. %defattr (-,root,root)
  109. %{_bindir}/docbook2pdf
  110. %{_bindir}/db2pdf
  111. %{_mandir}/*/db2pdf.*
  112. %{_mandir}/*/docbook2pdf.*
  113. %changelog
  114. * Sun Aug 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-3
  115. - change BuildRequires: texlive instead of jadetex
  116. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.6.14-2vl5
  117. - applied new versioning policy, spec in utf-8
  118. * Tue Jul 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.14-2vl1
  119. - new upstream release
  120. - dropped Patch0 and 1 because those integrated to upstream
  121. - add Requires: jadetex, w3m
  122. - added Patch100 to use /usr/bin/w3m priority
  123. * Mon Sep 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.13-7vl1
  124. - based on Rawhide 0.6.13-7
  125. * Tue Jun 10 2003 Tim Waugh <twaugh@redhat.com> 0.6.13-7
  126. - Fix manpage output: escape dots in column 1 (bug #97087).
  127. * Sun May 18 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.13-3vl2
  128. - use gdp-both.dsl.vine instead of gdp-both.dsl
  129. (for enable use-id-as-filename)
  130. - fixed spec file
  131. * Wed May 7 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.13-3vl1
  132. - based on Rawhide 0.6.13-3
  133. - Move docbook2pdf man pages to pdf subpackage (bug #90041).
  134. - 0.6.13, fixing bug #86152.
  135. - added html document in %{_docdir}
  136. * Sun Feb 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.12-5vl1
  137. - based on Rawhide 0.6.12-5
  138. - Build reqires perl-SGMLSpm
  139. - Fixed from CVS
  140. - No longer need separate stylesheet for A4
  141. - add Japanese summary and description
  142. * Sat Oct 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.12-0vl1
  143. - 0.6.12
  144. - add BuildRequires docbook-dtd31-sgml (make uses this...)
  145. * Mon Sep 30 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.11-2vl4
  146. - fix Requires (previous version didn't change... )
  147. * Sat Sep 28 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.11-2vl3
  148. - change Require docbook-dtd-sgml, docbook-dtd-xml
  149. * Sat Sep 28 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.11-2vl2
  150. - updated to 0.6.11 by based on rawhide 0.6.11-2
  151. - don't apply patch
  152. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jpj> 0.6.9-2vl1
  153. - Rebuild for Vine.
  154. * Mon Aug 13 2001 Tim Waugh <twaugh@redhat.com> 0.6.9-2
  155. - Larger bottom margin in gdp-both.dsl to fix RTF output (bug #49677).
  156. * Tue Jul 3 2001 Tim Waugh <twaugh@redhat.com> 0.6.9-1
  157. - 0.6.9.
  158. - With --nochunks, send output to a file instead of stdout (bug #46913).
  159. * Mon Jun 4 2001 Tim Waugh <twaugh@redhat.com> 0.6.8-2
  160. - Make sure COPYING isn't installed as a symlink.
  161. * Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.6.8-1
  162. - 0.6.8.
  163. * Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.6-14
  164. - db2html: copy admon graphics to output directory (bug #40143).
  165. - Require docbook-style-dsssl 1.64-2 for symbolic link used by db2html.
  166. - db2html: handle arguments with spaces better.
  167. * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> 0.6-13
  168. - Fix man pages (bug #32820).
  169. * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com>
  170. - Fix argument parsing in docbook2xxx (bug #31518).
  171. - Fix argument passing in db2html (bug #31520).
  172. - Fix pdf generation (bug #31524).
  173. * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com>
  174. - Allow the use of custom backends and frontends (bug #29067).
  175. * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com>
  176. - Use gdp-both.dsl as the default stylesheet.
  177. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com>
  178. - REALLY only create output directory for db2html (duh).
  179. - Handle filenames with dots in properly.
  180. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com>
  181. - Only create output directory for db2html (bug #27092). (docbook2html
  182. does not create an output directory in the upstream version, but
  183. the compatibility script has been made to do so.)
  184. * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com>
  185. - Move the jadetex requirement to the -pdf subpackage.
  186. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com>
  187. - Put output files in new directory instead of current directory.
  188. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
  189. - Don't play so many macro games.
  190. - Be sure to own utils directory.
  191. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com>
  192. - Split off docbook2pdf into subpackage for dependency reasons.
  193. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  194. - Change group.
  195. - Use %%{_mandir} and %%{_prefix}.
  196. - db2* symlinks.
  197. - Obsolete stylesheets (and -db2pdf).
  198. - Change Copyright: to License:.
  199. - Remove Packager: line.
  200. - Reword description.
  201. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  202. - Based on Eric Bischoff's new-trials packages.