-%include /usr/lib/rpm/macros.perl
Summary: Docbook2man and docbook2info conversion tools
Summary(pl.UTF-8): Narzędzia do konwersji docbook do man i info
Name: docbook2X
Version: 0.8.8
-Release: 4
+Release: 7
License: MIT
Group: Applications/Publishing/SGML
Source0: http://dl.sourceforge.net/docbook2x/%{name}-%{version}.tar.gz
# 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
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
+%patch0 -p1
%build
%{__aclocal}
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}
-%{_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*