123 Star 0 Fork 9

src-openEuler/dblatex

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dblatex.spec 3.99 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2024-07-18 20:59 . License compliance rectification
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/dblatex.git
git@gitee.com:src-openeuler/dblatex.git
src-openeuler
dblatex
dblatex
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385