71bbe4cf12a4dfef451290b36fc26aa6057bb11e
[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 Obsoletes:      docbook2X
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 These little scripts allow to convert easily DocBook files to other
30 formats (HTML, RTF, PostScript...), and to compare SGML files.
31
32 %description -l pl
33 Te ma³e skrypty pozwalaj± w prosty sposób konwertowaæ pliki DocBook do
34 innych formatów (HTML, RTF, PostScript...) i porównywaæ pliki SGML.
35
36 %prep
37 %setup -q
38 %patch1 -p1
39 %patch2 -p1
40
41 %build
42 %{__aclocal}
43 %{__autoconf}
44 %{__automake}
45 %configure
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 rm -f doc/HTML/Makefile*
55 rm -f doc/HTML/*.in
56
57 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
58 sed 's/^ "USletter"/ "A4"/' %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
59
60 for util in dvi html pdf ps rtf man texi tex ; do
61         ln -sf docbook2${util} $RPM_BUILD_ROOT%{_bindir}/db2${util}
62         echo '.so jw.1' >$RPM_BUILD_ROOT%{_mandir}/man1/db2${util}.1
63 done
64
65 install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/db2html
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc NEWS README TODO doc/HTML
73 %attr(755,root,root) %{_bindir}/jw
74 %attr(755,root,root) %{_bindir}/docbook2*
75 %attr(755,root,root) %{_bindir}/db2*
76 %attr(755,root,root) %{_bindir}/sgmldiff
77 %{_datadir}/sgml/docbook/utils-%{version}
78 %{_mandir}/man1/*
79 %{_mandir}/man7/*
This page took 0.033667 seconds and 2 git commands to generate.