]> git.pld-linux.org Git - packages/docbook-utils.git/blobdiff - docbook-utils.spec
- add -grep-2.7.patch which fixes wrong charakter classes no longer missinterpreted...
[packages/docbook-utils.git] / docbook-utils.spec
index d232c62fe6cfeb41f4bbc871a879386c947ec5a3..e5f479967bb1adc04ffe2d21125b25746034686a 100644 (file)
@@ -1,18 +1,32 @@
+# TODO - doc
 %include       /usr/lib/rpm/macros.perl
 Summary:       Shell scripts to manage DocBook documents
 %include       /usr/lib/rpm/macros.perl
 Summary:       Shell scripts to manage DocBook documents
-Summary(pl):   Skrypty do obróbki dokumentów DocBook
+Summary(pl.UTF-8):     Skrypty do obróbki dokumentów DocBook
 Name:          docbook-utils
 Name:          docbook-utils
-Version:       0.6.9
+Version:       0.6.14
 Release:       5
 License:       Eric Bischoff, Mark Galassi, Jochem Huhmann, Steve Cheng, and Frederik Fouvry; GPL 2.0
 Group:         Applications/Publishing/SGML
 Release:       5
 License:       Eric Bischoff, Mark Galassi, Jochem Huhmann, Steve Cheng, and Frederik Fouvry; GPL 2.0
 Group:         Applications/Publishing/SGML
-Source0:       ftp://ftp.kde.org/pub/kde/devel/docbook/SOURCES/%{name}-%{version}.tar.gz
-Patch0:                %{name}-@.patch
+Source0:       ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.gz
+# Source0-md5: 6b41b18c365c01f225bc417cf632d81c
+Source1:       gdp-both.dsl
+Source2:       db2html
 Patch1:                %{name}-roff_includes_in_man_pages.patch
 Patch2:                %{name}-catalog.patch
 Patch1:                %{name}-roff_includes_in_man_pages.patch
 Patch2:                %{name}-catalog.patch
-Requires:      docbook-style-dsssl >= 1.49
-Requires:      jadetex >= 2.5
+Patch3:                %{name}-debian.patch
+Patch4:                %{name}-grep-2.7.patch
+URL:           http://sources.redhat.com/docbook-tools/
 BuildRequires: autoconf
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: docbook-dtd31-sgml
+BuildRequires: docbook-style-dsssl
+BuildRequires: openjade >= 1.4-12.20020409
+BuildRequires: rpm-perlprov
+Requires:      docbook-style-dsssl >= 1.76-6
+Requires:      jadetex >= 2.5
+Requires:      openjade
+Requires:      perl-SGMLS
+Requires:      which
 Obsoletes:     docbook2X
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     docbook2X
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -21,47 +35,53 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 These little scripts allow to convert easily DocBook files to other
 formats (HTML, RTF, PostScript...), and to compare SGML files.
 
 These little scripts allow to convert easily DocBook files to other
 formats (HTML, RTF, PostScript...), and to compare SGML files.
 
-%description -l pl
-Te ma³e skrypty pozwalaj± w prosty sposób konwertowaæ pliki DocBook do
-innych formatów (HTML, RTF, PostScript...) i porównywaæ pliki SGML.
+%description -l pl.UTF-8
+Te małe skrypty pozwalają w prosty sposób konwertować pliki DocBook do
+innych formatów (HTML, RTF, PostScript...) i porównywać pliki SGML.
 
 %prep
 %setup -q
 
 %prep
 %setup -q
-%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 
 %build
-autoconf
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-DESTDIR=$RPM_BUILD_ROOT
 %{__make} install \
 %{__make} install \
-       prefix=$DESTDIR%{_prefix} \
-       mandir=$DESTDIR%{_mandir} \
-       docdir=$DESTDIR%{_datadir}/doc
+       DESTDIR=$RPM_BUILD_ROOT
 
 rm -f doc/HTML/Makefile*
 rm -f doc/HTML/*.in
 
 
 rm -f doc/HTML/Makefile*
 rm -f doc/HTML/*.in
 
-gzip -9nf NEWS README TODO
+install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
+sed 's/^ "USletter"/ "A4"/' %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl
+
+for util in dvi html pdf ps rtf man texi tex ; do
+       ln -sf docbook2${util} $RPM_BUILD_ROOT%{_bindir}/db2${util}
+       echo '.so jw.1' >$RPM_BUILD_ROOT%{_mandir}/man1/db2${util}.1
+done
+
+install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/db2html
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz doc/HTML
+%doc NEWS README TODO doc/HTML
 %attr(755,root,root) %{_bindir}/jw
 %attr(755,root,root) %{_bindir}/docbook2*
 %attr(755,root,root) %{_bindir}/jw
 %attr(755,root,root) %{_bindir}/docbook2*
+%attr(755,root,root) %{_bindir}/db2*
 %attr(755,root,root) %{_bindir}/sgmldiff
 %attr(755,root,root) %{_bindir}/sgmldiff
-%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
-%{_datadir}/sgml/docbook/utils-%{version}/backends/*
-%{_datadir}/sgml/docbook/utils-%{version}/frontends/*
-%{_datadir}/sgml/docbook/utils-%{version}/helpers/*
+%{_datadir}/sgml/docbook/utils-%{version}
 %{_mandir}/man1/*
 %{_mandir}/man7/*
 %{_mandir}/man1/*
 %{_mandir}/man7/*
This page took 0.083743 seconds and 4 git commands to generate.