2013-07-29 09:21:27 +00:00
|
|
|
Name: dblatex
|
2021-02-18 11:00:32 +00:00
|
|
|
Version: 0.3.12
|
2024-01-22 08:54:58 +00:00
|
|
|
Release: %autorelease
|
2013-07-29 09:21:27 +00:00
|
|
|
Summary: DocBook to LaTeX/ConTeXt Publishing
|
|
|
|
BuildArch: noarch
|
2013-07-29 11:49:46 +00:00
|
|
|
# Most of package is GPLv2+, except:
|
|
|
|
# xsl/ directory is DMIT
|
|
|
|
# lib/dbtexmf/core/sgmlent.txt is Public Domain
|
|
|
|
# latex/misc/enumitem.sty, multirow2.sry and ragged2e.sty are LPPL
|
|
|
|
# latex/misc/lastpage.sty is GPLv2 (no +)
|
|
|
|
# latex/misc/passivetex is MIT (not included in binary RPM so not listed)
|
2022-12-06 15:29:12 +00:00
|
|
|
License: GPL-2.0-or-later AND GPL-2.0-only AND LPPL-1.3a AND LicenseRef-DMIT AND LicenseRef-Fedora-Public-Domain
|
2013-07-29 09:21:27 +00:00
|
|
|
URL: http://dblatex.sourceforge.net/
|
2021-02-18 11:00:32 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2
|
2013-07-29 09:21:27 +00:00
|
|
|
# Source1 is from http://docbook.sourceforge.net/release/xsl/current/COPYING
|
|
|
|
Source1: COPYING-docbook-xsl
|
2020-02-05 14:49:40 +00:00
|
|
|
Patch0: dblatex-0.3.11-disable-debian.patch
|
|
|
|
Patch1: dblatex-0.3.11-which-shutil.patch
|
2021-02-18 11:24:27 +00:00
|
|
|
Patch2: dblatex-0.3.11-replace-inkscape-by-rsvg.patch
|
2023-06-15 10:05:32 +00:00
|
|
|
# Patch3 sent upstream: https://sourceforge.net/p/dblatex/patches/12/
|
|
|
|
Patch3: dblatex-0.3.12-replace-imp-by-importlib.patch
|
2023-07-06 13:04:32 +00:00
|
|
|
# Patch4 sent upstream: https://sourceforge.net/p/dblatex/patches/13/
|
|
|
|
Patch4: dblatex-0.3.12-adjust-submodule-imports.patch
|
2013-07-29 09:21:27 +00:00
|
|
|
|
2019-09-23 08:38:00 +00:00
|
|
|
BuildRequires: python3-devel
|
2020-06-23 19:39:48 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2013-07-29 09:21:27 +00:00
|
|
|
BuildRequires: libxslt
|
2013-01-09 20:45:33 +00:00
|
|
|
BuildRequires: texlive-base
|
|
|
|
BuildRequires: texlive-collection-latex
|
|
|
|
BuildRequires: texlive-collection-xetex
|
|
|
|
BuildRequires: texlive-xmltex-bin
|
2013-07-29 09:21:27 +00:00
|
|
|
BuildRequires: texlive-anysize
|
|
|
|
BuildRequires: texlive-appendix
|
|
|
|
BuildRequires: texlive-changebar
|
2018-04-11 11:18:53 +00:00
|
|
|
BuildRequires: texlive-fancybox
|
2013-07-29 09:21:27 +00:00
|
|
|
BuildRequires: texlive-jknapltx
|
|
|
|
BuildRequires: texlive-multirow
|
|
|
|
BuildRequires: texlive-overpic
|
2023-06-06 20:01:30 +00:00
|
|
|
BuildRequires: texlive-passivetex
|
2013-07-29 09:21:27 +00:00
|
|
|
BuildRequires: texlive-pdfpages
|
|
|
|
BuildRequires: texlive-subfigure
|
2013-01-09 20:45:33 +00:00
|
|
|
BuildRequires: texlive-stmaryrd
|
2018-04-11 11:18:53 +00:00
|
|
|
BuildRequires: texlive-wasysym
|
2013-01-09 20:45:33 +00:00
|
|
|
Requires: texlive-base
|
|
|
|
Requires: texlive-collection-latex
|
|
|
|
Requires: texlive-collection-xetex
|
|
|
|
Requires: texlive-collection-fontsrecommended
|
2013-07-29 09:21:27 +00:00
|
|
|
Requires: texlive-xmltex texlive-xmltex-bin
|
|
|
|
Requires: texlive-anysize
|
|
|
|
Requires: texlive-appendix
|
|
|
|
Requires: texlive-bibtopic
|
|
|
|
Requires: texlive-changebar
|
|
|
|
Requires: texlive-ec
|
2018-04-11 11:18:53 +00:00
|
|
|
Requires: texlive-fancybox
|
2013-07-29 09:21:27 +00:00
|
|
|
Requires: texlive-jknapltx
|
|
|
|
Requires: texlive-multirow
|
|
|
|
Requires: texlive-overpic
|
|
|
|
Requires: texlive-passivetex
|
|
|
|
Requires: texlive-pdfpages
|
|
|
|
Requires: texlive-subfigure
|
2013-01-09 20:45:33 +00:00
|
|
|
Requires: texlive-stmaryrd
|
2018-04-11 11:18:53 +00:00
|
|
|
Requires: texlive-wasysym
|
2013-07-29 09:21:27 +00:00
|
|
|
Requires: texlive-xmltex-bin
|
|
|
|
Requires: libxslt docbook-dtds
|
2018-04-11 11:18:53 +00:00
|
|
|
Recommends: ImageMagick
|
|
|
|
Recommends: texlive-epstopdf-bin
|
|
|
|
Recommends: transfig
|
2021-02-18 11:24:27 +00:00
|
|
|
Recommends: librsvg2-tools
|
2007-11-13 17:46:05 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
dblatex is a program that transforms your SGML/XMLDocBook
|
|
|
|
documents to DVI, PostScript or PDF by translating them
|
|
|
|
into pure LaTeX as a first process. MathML 2.0 markups
|
|
|
|
are supported, too. It started as a clone of DB2LaTeX.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Benoît Guillon <marsgui at users dot sourceforge dot net>
|
|
|
|
Andreas Hoenen <andreas dot hoenen at arcor dot de>
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-03-29 08:52:55 +00:00
|
|
|
%autosetup -n %{name}3-%{version} -p 1
|
2019-09-23 08:38:00 +00:00
|
|
|
|
|
|
|
rm -rf lib/contrib
|
2022-11-01 06:01:50 +00:00
|
|
|
%py3_shebang_fix .
|
2007-11-13 17:46:05 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-23 08:38:00 +00:00
|
|
|
%{__python3} setup.py build
|
2007-11-13 17:46:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-09-23 08:38:00 +00:00
|
|
|
%{__python3} setup.py install --root $RPM_BUILD_ROOT
|
2022-11-01 06:01:50 +00:00
|
|
|
%py3_shebang_fix $RPM_BUILD_ROOT%{_bindir}/dblatex
|
2019-02-12 09:17:15 +00:00
|
|
|
|
2007-11-13 17:46:05 +00:00
|
|
|
# these are already in tetex-latex:
|
2008-06-13 05:52:03 +00:00
|
|
|
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
|
2007-11-13 17:46:05 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
|
|
|
|
done
|
|
|
|
|
2013-01-09 20:45:33 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex
|
2013-07-29 09:21:27 +00:00
|
|
|
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
|
2013-01-09 20:45:33 +00:00
|
|
|
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
|
2007-11-13 17:46:05 +00:00
|
|
|
done
|
|
|
|
|
2008-06-13 05:52:03 +00:00
|
|
|
## also move .xetex files
|
2013-07-29 09:21:27 +00:00
|
|
|
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
|
2013-01-09 20:45:33 +00:00
|
|
|
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
|
2008-06-13 05:52:03 +00:00
|
|
|
done
|
|
|
|
|
2007-11-13 17:46:05 +00:00
|
|
|
rmdir $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
|
|
|
|
# shipped in %%docs
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
|
|
|
|
|
|
|
|
sed -e 's/\r//' xsl/mathml2/README > README-xsltml
|
|
|
|
touch -r xsl/mathml2/README README-xsltml
|
|
|
|
cp -p %{SOURCE1} COPYING-docbook-xsl
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_mandir}/man1/dblatex.1*
|
|
|
|
%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
|
2019-09-23 08:38:00 +00:00
|
|
|
%{python3_sitelib}/dbtexmf/
|
|
|
|
%{python3_sitelib}/dblatex-*.egg-info
|
2007-11-13 17:46:05 +00:00
|
|
|
%{_bindir}/dblatex
|
|
|
|
%{_datadir}/dblatex/
|
2013-01-09 20:45:33 +00:00
|
|
|
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
|
2007-11-13 17:46:05 +00:00
|
|
|
%dir %{_sysconfdir}/dblatex
|
|
|
|
|
|
|
|
%post -p /usr/bin/texhash
|
|
|
|
|
|
|
|
%postun -p /usr/bin/texhash
|
|
|
|
|
|
|
|
%changelog
|
2024-01-22 08:54:58 +00:00
|
|
|
%autochangelog
|