Name: dblatex Version: 0.3.10 Release: 1mamba Summary: DocBook to LaTeX/ConTeXt Publishing Group: Applications/Publishing Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://dblatex.sourceforge.net/ Source0: http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-%{version}/dblatex-%{version}.tar.bz2 Source1: COPYING-docbook-xsl Patch0: dblatex-0.2.7-external-which.patch Patch1: dblatex-0.3.4-disable-DebianInstaller.patch Patch2: dblatex-0.3.4-install_layout.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython-devel ## AUTOBUILDREQ-END BuildRequires: docbook-dtds BuildRequires: python-which BuildRequires: libxslt %if "%{stage1}" != "1" BuildRequires: ImageMagick %endif BuildRequires: passivetex BuildRequires: transfig BuildRequires: tetex-latex BuildRequires: xmltex Requires: docbook-dtds Requires: libxslt %if "%{stage1}" != "1" Requires: ImageMagick %endif Requires: passivetex Requires: transfig #BibTex(TexModule) BuildRoot: %{_tmppath}/%{name}-%{version}-root %description DocBook to LaTeX Publishing transforms your SGML/XML DocBook documents to DVI, PostScript or PDF by translating them in pure LaTeX as a first process. MathML 2.0 markups are supported too. It started as a clone of DB2LaTeX. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 rm -rf lib/contrib %build %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install --root %{buildroot} # these are already in tetex-latex: for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do rm -rf %{buildroot}%{_datadir}/dblatex/latex/misc/$file done mkdir -p %{buildroot}%{_datadir}/texmf-dist/tex/latex/dblatex for file in ` find %{buildroot}%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do mv $file %{buildroot}%{_datadir}/texmf-dist/tex/latex/dblatex/`basename $file`; done for file in ` find %{buildroot}%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do mv $file %{buildroot}%{_datadir}/texmf-dist/tex/latex/dblatex/`basename $file`; done rm -rf %{buildroot}%{_datadir}/dblatex/latex/{misc,contrib/example,style} mkdir -p %{buildroot}%{_sysconfdir}/dblatex rm -rf %{buildroot}%{_datadir}/doc/ sed -e 's/\r//' xsl/mathml2/README > README-xsltml touch -r xsl/mathml2/README README-xsltml cp -p %{SOURCE1} COPYING-docbook-xsl %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /usr/bin/texhash %postun -p /usr/bin/texhash %posttrans texhash &>/dev/null || true : %files %defattr(-,root,root) %{python_sitelib}/dblatex-%{version}-py%{python_version}.egg-info %dir %{_sysconfdir}/dblatex %{_bindir}/dblatex %dir %{python_sitelib}/dbtexmf %{python_sitelib}/dbtexmf/*.py %{python_sitelib}/dbtexmf/*.pyc %dir %{python_sitelib}/dbtexmf/core %{python_sitelib}/dbtexmf/core/*.py %{python_sitelib}/dbtexmf/core/*.pyc %{python_sitelib}/dbtexmf/core/*.txt %dir %{python_sitelib}/dbtexmf/dblatex %{python_sitelib}/dbtexmf/dblatex/*.py %{python_sitelib}/dbtexmf/dblatex/*.pyc %dir %{python_sitelib}/dbtexmf/dblatex/grubber %{python_sitelib}/dbtexmf/dblatex/grubber/* %dir %{python_sitelib}/dbtexmf/dblatex/xetex %{python_sitelib}/dbtexmf/dblatex/xetex/*.py %{python_sitelib}/dbtexmf/dblatex/xetex/*.pyc %dir %{python_sitelib}/dbtexmf/xslt %{python_sitelib}/dbtexmf/xslt/*.py %{python_sitelib}/dbtexmf/xslt/*.pyc %dir %{_datadir}/dblatex %dir %{_datadir}/dblatex/latex %dir %{_datadir}/dblatex/latex/contrib %dir %{_datadir}/dblatex/latex/contrib/db2latex %{_datadir}/dblatex/latex/contrib/db2latex/*.xsl %dir %{_datadir}/dblatex/latex/contrib/db2latex/graphics %{_datadir}/dblatex/latex/contrib/db2latex/graphics/*.eps %{_datadir}/dblatex/latex/contrib/db2latex/graphics/*.pdf %dir %{_datadir}/dblatex/latex/graphics %{_datadir}/dblatex/latex/graphics/*.eps %{_datadir}/dblatex/latex/graphics/*.png %{_datadir}/dblatex/latex/graphics/*.fig %{_datadir}/dblatex/latex/graphics/*.pdf %dir %{_datadir}/dblatex/schema %{_datadir}/dblatex/schema/* %dir %{_datadir}/dblatex/latex/scripts %{_datadir}/dblatex/latex/scripts/*.ist %dir %{_datadir}/dblatex/latex/specs %{_datadir}/dblatex/latex/specs/*.xml %dir %{_datadir}/dblatex/xsl %{_datadir}/dblatex/xsl/*.xsl %{_datadir}/dblatex/xsl/*.xml %{_datadir}/dblatex/xsl/*.dtd %dir %{_datadir}/dblatex/xsl/common %{_datadir}/dblatex/xsl/common/*.xml %{_datadir}/dblatex/xsl/common/*.xsl %{_datadir}/dblatex/xsl/common/*.dtd %dir %{_datadir}/dblatex/xsl/mathml2 %{_datadir}/dblatex/xsl/mathml2/README %{_datadir}/dblatex/xsl/mathml2/*.xsl %{_datadir}/dblatex/xsl/mathml2/*.xml %dir %{_datadir}/texmf-dist/tex/latex/dblatex %{_datadir}/texmf-dist/tex/latex/dblatex/*.sty %{_mandir}/man1/dblatex.1.gz %doc COPYRIGHT #docs/manual.pdf COPYING-docbook-xsl README-xsltml %changelog * Thu May 18 2017 Automatic Build System 0.3.10-1mamba - automatic version update by autodist * Sat Nov 05 2016 Automatic Build System 0.3.9-1mamba - automatic version update by autodist * Tue Feb 02 2016 Automatic Build System 0.3.7-1mamba - automatic update by autodist * Fri Jun 05 2015 Automatic Build System 0.3.6-1mamba - automatic update by autodist * Sat May 31 2014 Automatic Build System 0.3.5-1mamba - automatic update by autodist * Tue Aug 20 2013 Silvan Calarco 0.3.4-3mamba - migrate files from %{_datadir}/texmf to %{_datadir}/texmf-dist * Wed Jun 05 2013 Silvan Calarco 0.3.4-2mamba - run texhash in posttrans script * Thu May 23 2013 Automatic Build System 0.3.4-1mamba - automatic update by autodist * Fri Aug 20 2010 Silvan Calarco 0.3-1mamba - update to 0.3 * Sat Jan 02 2010 gil 0.2.12-1mamba - update to 0.2.12 * Sat Jan 02 2010 gil 0.2.10-1mamba - package created by autospec