669ab94
Name:           docbook2X
96aed8d
Version:        0.8.8
c2ab0da
Release:        24%{?dist}
669ab94
Summary:        Convert docbook into man and Texinfo
669ab94
669ab94
Group:          Applications/Text
85cc1ca
License:        MIT
669ab94
URL:            http://docbook2x.sourceforge.net/
96aed8d
Source0:        http://downloads.sourceforge.net/docbook2x/docbook2X-%{version}.tar.gz
669ab94
669ab94
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
669ab94
96aed8d
BuildRequires:  perl libxslt openjade texinfo %{_bindir}/sgml2xml
4056d9a
# required by the perl -c calls during build
0c03388
BuildRequires:  perl(XML::SAX::ParserFactory)
669ab94
# rpmlint isn't happy with libxslt, but we need xsltproc
96aed8d
Requires:       libxslt openjade texinfo %{_bindir}/sgml2xml
669ab94
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
97b10a5
# Required by bin/* scripts, who does know why rpmbuild does not generate
97b10a5
# dependencies automatically:
97b10a5
Requires:  perl(Exporter)
97b10a5
Requires:  perl(IO::File)
97b10a5
Requires:  perl(Text::Wrap)
97b10a5
Requires:  perl(vars)
97b10a5
Requires:  perl(XML::SAX::ParserFactory)
97b10a5
669ab94
Requires(post): /sbin/install-info
669ab94
Requires(preun): /sbin/install-info
669ab94
669ab94
%description
669ab94
docbook2X converts DocBook documents into man pages and Texinfo
669ab94
documents.
669ab94
669ab94
669ab94
%prep
669ab94
%setup -q
669ab94
669ab94
%build
669ab94
# to avoid clashing with docbook2* from docbook-utils
669ab94
%configure --program-transform-name='s/docbook2/db2x_docbook2/'
669ab94
make %{?_smp_mflags}
0c90460
rm -rf __dist_html
0c90460
mkdir -p __dist_html/html
0c90460
cp -p doc/*.html __dist_html/html
669ab94
669ab94
669ab94
%install
669ab94
rm -rf $RPM_BUILD_ROOT
96aed8d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -c -p'
669ab94
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
669ab94
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
669ab94
669ab94
669ab94
%clean
669ab94
rm -rf $RPM_BUILD_ROOT
669ab94
669ab94
%post
669ab94
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
669ab94
669ab94
%preun
669ab94
if [ $1 = 0 ]; then
669ab94
   /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
669ab94
fi
669ab94
669ab94
%files
669ab94
%defattr(-,root,root,-)
0c90460
%doc COPYING README THANKS AUTHORS __dist_html/html/
669ab94
%{_bindir}/db2x_manxml
669ab94
%{_bindir}/db2x_texixml
669ab94
%{_bindir}/db2x_xsltproc
669ab94
%{_bindir}/db2x_docbook2man
669ab94
%{_bindir}/db2x_docbook2texi
669ab94
%{_bindir}/sgml2xml-isoent
669ab94
%{_bindir}/utf8trans
96aed8d
%dir %{_datadir}/docbook2X
96aed8d
%{_datadir}/docbook2X/VERSION
96aed8d
%dir %{_datadir}/docbook2X/charmaps
96aed8d
%dir %{_datadir}/docbook2X/dtd
96aed8d
%dir %{_datadir}/docbook2X/xslt
96aed8d
%{_datadir}/docbook2X/charmaps/*
96aed8d
%{_datadir}/docbook2X/dtd/*
96aed8d
%{_datadir}/docbook2X/xslt/*
96aed8d
%{_mandir}/man1/*.1*
669ab94
%{_infodir}/docbook2*
669ab94
669ab94
669ab94
%changelog
c2ab0da
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.8.8-24
c2ab0da
- Perl 5.24 rebuild
c2ab0da
6f352b5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.8-23
6f352b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6f352b5
2cc0bf8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-22
2cc0bf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2cc0bf8
a01e5f4
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.8.8-21
a01e5f4
- Perl 5.22 rebuild
a01e5f4
93e7592
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.8.8-20
93e7592
- Perl 5.20 rebuild
93e7592
8b64937
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-19
8b64937
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8b64937
a0fa527
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-18
a0fa527
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a0fa527
fb3a209
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-17
fb3a209
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fb3a209
97b10a5
* Thu Aug 01 2013 Petr Pisar <ppisar@redhat.com> - 0.8.8-16
97b10a5
- Declare script dependencies explicitly
97b10a5
4bc419d
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.8.8-15
4bc419d
- Perl 5.18 rebuild
4bc419d
7cacd53
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-14
7cacd53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7cacd53
85cc1ca
* Mon Nov 05 2012 Caolán McNamara <caolanm@redhat.com> - 0.8.8-13
85cc1ca
- Resolves: rhbz#872580 license text is MIT-alike rather than BSD
85cc1ca
  which fits with the upstream web-site declaration
85cc1ca
4b8be5e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-12
4b8be5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4b8be5e
5593cb2
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.8.8-11
5593cb2
- Perl 5.16 rebuild
5593cb2
73308db
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-10
73308db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
73308db
Petr Sabata d8f30e7
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.8.8-9
Petr Sabata d8f30e7
- Perl mass rebuild
Petr Sabata d8f30e7
1b37bc6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-8
1b37bc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1b37bc6
6d4cf31
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8.8-7
6d4cf31
- Mass rebuild with perl-5.12.0
6d4cf31
74abfc2
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.8.8-6
74abfc2
- rebuild against perl 5.10.1
74abfc2
6fe7337
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-5
6fe7337
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6fe7337
6b0f267
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-4
6b0f267
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6b0f267
fd011c9
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.8-3
fd011c9
Rebuild for new perl
fd011c9
f78573e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.8-2
f78573e
- Autorebuild for GCC 4.3
f78573e
96aed8d
* Wed Aug  8 2007 Patrice Dumas <pertusus@free.fr> 0.8.8-1
96aed8d
- update to 0.8.8
96aed8d
0c03388
* Mon Sep 11 2006 Patrice Dumas <pertusus@free.fr> 0.8.7-2
0c03388
- correct the perl-XML-SAX to be perl(XML::SAX::ParserFactory)
0c03388
0c03388
* Thu May 18 2006 Patrice Dumas <pertusus@free.fr> - 0.8.7-1
b74e205
- update to 0.8.7
b74e205
0c03388
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.6-1
4056d9a
- update to 0.8.6
4056d9a
- drop patch as SGMLSpl.pm is included in the scripts, not distributed
4056d9a
- BR perl-XML-SAX (close 188481)
4056d9a
0c03388
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-2
70a7fe9
- rebuild for fc5
70a7fe9
0c03388
* Fri Feb  3 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-1
669ab94
- FE submission