]> git.pld-linux.org Git - packages/docbook-utils.git/blame - docbook-utils.spec
- tabs in preamble
[packages/docbook-utils.git] / docbook-utils.spec
CommitLineData
b3261309 1%include /usr/lib/rpm/macros.perl
79511ce3 2Summary: Shell scripts to manage DocBook documents
c15b52fd 3Summary(pl.UTF-8): Skrypty do obróbki dokumentów DocBook
c1c8926b 4Name: docbook-utils
2014c5df 5Version: 0.6.14
0193d092 6Release: 2
64d454dc 7License: Eric Bischoff, Mark Galassi, Jochem Huhmann, Steve Cheng, and Frederik Fouvry; GPL 2.0
c1c8926b 8Group: Applications/Publishing/SGML
bbee028e 9Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.gz
2014c5df 10# Source0-md5: 6b41b18c365c01f225bc417cf632d81c
bbee028e
AF
11Source1: gdp-both.dsl
12Source2: db2html
79511ce3 13Patch1: %{name}-roff_includes_in_man_pages.patch
81b048f9 14Patch2: %{name}-catalog.patch
deec636e 15URL: http://sources.redhat.com/docbook-tools/
79511ce3 16BuildRequires: autoconf
94cc9875 17BuildRequires: automake
bbee028e 18BuildRequires: docbook-dtd31-sgml
8499d3a7 19BuildRequires: docbook-style-dsssl
8b11d7b3 20BuildRequires: openjade >= 1.4-12.20020409
309c0fe5 21BuildRequires: rpm-perlprov
94cc9875
JB
22Requires: docbook-style-dsssl >= 1.76-6
23Requires: jadetex >= 2.5
ce7ac303 24Requires: openjade
7d18487d 25Requires: perl-SGMLS
734bc98e 26Requires: which
57fc69c9 27Obsoletes: docbook2X
c1c8926b 28BuildArch: noarch
71c54a52 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c1c8926b 30
31%description
32These little scripts allow to convert easily DocBook files to other
33formats (HTML, RTF, PostScript...), and to compare SGML files.
34
3d894916
JR
35%description -l pl.UTF-8
36Te małe skrypty pozwalają w prosty sposób konwertować pliki DocBook do
37innych formatów (HTML, RTF, PostScript...) i porównywać pliki SGML.
79511ce3 38
c1c8926b 39%prep
40%setup -q
71c54a52 41%patch1 -p1
81b048f9 42%patch2 -p1
c1c8926b 43
44%build
94cc9875 45%{__aclocal}
8d21eca6 46%{__autoconf}
deec636e 47%{__automake}
71c54a52 48%configure
c1c8926b 49%{__make}
50
c1c8926b 51%install
52rm -rf $RPM_BUILD_ROOT
71c54a52 53
c1c8926b 54%{__make} install \
bbee028e 55 DESTDIR=$RPM_BUILD_ROOT
c1c8926b 56
57rm -f doc/HTML/Makefile*
58rm -f doc/HTML/*.in
59
c1c9a3dd
PG
60install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
61sed 's/^ "USletter"/ "A4"/' %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
bbee028e
AF
62
63for util in dvi html pdf ps rtf man texi tex ; do
c1c9a3dd
PG
64 ln -sf docbook2${util} $RPM_BUILD_ROOT%{_bindir}/db2${util}
65 echo '.so jw.1' >$RPM_BUILD_ROOT%{_mandir}/man1/db2${util}.1
bbee028e
AF
66done
67
ef002bae 68install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/db2html
57fc69c9 69
c1c8926b 70%clean
71rm -rf $RPM_BUILD_ROOT
72
c1c8926b 73%files
74%defattr(644,root,root,755)
bbee028e 75%doc NEWS README TODO doc/HTML
c1c8926b 76%attr(755,root,root) %{_bindir}/jw
77%attr(755,root,root) %{_bindir}/docbook2*
bbee028e 78%attr(755,root,root) %{_bindir}/db2*
c1c8926b 79%attr(755,root,root) %{_bindir}/sgmldiff
bbee028e 80%{_datadir}/sgml/docbook/utils-%{version}
c1c8926b 81%{_mandir}/man1/*
82%{_mandir}/man7/*
This page took 0.052761 seconds and 4 git commands to generate.