source: projects/specs/trunk/d/docbook-utils/docbook-utils-vl.spec @ 1575

Revision 1575, 7.6 KB checked in by Takemikaduchi, 14 years ago (diff)

change Requires: texlive instead of jadetex (pdf package)

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