- R: which (for jw)
[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.14
6 Release:        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 # Source0-md5:  6b41b18c365c01f225bc417cf632d81c
11 Source1:        gdp-both.dsl
12 Source2:        db2html
13 Patch1:         %{name}-roff_includes_in_man_pages.patch
14 Patch2:         %{name}-catalog.patch
15 URL:            http://sources.redhat.com/docbook-tools/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  docbook-dtd31-sgml
19 BuildRequires:  docbook-style-dsssl
20 BuildRequires:  openjade >= 1.4-12.20020409
21 Requires:       docbook-style-dsssl >= 1.76-6
22 Requires:       jadetex >= 2.5
23 Requires:       perl-SGMLS
24 Requires:       which
25 Obsoletes:      docbook2X
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 These little scripts allow to convert easily DocBook files to other
31 formats (HTML, RTF, PostScript...), and to compare SGML files.
32
33 %description -l pl
34 Te ma³e skrypty pozwalaj± w prosty sposób konwertowaæ pliki DocBook do
35 innych formatów (HTML, RTF, PostScript...) i porównywaæ pliki SGML.
36
37 %prep
38 %setup -q
39 %patch1 -p1
40 %patch2 -p1
41
42 %build
43 %{__aclocal}
44 %{__autoconf}
45 %{__automake}
46 %configure
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 rm -f doc/HTML/Makefile*
56 rm -f doc/HTML/*.in
57
58 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
59 sed 's/^ "USletter"/ "A4"/' %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
60
61 for util in dvi html pdf ps rtf man texi tex ; do
62         ln -sf docbook2${util} $RPM_BUILD_ROOT%{_bindir}/db2${util}
63         echo '.so jw.1' >$RPM_BUILD_ROOT%{_mandir}/man1/db2${util}.1
64 done
65
66 install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/db2html
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc NEWS README TODO doc/HTML
74 %attr(755,root,root) %{_bindir}/jw
75 %attr(755,root,root) %{_bindir}/docbook2*
76 %attr(755,root,root) %{_bindir}/db2*
77 %attr(755,root,root) %{_bindir}/sgmldiff
78 %{_datadir}/sgml/docbook/utils-%{version}
79 %{_mandir}/man1/*
80 %{_mandir}/man7/*
This page took 0.065232 seconds and 3 git commands to generate.