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

Revision 8084, 8.2 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

Line 
1%define name    docbook-utils
2%define ver             0.6.14
3%define rel             6%{?_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
40Vendor: Project Vine
41Distribution: Vine Linux
42
43%description
44This package contains scripts are for easy conversion from DocBook
45files to other formats (for example, HTML, RTF, and PostScript), and
46for comparing SGML files.
47
48%description -l ja
49DocBook ドキュメントを他の形式 (例: HTML, RTF, PostScript) に変換したり、
50SGML と比較するためのスクリプト集です。
51
52%package pdf
53Summary: A script for converting DocBook documents to PDF format.
54Summary(ja): DocBook ドキュメントを PDF 形式に変換するスクリプト
55Group: Applications/Text
56Requires: texlive
57Requires: docbook-utils = %{version}
58Obsoletes: stylesheets-db2pdf
59Provides: stylesheets-db2pdf
60
61
62%description pdf
63This package contains a script for converting DocBook documents to
64PDF format.
65
66%description pdf
67DocBook ドキュメントを PDF 形式に変換するためのスクリプトです。
68
69%prep
70%setup -q
71%patch100 -p1 -b .w3m
72%patch110 -p1 -b .grep27
73
74%build
75
76%configure --prefix=%{_prefix} --mandir=%{_mandir}
77make
78
79%install
80[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
81
82%makeinstall
83for util in dvi html pdf ps rtf
84do
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
87done
88# db2html is not just a symlink, as it has to create the output directory
89rm -f $RPM_BUILD_ROOT%{_bindir}/db2html
90install -c -m 775 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/db2html
91install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
92install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
93perl -pi -e 's/^ "USletter"/ "A4"/' $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
94
95# rm docdir
96rm -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
130%{_bindir}/docbook2dvi
131%{_bindir}/docbook2ps
132%{_bindir}/db2pdf
133%{_bindir}/db2dvi
134%{_bindir}/db2ps
135%{_mandir}/*/db2pdf.*
136%{_mandir}/*/db2dvi.*
137%{_mandir}/*/db2ps.*
138%{_mandir}/*/docbook2pdf.*
139%{_mandir}/*/docbook2dvi.*
140%{_mandir}/*/docbook2ps.*
141
142%changelog
143* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-4
144- rebuild with VineSeed environment
145
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
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
156* Sun Aug 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-3
157- change BuildRequires: texlive instead of jadetex
158
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.
Note: See TracBrowser for help on using the repository browser.