2006-02-09 21:00:11 +00:00
|
|
|
Name: docbook2X
|
2007-08-08 16:25:33 +00:00
|
|
|
Version: 0.8.8
|
|
|
|
Release: 1%{?dist}
|
2006-02-09 21:00:11 +00:00
|
|
|
Summary: Convert docbook into man and Texinfo
|
|
|
|
|
|
|
|
Group: Applications/Text
|
|
|
|
License: BSD
|
|
|
|
URL: http://docbook2x.sourceforge.net/
|
2007-08-08 16:25:33 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/docbook2x/docbook2X-%{version}.tar.gz
|
2006-02-09 21:00:11 +00:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2007-08-08 16:25:33 +00:00
|
|
|
BuildRequires: perl libxslt openjade texinfo %{_bindir}/sgml2xml
|
2006-04-10 17:41:01 +00:00
|
|
|
# required by the perl -c calls during build
|
2006-09-10 22:55:58 +00:00
|
|
|
BuildRequires: perl(XML::SAX::ParserFactory)
|
2006-02-09 21:00:11 +00:00
|
|
|
# rpmlint isn't happy with libxslt, but we need xsltproc
|
2007-08-08 16:25:33 +00:00
|
|
|
Requires: libxslt openjade texinfo %{_bindir}/sgml2xml
|
2006-02-09 21:00:11 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
|
|
|
|
%description
|
|
|
|
docbook2X converts DocBook documents into man pages and Texinfo
|
|
|
|
documents.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# to avoid clashing with docbook2* from docbook-utils
|
|
|
|
%configure --program-transform-name='s/docbook2/db2x_docbook2/'
|
|
|
|
make %{?_smp_mflags}
|
2007-12-16 22:19:14 +00:00
|
|
|
rm -rf __dist_html
|
|
|
|
mkdir -p __dist_html/html
|
|
|
|
cp -p doc/*.html __dist_html/html
|
2006-02-09 21:00:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-08-08 16:25:33 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -c -p'
|
2006-02-09 21:00:11 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-12-16 22:19:14 +00:00
|
|
|
%doc COPYING README THANKS AUTHORS __dist_html/html/
|
2006-02-09 21:00:11 +00:00
|
|
|
%{_bindir}/db2x_manxml
|
|
|
|
%{_bindir}/db2x_texixml
|
|
|
|
%{_bindir}/db2x_xsltproc
|
|
|
|
%{_bindir}/db2x_docbook2man
|
|
|
|
%{_bindir}/db2x_docbook2texi
|
|
|
|
%{_bindir}/sgml2xml-isoent
|
|
|
|
%{_bindir}/utf8trans
|
2007-08-08 16:25:33 +00:00
|
|
|
%dir %{_datadir}/docbook2X
|
|
|
|
%{_datadir}/docbook2X/VERSION
|
|
|
|
%dir %{_datadir}/docbook2X/charmaps
|
|
|
|
%dir %{_datadir}/docbook2X/dtd
|
|
|
|
%dir %{_datadir}/docbook2X/xslt
|
|
|
|
%{_datadir}/docbook2X/charmaps/*
|
|
|
|
%{_datadir}/docbook2X/dtd/*
|
|
|
|
%{_datadir}/docbook2X/xslt/*
|
|
|
|
%{_mandir}/man1/*.1*
|
2006-02-09 21:00:11 +00:00
|
|
|
%{_infodir}/docbook2*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2007-08-08 16:25:33 +00:00
|
|
|
* Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.8.8-1
|
|
|
|
- update to 0.8.8
|
|
|
|
|
2006-09-10 22:55:58 +00:00
|
|
|
* Mon Sep 11 2006 Patrice Dumas <pertusus@free.fr> 0.8.7-2
|
|
|
|
- correct the perl-XML-SAX to be perl(XML::SAX::ParserFactory)
|
|
|
|
|
|
|
|
* Thu May 18 2006 Patrice Dumas <pertusus@free.fr> - 0.8.7-1
|
2006-05-18 13:45:28 +00:00
|
|
|
- update to 0.8.7
|
|
|
|
|
2006-09-10 22:55:58 +00:00
|
|
|
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.6-1
|
2006-04-10 17:41:01 +00:00
|
|
|
- update to 0.8.6
|
|
|
|
- drop patch as SGMLSpl.pm is included in the scripts, not distributed
|
|
|
|
- BR perl-XML-SAX (close 188481)
|
|
|
|
|
2006-09-10 22:55:58 +00:00
|
|
|
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-2
|
2006-02-17 22:41:35 +00:00
|
|
|
- rebuild for fc5
|
|
|
|
|
2006-09-10 22:55:58 +00:00
|
|
|
* Fri Feb 3 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-1
|
2006-02-09 21:00:11 +00:00
|
|
|
- FE submission
|