14560c
Name:       dblatex
14560c
Version:    0.3.12
14560c
Release:    4%{?dist}
14560c
Summary:    DocBook to LaTeX/ConTeXt Publishing
14560c
BuildArch:  noarch
14560c
# Most of package is GPLv2+, except:
14560c
# xsl/ directory is DMIT
14560c
# lib/dbtexmf/core/sgmlent.txt is Public Domain
14560c
# latex/misc/enumitem.sty, multirow2.sry and ragged2e.sty are LPPL
14560c
# latex/misc/lastpage.sty is GPLv2 (no +)
14560c
# latex/misc/passivetex is MIT (not included in binary RPM so not listed)
14560c
License:    GPLv2+ and GPLv2 and LPPL and DMIT and Public Domain
14560c
URL:        http://dblatex.sourceforge.net/
14560c
Source0:    http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2
14560c
# Source1 is from http://docbook.sourceforge.net/release/xsl/current/COPYING
14560c
Source1:    COPYING-docbook-xsl
14560c
Patch0:     dblatex-0.3.11-disable-debian.patch
14560c
Patch1:     dblatex-0.3.11-which-shutil.patch
14560c
Patch2:     dblatex-0.3.11-replace-inkscape-by-rsvg.patch
14560c
14560c
BuildRequires:  python3-devel
14560c
BuildRequires:  python3-setuptools
14560c
BuildRequires:  libxslt
14560c
BuildRequires:  texlive-base
14560c
BuildRequires:  texlive-collection-latex
14560c
BuildRequires:  texlive-collection-xetex
14560c
BuildRequires:  texlive-collection-htmlxml
14560c
BuildRequires:  texlive-xmltex-bin
14560c
BuildRequires:  texlive-anysize
14560c
BuildRequires:  texlive-appendix
14560c
BuildRequires:  texlive-changebar
14560c
BuildRequires:  texlive-fancybox
14560c
BuildRequires:  texlive-jknapltx
14560c
BuildRequires:  texlive-multirow
14560c
BuildRequires:  texlive-overpic
14560c
BuildRequires:  texlive-pdfpages
14560c
BuildRequires:  texlive-subfigure
14560c
BuildRequires:  texlive-stmaryrd
14560c
BuildRequires:  texlive-wasysym
14560c
Buildrequires:  /usr/bin/pathfix.py
14560c
Requires:       texlive-base
14560c
Requires:       texlive-collection-latex
14560c
Requires:       texlive-collection-xetex
14560c
Requires:       texlive-collection-htmlxml
14560c
Requires:       texlive-collection-fontsrecommended
14560c
Requires:       texlive-passivetex
14560c
Requires:       texlive-xmltex texlive-xmltex-bin
14560c
Requires:       texlive-anysize
14560c
Requires:       texlive-appendix
14560c
Requires:       texlive-bibtopic
14560c
Requires:       texlive-changebar
14560c
Requires:       texlive-ec
14560c
Requires:       texlive-fancybox
14560c
Requires:       texlive-jknapltx
14560c
Requires:       texlive-multirow
14560c
Requires:       texlive-overpic
14560c
Requires:       texlive-passivetex
14560c
Requires:       texlive-pdfpages
14560c
Requires:       texlive-subfigure
14560c
Requires:       texlive-stmaryrd
14560c
Requires:       texlive-wasysym
14560c
Requires:       texlive-xmltex-bin
14560c
Requires:       libxslt docbook-dtds
14560c
Recommends:     ImageMagick
14560c
Recommends:     texlive-epstopdf-bin
14560c
Recommends:     transfig
14560c
Recommends:     librsvg2-tools
14560c
14560c
%description
14560c
dblatex is a program that transforms your SGML/XMLDocBook
14560c
documents to DVI, PostScript or PDF by translating them
14560c
into pure LaTeX as a first process.  MathML 2.0 markups
14560c
are supported, too. It started as a clone of DB2LaTeX.
14560c
14560c
Authors:
14560c
--------
14560c
   BenoƮt Guillon <marsgui at users dot sourceforge dot net>
14560c
   Andreas Hoenen <andreas dot hoenen at arcor dot de>
14560c
14560c
14560c
%prep
14560c
%setup -q -n %{name}3-%{version}
14560c
%patch0 -p1 -b .disable-debian
14560c
%patch1 -p1 -b .which-shutil
14560c
%patch2 -p1 -b .rsvg
14560c
14560c
rm -rf lib/contrib
14560c
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" .
14560c
14560c
%build
14560c
%{__python3} setup.py build
14560c
14560c
14560c
%install
14560c
%{__python3} setup.py install --root $RPM_BUILD_ROOT
14560c
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT%{_bindir}/dblatex
14560c
14560c
# these are already in tetex-latex:
14560c
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
14560c
  rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
14560c
done
14560c
14560c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex
14560c
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
14560c
  mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
14560c
done
14560c
14560c
## also move .xetex files
14560c
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
14560c
  mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
