1 %include /usr/lib/rpm/macros.perl
2 Summary: Shell scripts to manage DocBook documents
3 Summary(pl): Skrypty do obróbki dokumentów DocBook
7 License: Eric Bischoff, Mark Galassi, Jochem Huhmann, Steve Cheng, and Frederik Fouvry; GPL 2.0
8 Group: Applications/Publishing/SGML
9 Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.gz
12 Patch1: %{name}-roff_includes_in_man_pages.patch
13 Patch2: %{name}-catalog.patch
14 Requires: docbook-style-dsssl >= 1.76-6
15 Requires: jadetex >= 2.5
16 BuildRequires: autoconf
17 BuildRequires: openjade
18 BuildRequires: docbook-dtd31-sgml
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 These little scripts allow to convert easily DocBook files to other
25 formats (HTML, RTF, PostScript...), and to compare SGML files.
28 Te ma³e skrypty pozwalaj± w prosty sposób konwertowaæ pliki DocBook do
29 innych formatów (HTML, RTF, PostScript...) i porównywaæ pliki SGML.
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
47 rm -f doc/HTML/Makefile*
50 install %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
51 sed 's/^ "USletter"/ "A4"/' %{SOURCE1} > $RPM_BUILD_ROOT/%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
53 for util in dvi html pdf ps rtf man texi tex ; do
54 ln -sf docbook2${util} $RPM_BUILD_ROOT/%{_bindir}/db2${util}
55 echo '.so jw.1' >$RPM_BUILD_ROOT/%{_mandir}/man1/db2${util}.1
58 install -m755 %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}/db2html
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc NEWS README TODO doc/HTML
66 %attr(755,root,root) %{_bindir}/jw
67 %attr(755,root,root) %{_bindir}/docbook2*
68 %attr(755,root,root) %{_bindir}/db2*
69 %attr(755,root,root) %{_bindir}/sgmldiff
70 %{_datadir}/sgml/docbook/utils-%{version}