代码拉取完成,页面将自动刷新
Name: dblatex
Version: 0.3.12
Release: 2
Summary: DocBook to LaTeX/ConTeXt Publishing
BuildArch: noarch
License: GPL-2.0-or-later AND GPL-2.0-only AND LPPL-1.3a AND MIT AND Public Domain
URL: http://dblatex.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2
Source1: COPYING-docbook-xsl
Patch0000: dblatex-0.3.11-disable-debian.patch
Patch0001: dblatex-0.3.11-which-shutil.patch
Patch0002: dblatex-0.3.11-replace-inkscape-by-rsvg.patch
# Patch3 sent upstream: https://sourceforge.net/p/dblatex/patches/12/
Patch0003: dblatex-0.3.12-replace-imp-by-importlib.patch
# Patch4 sent upstream: https://sourceforge.net/p/dblatex/patches/13/
Patch0004: dblatex-0.3.12-adjust-submodule-imports.patch
BuildRequires: python3-devel python3-setuptools libxslt texlive-base texlive-collection-latex texlive-collection-xetex
BuildRequires: texlive-collection-htmlxml texlive-xmltex-bin texlive-anysize texlive-appendix texlive-changebar
BuildRequires: texlive-fancybox texlive-jknapltx texlive-multirow texlive-overpic texlive-pdfpages texlive-subfigure
BuildRequires: texlive-stmaryrd texlive-wasysym
Buildrequires: /usr/bin/pathfix.py
Requires: texlive-base texlive-collection-latex texlive-collection-xetex texlive-collection-htmlxml
Requires: texlive-passivetex texlive-xmltex texlive-xmltex-bin texlive-anysize texlive-appendix texlive-bibtopic
Requires: texlive-changebar texlive-ec texlive-fancybox texlive-jknapltx texlive-multirow texlive-overpic
Requires: texlive-pdfpages texlive-subfigure texlive-stmaryrd texlive-wasysym texlive-xmltex-bin libxslt
Requires: texlive-collection-fontsrecommended docbook-dtds texlive-everysel
Recommends: ImageMagick texlive-epstopdf-bin transfig inkscape
%description
dblatex can 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.
%package help
Summary: Introduce how to use dblatex
%description help
Introduce how to use dblatex
%prep
%autosetup -n %{name}3-%{version} -p1
rm -rf lib/contrib
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install --root $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
done
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
mv $file $RPM_BUILD_ROOT%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
done
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
awk '{sub("\r$","",$0);print $0}' xsl/mathml2/README > README-xsltml
touch -r xsl/mathml2/README README-xsltml
cp -p %{SOURCE1} COPYING-docbook-xsl
%post -p /usr/bin/texhash
%postun -p /usr/bin/texhash
%files
%doc COPYRIGHT COPYING-docbook-xsl
%{python3_sitelib}/dbtexmf/
%{python3_sitelib}/dblatex-*.egg-info
%{_bindir}/dblatex
%{_datadir}/dblatex/
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
%dir %{_sysconfdir}/dblatex
%exclude %{_datadir}/doc/
%exclude %{_datadir}/dblatex/latex/{misc,contrib/example,style}
%exclude %{_datadir}/dblatex/latex/misc/passivetex/
%exclude %{_datadir}/dblatex/latex/misc/xelatex/
%files help
%doc docs/manual.pdf README-xsltml
%{_mandir}/man1/dblatex.1*
%changelog
* Thu Jul 18 2024 yaoxin <yao_xin001@hoperun.com> - 0.3.12-2
- License compliance rectification
* Tue Jan 16 2024 yaoxin <yao_xin001@hoperun.com> - 0.3.12-1
- Upgrade to 0.3.12
* Mon May 8 2023 Ge Wang<wang__ge@126.com> - 0.3.11-3
- Fix build failure due to python-setuptools updated to version 66.0.0
* Wed Mar 1 2023 caodongxia<caodongxia@h-partners.com> - 0.3.11-2
- Add requires texlive-everysel
* Fri Nov 13 2020 liuweibo<liuweibo10@huawei.com> - 0.3.11-1
- Update to 0.3.11
* Fri Nov 22 2019 yangjian<yangjian79@huawei.com> - 0.3.10-8
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。