docbook-utils-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. %define name docbook-utils
  2. %define ver 0.6.14
  3. %define rel 5%{?_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: 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}/docbook2html
  83. %{_bindir}/docbook2man
  84. %{_bindir}/docbook2rtf
  85. %{_bindir}/docbook2tex
  86. %{_bindir}/docbook2texi
  87. %{_bindir}/docbook2txt
  88. %{_bindir}/db2html
  89. %{_bindir}/db2rtf
  90. %{_bindir}/sgmldiff
  91. %{_datadir}/sgml/docbook/utils-%{version}
  92. %{_mandir}/*/db2html.*
  93. %{_mandir}/*/db2rtf.*
  94. %{_mandir}/*/docbook2html.*
  95. %{_mandir}/*/docbook2rtf.*
  96. %{_mandir}/*/docbook2man.*
  97. %{_mandir}/*/docbook2tex.*
  98. %{_mandir}/*/docbook2texi.*
  99. %{_mandir}/*/jw.*
  100. %{_mandir}/*/sgmldiff.*
  101. %{_mandir}/*/*-spec.*
  102. %files pdf
  103. %defattr (-,root,root)
  104. %{_bindir}/docbook2pdf
  105. %{_bindir}/docbook2dvi
  106. %{_bindir}/docbook2ps
  107. %{_bindir}/db2pdf
  108. %{_bindir}/db2dvi
  109. %{_bindir}/db2ps
  110. %{_mandir}/*/db2pdf.*
  111. %{_mandir}/*/db2dvi.*
  112. %{_mandir}/*/db2ps.*
  113. %{_mandir}/*/docbook2pdf.*
  114. %{_mandir}/*/docbook2dvi.*
  115. %{_mandir}/*/docbook2ps.*
  116. %changelog
  117. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-5
  118. - move follow files to pdf subpackage.
  119. - docbook2dvi
  120. - docbook2ps
  121. - db2dvi
  122. - db2ps
  123. * Sat Mar 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.14-4
  124. - add patch110 to use grep-2.7 (char class syntax was changed)
  125. * Sun Aug 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-3
  126. - change BuildRequires: texlive instead of jadetex
  127. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.6.14-2vl5
  128. - applied new versioning policy, spec in utf-8
  129. * Tue Jul 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.14-2vl1
  130. - new upstream release
  131. - dropped Patch0 and 1 because those integrated to upstream
  132. - add Requires: jadetex, w3m
  133. - added Patch100 to use /usr/bin/w3m priority
  134. * Mon Sep 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.13-7vl1
  135. - based on Rawhide 0.6.13-7
  136. * Tue Jun 10 2003 Tim Waugh <twaugh@redhat.com> 0.6.13-7
  137. - Fix manpage output: escape dots in column 1 (bug #97087).
  138. * Sun May 18 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.13-3vl2
  139. - use gdp-both.dsl.vine instead of gdp-both.dsl
  140. (for enable use-id-as-filename)
  141. - fixed spec file
  142. * Wed May 7 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.13-3vl1
  143. - based on Rawhide 0.6.13-3
  144. - Move docbook2pdf man pages to pdf subpackage (bug #90041).
  145. - 0.6.13, fixing bug #86152.
  146. - added html document in %{_docdir}
  147. * Sun Feb 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.12-5vl1
  148. - based on Rawhide 0.6.12-5
  149. - Build reqires perl-SGMLSpm
  150. - Fixed from CVS
  151. - No longer need separate stylesheet for A4
  152. - add Japanese summary and description
  153. * Sat Oct 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.12-0vl1
  154. - 0.6.12
  155. - add BuildRequires docbook-dtd31-sgml (make uses this...)
  156. * Mon Sep 30 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.11-2vl4
  157. - fix Requires (previous version didn't change... )
  158. * Sat Sep 28 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.11-2vl3
  159. - change Require docbook-dtd-sgml, docbook-dtd-xml
  160. * Sat Sep 28 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.11-2vl2
  161. - updated to 0.6.11 by based on rawhide 0.6.11-2
  162. - don't apply patch
  163. * Thu Oct 11 2001 Akira TAGOH <tagoh@gnome.gr.jpj> 0.6.9-2vl1
  164. - Rebuild for Vine.
  165. * Mon Aug 13 2001 Tim Waugh <twaugh@redhat.com> 0.6.9-2
  166. - Larger bottom margin in gdp-both.dsl to fix RTF output (bug #49677).
  167. * Tue Jul 3 2001 Tim Waugh <twaugh@redhat.com> 0.6.9-1
  168. - 0.6.9.
  169. - With --nochunks, send output to a file instead of stdout (bug #46913).
  170. * Mon Jun 4 2001 Tim Waugh <twaugh@redhat.com> 0.6.8-2
  171. - Make sure COPYING isn't installed as a symlink.
  172. * Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.6.8-1
  173. - 0.6.8.
  174. * Mon May 21 2001 Tim Waugh <twaugh@redhat.com> 0.6-14
  175. - db2html: copy admon graphics to output directory (bug #40143).
  176. - Require docbook-style-dsssl 1.64-2 for symbolic link used by db2html.
  177. - db2html: handle arguments with spaces better.
  178. * Sat Mar 24 2001 Tim Waugh <twaugh@redhat.com> 0.6-13
  179. - Fix man pages (bug #32820).
  180. * Mon Mar 12 2001 Tim Waugh <twaugh@redhat.com>
  181. - Fix argument parsing in docbook2xxx (bug #31518).
  182. - Fix argument passing in db2html (bug #31520).
  183. - Fix pdf generation (bug #31524).
  184. * Fri Feb 23 2001 Tim Waugh <twaugh@redhat.com>
  185. - Allow the use of custom backends and frontends (bug #29067).
  186. * Fri Feb 16 2001 Tim Waugh <twaugh@redhat.com>
  187. - Use gdp-both.dsl as the default stylesheet.
  188. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com>
  189. - REALLY only create output directory for db2html (duh).
  190. - Handle filenames with dots in properly.
  191. * Sun Feb 11 2001 Tim Waugh <twaugh@redhat.com>
  192. - Only create output directory for db2html (bug #27092). (docbook2html
  193. does not create an output directory in the upstream version, but
  194. the compatibility script has been made to do so.)
  195. * Mon Jan 22 2001 Tim Waugh <twaugh@redhat.com>
  196. - Move the jadetex requirement to the -pdf subpackage.
  197. * Tue Jan 16 2001 Tim Waugh <twaugh@redhat.com>
  198. - Put output files in new directory instead of current directory.
  199. * Mon Jan 15 2001 Tim Waugh <twaugh@redhat.com>
  200. - Don't play so many macro games.
  201. - Be sure to own utils directory.
  202. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com>
  203. - Split off docbook2pdf into subpackage for dependency reasons.
  204. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  205. - Change group.
  206. - Use %%{_mandir} and %%{_prefix}.
  207. - db2* symlinks.
  208. - Obsolete stylesheets (and -db2pdf).
  209. - Change Copyright: to License:.
  210. - Remove Packager: line.
  211. - Reword description.
  212. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  213. - Based on Eric Bischoff's new-trials packages.