]> git.pld-linux.org Git - packages/docbook-utils.git/blob - docbook-utils.spec
691e8180ee463d46402ed71491df5a94735e1dc1
[packages/docbook-utils.git] / docbook-utils.spec
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
4 Name:           docbook-utils
5 Version:        0.6.10
6 Release:        0.1
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
10 Source1:        gdp-both.dsl
11 Source2:        db2html
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
19 Obsoletes:      docbook2X
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 These little scripts allow to convert easily DocBook files to other
25 formats (HTML, RTF, PostScript...), and to compare SGML files.
26
27 %description -l pl
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.
30
31 %prep
32 %setup -q
33 %patch1 -p1
34 %patch2 -p1
35
36 %build
37 %{__autoconf}
38 %configure
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 rm -f doc/HTML/Makefile*
48 rm -f doc/HTML/*.in
49
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
52
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
56 done
57
58 install -m755 %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}/db2html
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
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}
71 %{_mandir}/man1/*
72 %{_mandir}/man7/*
This page took 0.027047 seconds and 2 git commands to generate.