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

Revision 7938, 8.0 KB checked in by Takemikaduchi, 11 years ago (diff)

GNOME-3.10.1

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