!3 drop python2 subpackage
From: @wangxiao65 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
d73a774c01
@ -1,25 +1,17 @@
|
|||||||
Name: python-path
|
Name: python-path
|
||||||
Version: 5.2
|
Version: 5.2
|
||||||
Release: 15
|
Release: 16
|
||||||
Summary: Python module wrapper for path
|
Summary: Python module wrapper for path
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/path.py
|
URL: https://pypi.python.org/pypi/path.py
|
||||||
Source0: https://pypi.python.org/packages/source/p/path.py/path.py-%{version}.zip
|
Source0: https://pypi.python.org/packages/source/p/path.py/path.py-%{version}.zip
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel pytest python3-devel python3-setuptools python3-pytest
|
BuildRequires: python3-devel python3-setuptools python3-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package implements path objects as first-class entities,
|
This package implements path objects as first-class entities,
|
||||||
allowing common operations on files to be invoked on those path objects directly.
|
allowing common operations on files to be invoked on those path objects directly.
|
||||||
|
|
||||||
%package -n python2-path
|
|
||||||
Summary: Python2 module wrapper for path
|
|
||||||
%{?python_provide:%python_provide python2-path}
|
|
||||||
|
|
||||||
%description -n python2-path
|
|
||||||
This package implements a path objects as first-class entities,
|
|
||||||
allowing common operations on files to be invoked on those path objects directly.
|
|
||||||
|
|
||||||
%package -n python3-path
|
%package -n python3-path
|
||||||
Summary: Python3 module wrapper for path
|
Summary: Python3 module wrapper for path
|
||||||
|
|
||||||
@ -32,26 +24,21 @@ allowing common operations on files to be invoked on those path objects directly
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
%py2_build
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd build/lib
|
cd build/lib
|
||||||
LC_ALL=en_US.UTF-8 py.test-2 -v
|
|
||||||
LC_ALL=en_US.UTF-8 %{_bindir}/py.test-%{python3_version} -v
|
LC_ALL=en_US.UTF-8 %{_bindir}/py.test-%{python3_version} -v
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-path
|
|
||||||
%doc CHANGES.rst README.rst
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-path
|
%files -n python3-path
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 5.2-16
|
||||||
|
- drop python2 subpackage
|
||||||
|
|
||||||
* Wed Mar 4 2020 zhujunhao <zhujunhao5@huawei.com> - 5.2-15
|
* Wed Mar 4 2020 zhujunhao <zhujunhao5@huawei.com> - 5.2-15
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user