docbook-utils-vl.spec 7.5 KB

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