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