14560c
done
14560c
14560c
rmdir $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
14560c
14560c
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
14560c
# shipped in %%docs
14560c
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
14560c
14560c
sed -e 's/\r//' xsl/mathml2/README > README-xsltml
14560c
touch -r xsl/mathml2/README README-xsltml
14560c
cp -p %{SOURCE1} COPYING-docbook-xsl
14560c
14560c
14560c
%files
14560c
%{_mandir}/man1/dblatex.1*
14560c
%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
14560c
%{python3_sitelib}/dbtexmf/
14560c
%{python3_sitelib}/dblatex-*.egg-info
14560c
%{_bindir}/dblatex
14560c
%{_datadir}/dblatex/
14560c
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
14560c
%dir %{_sysconfdir}/dblatex
14560c
14560c
%post -p /usr/bin/texhash
14560c
14560c
%postun -p /usr/bin/texhash
14560c
14560c
%changelog
14560c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.3.12-4
14560c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
14560c
  Related: rhbz#1991688
14560c
14560c
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.3.12-3
14560c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
14560c
14560c
* Thu Feb 18 2021 Michael J Gruber <mjg@fedoraproject.org> - 0.3.12-2
14560c
- replace inkscape by rsvg (#bz 1833047)
14560c
14560c
* Thu Feb 18 2021 Michael J Gruber <mjg@fedoraproject.org> - 0.3.12-1
14560c
- rebase to 0.3.12
14560c
- follow yet another package/tree renaming
14560c
14560c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.11-8
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
14560c
14560c
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.11-7
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
14560c
14560c
* Tue Jun 23 2020 Michael J Gruber <mjg@fedoraproject.org> - 0.3.11-6
14560c
- BR setuptools explicitly
14560c
14560c
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.11-5
14560c
- Rebuilt for Python 3.9
14560c
14560c
* Wed Feb 05 2020 Michael J Gruber <mjg@fedoraproject.org> - 0.3.11-4
14560c
- rebase to upstreamed py3 version (bz 1796232)
14560c
14560c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.11-3
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
14560c
14560c
* Mon Sep 23 2019 Michael J Gruber <mjg@fedoraproject.org> - 0.3.11-2
14560c
- port to python3 (bz #1737967)
14560c
14560c
* Sun Sep 22 2019 Michael J Gruber <mjg@fedoraproject.org> - 0.3.11-1
14560c
- bugfix release (bz #1753399)
14560c
14560c
* Tue Sep 10 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.10-12
14560c
- Rebundle python2-which.
14560c
14560c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-11
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
14560c
14560c
* Tue Feb 12 2019 Michael J Gruber <mjg@fedoraproject.org> - 0.3.10-10
14560c
- fix FTBFS on F30 (#1674789)
14560c
14560c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-9
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
14560c
14560c
* Mon Sep 10 2018 Michael J Gruber <mjg@fedoraproject.org> - 0.3.10-8
14560c
- make shebangs unambiguous
14560c
14560c
* Fri Jul 13 2018 Michael J Gruber <mjg@fedoraproject.org> - 0.3.10-7
14560c
- adjust to py2 packaging guidelines (fix FTBFS on rawhide)
14560c
14560c
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-6
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
14560c
14560c
* Wed Apr 11 2018 Nikola ForrĆ³ <nforro@redhat.com> - 0.3.10-5
14560c
- make non-critical graphic tools weak dependencies
14560c
- recommend inkscape, which can be used to convert SVG images
14560c
14560c
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.10-4
14560c
- Update Python 2 dependency declarations to new packaging standards
14560c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
14560c
14560c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-3
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
14560c
14560c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-2
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
14560c
14560c
* Wed Apr 05 2017 Michael J Gruber <mjg@fedoraproject.org> - 0.3.10-1
14560c
- rebase with upstream
14560c
14560c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-2
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
14560c
14560c
* Mon Oct 17 2016 Michael J Gruber <mjg@fedoraproject.org> - 0.3.9-1
14560c
- bugfix and feature release
14560c
14560c
* Mon Aug 01 2016 Michael J Gruber <mjg@fedoraproject.org> - 0.3.8-1
14560c
- bugfix and feature release
14560c
14560c
* Mon Aug 01 2016 Michael J Gruber <mjg@fedoraproject.org> - 0.3.7-1
14560c
- bugfix release
14560c
14560c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-4
14560c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
14560c
14560c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-3
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
14560c
14560c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
14560c
14560c
* Mon May 18 2015 jchaloup <jchaloup@redhat.com> - 0.3.6-1
14560c
- Update to 0.3.6
14560c
  resolves: #1222169
14560c
14560c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
14560c
14560c
* Mon May 26 2014 jchaloup <jchaloup@redhat.com> - 0.3.5-1
14560c
- Update to 0.3.5.
14560c
14560c
* Thu Aug 08 2013 Michael J Gruber <mjg@fedoraproject.org> - 0.3.4-8
14560c
- Merge in licensing changes from  Stanislav Ochotnicky <sochotnicky@redhat.com>:
14560c
-* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-8
14560c
-- Add Public Domain license and licensing comment
14560c
-* Mon Jul 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.4-7
14560c
-- Add DMIT, GPLv2 and LPPL licenses
14560c
-- Fix space and tab mixing
14560c
-- Cleanup old spec file parts
14560c
14560c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-7
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
14560c
14560c
* Wed May 29 2013 Michael J Gruber <mjg@fedoraproject.org> - 0.3.4-6
14560c
- Add mising R texlive-multirow.
14560c
14560c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-5
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
14560c
14560c
* Wed Jan 02 2013 Benjamin De Kosnik  <bkoz@redhat.com> - 0.3.4-1
14560c
- Update to 0.3.4.
14560c
- Adjust for texlive rebase.
14560c
14560c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
14560c
14560c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
14560c
14560c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
14560c
14560c
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-2
14560c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
14560c
14560c
* Mon Apr 12 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3-1
14560c
- Update to 0.3
14560c
- Cleanup spec: drop some unnecessary conditionals for old releases (< F-11)
14560c
14560c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
14560c
14560c
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-2
14560c
- remove dblatex-0.2.9-xetex.patch
14560c
14560c
* Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-1
14560c
- Update to 0.2.10
14560c
14560c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
14560c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
14560c
14560c
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.9-3
14560c
- Rebuild for Python 2.6
14560c
14560c
* Fri Jul  4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-2
14560c
- BR: texlive-xetex -> tex(xetex) for F-10 and later
14560c
14560c
* Thu Jun 12 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-1
14560c
- Update to latest upstream (0.2.9) (#448953)
14560c
- Remove some redundant Requires and BuildRequires (passivetex pulls
14560c
  in the tetex/tex requires, python dep added automatically)
14560c
- For F-9+ BR on tex(latex) and texlive-xetex, fix the installation
14560c
  scripts to install extra new files.
14560c
- Add patch from dblatex mailing list for better handling of a missing
14560c
  xetex.
14560c
- Conditionally add .egg-info file only if F9+ to allow for unified
14560c
  spec file
14560c
14560c
* Sun Dec 16 2007 Patrice Dumas <pertusus@free.fr> - 0.2.8-2.1
14560c
- don't install in docbook directory, it is a link to a versioned
14560c
  directory and may break upon docbook update (#425251,#389231)
14560c
14560c
* Sun Nov 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.8-1
14560c
- Update to 0.2.8
14560c
14560c
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-16
14560c
- convert spec to utf8
14560c
- change to gplv2+
14560c
14560c
* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-15
14560c
- Add copyright info
14560c
14560c
* Mon Nov  5 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-14
14560c
- Req tetex-fonts for texhash
14560c
- Fix post, postun
14560c
14560c
* Sun Nov  4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-13
14560c
- Add texhash
14560c
14560c
* Sun Nov  4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
14560c
- Fix xsl link
14560c
14560c
* Sat Nov  3 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
14560c
- Various fixes from pertusus@free.fr:
14560c
- rm iconv stuff
14560c
- simplify docs installation
14560c
14560c
* Fri Nov  2 2007  <ndbecker2@gmail.com> - 0.2.7-11
14560c
- Various minor fixes
14560c
14560c
* Thu Nov  1 2007  <ndbecker2@gmail.com> - 0.2.7-10
14560c
- Add some reqs and brs
14560c
- rmdir /usr/share/dblatex/latex/{misc,contrib/example,style}
14560c
14560c
* Sat Oct 27 2007  <ndbecker2@gmail.com> - 0.2.7-9
14560c
- link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex
14560c
- rmdir /usr/share/dblatex/latex/{misc,specs,style}
14560c
- own /etc/dblatex
14560c
- change $(...) -> `...`
14560c
- Preserve timestamps on iconv
14560c
14560c
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-9
14560c
- mv all .sty files to datadir/texmf/tex/latex/dblatex
14560c
- Add Conflicts tetex-tex4ht
14560c
- mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/
14560c
14560c
* Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
14560c
- rm redundant latex files
14560c
14560c
* Tue Sep 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
14560c
- Fixed encodings in docs directory
14560c
- Install docs at correct location
14560c
14560c
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-7
14560c
- Revert back to GPLv2
14560c
- untabify
14560c
14560c
* Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-6
14560c
- Fix source URL
14560c
- Install all docs
14560c
- Tabify
14560c
14560c
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-5
14560c
- Add BR tetex-latex
14560c
14560c
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-4
14560c
- Add  BR tetex, ImageMagick
14560c
14560c
* Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-3
14560c
- Add BR libxslt
14560c
14560c
* Wed Sep 19 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-2
14560c
- Add BR python-devel
14560c
14560c
* Fri Sep  7 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-1
14560c
- Initial