docbook-utils-vl.spec 8.2 KB

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