同步操作将从 src-openEuler/python-docutils 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global modname docutils%global flashfilename biohazard.swf%global flashfilepath docs/user/rst/images/Name: python-%{modname}Version: 0.14Release: 7Summary: Documentation Utilities Written in Python, for General- and Special-Purpose UseLicense: Public Domain and BSD and Python and GPLv3+URL: http://docutils.sourceforge.netSource0: http://downloads.sourceforge.net/docutils/docutils-0.14.tar.gzBuildArch: noarchBuildRequires: python2-devel python2-setuptoolsBuildRequires: python3-devel python2-tools%global _description \Docutils is an open-source text processing system for processing plaintext\documentation into useful formats, such as HTML, LaTeX, man-pages,\open-document or XML. It includes reStructuredText, the easy to read, easy\to use, what-you-see-is-what-you-get plaintext markup language.%description%{_description}%package -n python2-%{modname}Summary: %{summary} for python2%{?python_provide:%python_provide python2-%{modname}}Provides: docutils = %{version}-%{release}Obsoletes: docutils < %{version}-%{release}%description -n python2-%{modname}%{_description}%package -n python3-%{modname}Summary: %{summary} for python3%{?python_provide:%python_provide python3-%{modname}}%description -n python3-%{modname}%{_description}This package run under python3.%package_help%prep%autosetup -n %{modname}-%{version}# Remove shebang from library filesfor file in {code_analyzer,punctuation_chars,error_reporting,smartquotes,math/latex2mathml,math/math2html}; dosed -i -e '/#! *\/usr\/bin\/.*/{1D}' docutils/utils/$file.pydonesed -i -e '/#! *\/usr\/bin\/.*/{1D}' docutils/writers/xetex/__init__.pyiconv -f ISO88592 -t UTF8 tools/editors/emacs/IDEAS.rst > tmpmv tmp tools/editors/emacs/IDEAS.rstrm -rf %{py3dir}cp -a . %{py3dir}%build%py2_buildpushd %{py3dir}%py3_buildpopd%install%py2_installrm -rf %{buildroot}%{python3_sitelib}/testmv %{flashfilepath}%{flashfilename} ./%{flashfilename}rm -f %{buildroot}/%{_bindir}/*pushd %{py3dir}%py3_installmv %{flashfilepath}%{flashfilename} ./%{flashfilename}popdfor file in %{buildroot}/%{_bindir}/*.py; domv $file `dirname $file`/`basename $file .py`done%checkmv %{flashfilename} %{flashfilepath}%{flashfilename}python2 test/alltests.pyrm %{flashfilepath}%{flashfilename}pushd %{py3dir}mv %{flashfilename} %{flashfilepath}%{flashfilename}python3 test3/alltests.pyrm %{flashfilepath}%{flashfilename}popd%files -n python2-%{modname}%license COPYING.txt licenses/*.txt%{python2_sitelib}/*%files -n python3-%{modname}%license COPYING.txt licenses/*.txt%{python3_sitelib}/*%{_bindir}/*%files help%doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt%doc THANKS.txt docs tools/editors%changelog* Fri Jan 10 2020 qinjian <qinjian18@huawei.com> - 0.14-7- Update Source0* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 0.14-6- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。