-%include /usr/lib/rpm/macros.perl
Summary: Docbook2man and docbook2info conversion tools
-Summary(pl): Narzêdzia do konwersji docbook do man i info
+Summary(pl.UTF-8): Narzędzia do konwersji docbook do man i info
Name: docbook2X
-Version: 0.8.2
-Release: 1
+Version: 0.8.8
+Release: 7
License: MIT
Group: Applications/Publishing/SGML
Source0: http://dl.sourceforge.net/docbook2x/%{name}-%{version}.tar.gz
-# Source0-md5: 60e9837d7f4f343f567a5da499d13be0
+# Source0-md5: b9b76a6af198c4f44574cfd17a322f01
# note: Source1 not used now
Source1: %{name}-docbook2man
+Patch0: %{name}-info.patch
URL: http://docbook2x.sourceforge.net/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
+BuildRequires: libxslt-progs
+BuildRequires: perl-XML-SAX
+BuildRequires: perl-devel
+BuildRequires: rpm-perlprov
+BuildRequires: texinfo
Requires: docbook-dtd
+Requires: libxslt-progs
Requires: sgml-common
Requires: sgmlparser
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Steve Cheng's docbook2X tools convert DocBook documents into man pages
and Texinfo documents.
-%description -l pl
-Narzêdzia do konwersji docbook2X Steve'a Chenga konwertuj± dokumenty
+%description -l pl.UTF-8
+Narzędzia do konwersji docbook2X Steve'a Chenga konwertują dokumenty
DocBooka na strony manuala i dokumenty Texinfo.
%prep
%setup -q
-
-%{__perl} -pi -e 's/install_perl/install_vendor/' perl/Makefile.am
+%patch0 -p1
%build
%{__aclocal}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+mv $RPM_BUILD_ROOT%{_bindir}/{docbook2man,docbook2X2man}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/{docbook2man,docbook2X2man}.1
+mv $RPM_BUILD_ROOT%{_bindir}/{docbook2texi,docbook2X2texi}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/{docbook2texi,docbook2X2texi}.1
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/docbook2X
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog README THANKS TODO doc/*.html
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/db2x_manxml
+%attr(755,root,root) %{_bindir}/db2x_texixml
+%attr(755,root,root) %{_bindir}/db2x_xsltproc
+%attr(755,root,root) %{_bindir}/docbook2X2man
+%attr(755,root,root) %{_bindir}/docbook2X2texi
+%attr(755,root,root) %{_bindir}/sgml2xml-isoent
+%attr(755,root,root) %{_bindir}/utf8trans
%{_datadir}/%{name}
-%{perl_vendorlib}/XML/Handler/Templates.pm
-%{_mandir}/man1/*
-%{_infodir}/*.info*
+%{_mandir}/man1/db2x_manxml.1*
+%{_mandir}/man1/db2x_texixml.1*
+%{_mandir}/man1/db2x_xsltproc.1*
+%{_mandir}/man1/docbook2X2man.1*
+%{_mandir}/man1/docbook2X2texi.1*
+%{_mandir}/man1/sgml2xml-isoent.1*
+%{_mandir}/man1/utf8trans.1*
+%{_infodir}/docbook2X.info*
+%{_infodir}/docbook2man-xslt.info*
+%{_infodir}/docbook2texi-xslt.info*