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