2024-01-05 21:40:11 +01:00
|
|
|
Name: dblatex
|
2024-01-05 21:40:12 +01:00
|
|
|
Version: 0.3.12
|
2024-01-05 21:40:12 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 21:40:11 +01:00
|
|
|
Summary: DocBook to LaTeX/ConTeXt Publishing
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://dblatex.sourceforge.net/
|
2024-01-05 21:40:12 +01:00
|
|
|
Source0: https://sourceforge.net/projects/dblatex/files/dblatex/dblatex-%{version}/dblatex3-%{version}.tar.bz2
|
2024-01-05 21:40:11 +01:00
|
|
|
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
|
2024-01-05 21:40:12 +01:00
|
|
|
BuildRequires: python3
|
2024-01-05 21:40:11 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: docbook-dtds
|
2024-01-05 21:40:12 +01:00
|
|
|
#BuildRequires: python-which
|
2024-01-05 21:40:11 +01:00
|
|
|
BuildRequires: libxslt
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: ImageMagick
|
|
|
|
%endif
|
|
|
|
BuildRequires: transfig
|
|
|
|
BuildRequires: tetex-latex
|
|
|
|
BuildRequires: xmltex
|
|
|
|
Requires: docbook-dtds
|
|
|
|
Requires: libxslt
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
Requires: ImageMagick
|
|
|
|
%endif
|
2024-01-05 21:40:12 +01:00
|
|
|
Requires: texlive-core
|
2024-01-05 21:40:11 +01:00
|
|
|
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
|
2024-01-05 21:40:12 +01:00
|
|
|
%setup -q -n dblatex3-%{version}
|
|
|
|
#% patch0 -p1
|
2024-01-05 21:40:11 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2024-01-05 21:40:12 +01:00
|
|
|
#rm -rf lib/contrib
|
2024-01-05 21:40:11 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 21:40:12 +01:00
|
|
|
%{__python3} setup.py build
|
2024-01-05 21:40:11 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 21:40:12 +01:00
|
|
|
%{__python3} setup.py install --root %{buildroot}
|
2024-01-05 21:40:11 +01:00
|
|
|
|
|
|
|
# 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)
|
|
|
|
%dir %{_sysconfdir}/dblatex
|
|
|
|
%{_bindir}/dblatex
|
2024-01-05 21:40:12 +01:00
|
|
|
%dir %{python3_sitelib}/dbtexmf
|
|
|
|
%{python3_sitelib}/dbtexmf/*
|
|
|
|
%dir %{python3_sitelib}/dbtexmf/core
|
|
|
|
%{python3_sitelib}/dbtexmf/core/*
|
|
|
|
%dir %{python3_sitelib}/dbtexmf/dblatex
|
|
|
|
%{python3_sitelib}/dbtexmf/dblatex/*
|
|
|
|
%dir %{python3_sitelib}/dbtexmf/dblatex/grubber
|
|
|
|
%{python3_sitelib}/dbtexmf/dblatex/grubber/*
|
|
|
|
%dir %{python3_sitelib}/dbtexmf/dblatex/xetex
|
|
|
|
%{python3_sitelib}/dbtexmf/dblatex/xetex/*
|
|
|
|
%dir %{python3_sitelib}/dbtexmf/xslt
|
|
|
|
%{python3_sitelib}/dbtexmf/xslt/*
|
|
|
|
%{python3_sitelib}/dblatex-%{version}-py%{python3_version}.egg-info
|
2024-01-05 21:40:11 +01:00
|
|
|
%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
|
2024-01-05 21:40:12 +01:00
|
|
|
%dir %{_datadir}/dblatex/schema
|
|
|
|
%{_datadir}/dblatex/schema/*
|
2024-01-05 21:40:11 +01:00
|
|
|
%dir %{_datadir}/dblatex/latex/scripts
|
|
|
|
%{_datadir}/dblatex/latex/scripts/*.ist
|
|
|
|
%dir %{_datadir}/dblatex/latex/specs
|
2024-01-05 21:40:12 +01:00
|
|
|
%{_datadir}/dblatex/latex/specs/*.xml
|
2024-01-05 21:40:11 +01:00
|
|
|
%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
|
2024-01-05 21:40:12 +01:00
|
|
|
%{_mandir}/man1/dblatex.1*
|
2024-01-05 21:40:11 +01:00
|
|
|
%doc COPYRIGHT
|
|
|
|
#docs/manual.pdf COPYING-docbook-xsl README-xsltml
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:40:12 +01:00
|
|
|
* Fri Jan 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.12-1mamba
|
|
|
|
- update to 0.3.12
|
|
|
|
- use internal which
|
|
|
|
|
2024-01-05 21:40:12 +01:00
|
|
|
* Mon Nov 11 2019 Automatic Build System <autodist@mambasoft.it> 0.3.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:40:12 +01:00
|
|
|
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.10-2mamba
|
|
|
|
- require texlive-core instead of passivetex
|
|
|
|
|
2024-01-05 21:40:12 +01:00
|
|
|
* Thu May 18 2017 Automatic Build System <autodist@mambasoft.it> 0.3.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:40:12 +01:00
|
|
|
* Sat Nov 05 2016 Automatic Build System <autodist@mambasoft.it> 0.3.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:40:11 +01:00
|
|
|
* Tue Feb 02 2016 Automatic Build System <autodist@mambasoft.it> 0.3.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 21:40:11 +01:00
|
|
|
* Fri Jun 05 2015 Automatic Build System <autodist@mambasoft.it> 0.3.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 21:40:11 +01:00
|
|
|
* Sat May 31 2014 Automatic Build System <autodist@mambasoft.it> 0.3.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 21:40:11 +01:00
|
|
|
* Tue Aug 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.4-3mamba
|
|
|
|
- migrate files from %{_datadir}/texmf to %{_datadir}/texmf-dist
|
|
|
|
|
|
|
|
* Wed Jun 05 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.4-2mamba
|
|
|
|
- run texhash in posttrans script
|
|
|
|
|
|
|
|
* Thu May 23 2013 Automatic Build System <autodist@mambasoft.it> 0.3.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Aug 20 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-1mamba
|
|
|
|
- update to 0.3
|
|
|
|
|
|
|
|
* Sat Jan 02 2010 gil <puntogil@libero.it> 0.2.12-1mamba
|
|
|
|
- update to 0.2.12
|
|
|
|
|
|
|
|
* Sat Jan 02 2010 gil <puntogil@libero.it> 0.2.10-1mamba
|
|
|
|
- package created by autospec
|