156 lines
4.9 KiB
RPMSpec
156 lines
4.9 KiB
RPMSpec
Name: docbook2X
|
|
Version: 0.8.8
|
|
Release: 17%{?dist}
|
|
Summary: Convert docbook into man and Texinfo
|
|
|
|
Group: Applications/Text
|
|
License: MIT
|
|
URL: http://docbook2x.sourceforge.net/
|
|
Source0: http://downloads.sourceforge.net/docbook2x/docbook2X-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: perl libxslt openjade texinfo %{_bindir}/sgml2xml
|
|
# required by the perl -c calls during build
|
|
BuildRequires: perl(XML::SAX::ParserFactory)
|
|
# rpmlint isn't happy with libxslt, but we need xsltproc
|
|
Requires: libxslt openjade texinfo %{_bindir}/sgml2xml
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
# Required by bin/* scripts, who does know why rpmbuild does not generate
|
|
# dependencies automatically:
|
|
Requires: perl(Exporter)
|
|
Requires: perl(IO::File)
|
|
Requires: perl(Text::Wrap)
|
|
Requires: perl(vars)
|
|
Requires: perl(XML::SAX::ParserFactory)
|
|
|
|
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}
|
|
rm -rf __dist_html
|
|
mkdir -p __dist_html/html
|
|
cp -p doc/*.html __dist_html/html
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -c -p'
|
|
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,-)
|
|
%doc COPYING README THANKS AUTHORS __dist_html/html/
|
|
%{_bindir}/db2x_manxml
|
|
%{_bindir}/db2x_texixml
|
|
%{_bindir}/db2x_xsltproc
|
|
%{_bindir}/db2x_docbook2man
|
|
%{_bindir}/db2x_docbook2texi
|
|
%{_bindir}/sgml2xml-isoent
|
|
%{_bindir}/utf8trans
|
|
%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*
|
|
%{_infodir}/docbook2*
|
|
|
|
|
|
%changelog
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Thu Aug 01 2013 Petr Pisar <ppisar@redhat.com> - 0.8.8-16
|
|
- Declare script dependencies explicitly
|
|
|
|
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.8.8-15
|
|
- Perl 5.18 rebuild
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Mon Nov 05 2012 Caolán McNamara <caolanm@redhat.com> - 0.8.8-13
|
|
- Resolves: rhbz#872580 license text is MIT-alike rather than BSD
|
|
which fits with the upstream web-site declaration
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.8.8-11
|
|
- Perl 5.16 rebuild
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.8.8-9
|
|
- Perl mass rebuild
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8.8-7
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.8.8-6
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.8-3
|
|
Rebuild for new perl
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.8-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.8.8-1
|
|
- update to 0.8.8
|
|
|
|
* 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
|
|
- update to 0.8.7
|
|
|
|
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.6-1
|
|
- update to 0.8.6
|
|
- drop patch as SGMLSpl.pm is included in the scripts, not distributed
|
|
- BR perl-XML-SAX (close 188481)
|
|
|
|
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-2
|
|
- rebuild for fc5
|
|
|
|
* Fri Feb 3 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-1
|
|
- FE submission
|