Remove python2-mistune subpackage and remove python2 related buildrequire
This commit is contained in:
parent
3fba0a5579
commit
51fed94dc9
@ -1,12 +1,11 @@
|
|||||||
Name: python-mistune
|
Name: python-mistune
|
||||||
Version: 0.8.3
|
Version: 0.8.3
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A Python Markdown Parser
|
Summary: A Python Markdown Parser
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/lepture/mistune
|
URL: https://github.com/lepture/mistune
|
||||||
Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz
|
Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-Cython python2-devel python2-nose python2-setuptools
|
|
||||||
BuildRequires: python3-Cython python3-devel python3-nose python3-setuptools
|
BuildRequires: python3-Cython python3-devel python3-nose python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -14,16 +13,6 @@ The python-mistune package is a fast yet powerful Python Markdown
|
|||||||
parser with renderers and plugins, compatible with sane CommonMark
|
parser with renderers and plugins, compatible with sane CommonMark
|
||||||
rules.
|
rules.
|
||||||
|
|
||||||
%package -n python2-mistune
|
|
||||||
Summary: A Python Markdown Parser
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-mistune}
|
|
||||||
|
|
||||||
%description -n python2-mistune
|
|
||||||
The python-mistune package is a fast yet powerful Python Markdown
|
|
||||||
parser with renderers and plugins, compatible with sane CommonMark
|
|
||||||
rules.
|
|
||||||
|
|
||||||
%package -n python3-mistune
|
%package -n python3-mistune
|
||||||
Summary: A Python Markdown Parser
|
Summary: A Python Markdown Parser
|
||||||
|
|
||||||
@ -34,42 +23,17 @@ rules.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n mistune-%{version} -p1
|
%autosetup -n mistune-%{version} -p1
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -r . %{py3dir}
|
|
||||||
|
|
||||||
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
popd
|
|
||||||
|
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
popd
|
|
||||||
|
|
||||||
%files -n python2-mistune
|
|
||||||
%doc LICENSE README.rst
|
|
||||||
%{python2_sitearch}/mistune.*
|
|
||||||
%{python2_sitearch}/mistune-%{version}-py?.?.egg-info
|
|
||||||
|
|
||||||
%files -n python3-mistune
|
%files -n python3-mistune
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
@ -78,5 +42,8 @@ popd
|
|||||||
%{python3_sitearch}/__pycache__/mistune*
|
%{python3_sitearch}/__pycache__/mistune*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 22 2021 wangyue <wangyue92@huawei.com> - 0.8.3-7
|
||||||
|
- Remove python2-mistune subpackage and remove python2 related buildrequire
|
||||||
|
|
||||||
* Thu Mar 05 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.8.3-6
|
* Thu Mar 05 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.8.3-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user