docbook-utils-vl.spec 7.9 KB

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