!4 remove python2 dependency
From: @xinghe_1 Reviewed-by: @lixiaokeng,@volcanodragon Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
70014dbf97
@ -1,15 +1,13 @@
|
|||||||
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
||||||
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
|
|
||||||
Name: python-configobj
|
Name: python-configobj
|
||||||
Version: 5.0.6
|
Version: 5.0.6
|
||||||
Release: 15
|
Release: 16
|
||||||
Summary: ConfigObj is a simple but powerful config file reader and writer
|
Summary: ConfigObj is a simple but powerful config file reader and writer
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://configobj.readthedocs.org/
|
URL: http://configobj.readthedocs.org/
|
||||||
Source0: https://github.com/DiffSK/configobj/archive/v%{version}.tar.gz
|
Source0: https://github.com/DiffSK/configobj/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires:python2-devel python2-pytest python2-setuptools python2-six
|
|
||||||
BuildRequires:python3-devel python3-pytest python3-setuptools python3-six git
|
BuildRequires:python3-devel python3-pytest python3-setuptools python3-six git
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -30,13 +28,6 @@ It has lots of other features though :
|
|||||||
* Many useful methods and options for working with configuration files (like the 'reload' method)
|
* Many useful methods and options for working with configuration files (like the 'reload' method)
|
||||||
* Full Unicode support
|
* Full Unicode support
|
||||||
|
|
||||||
%package -n python2-configobj
|
|
||||||
Summary: config file reader and writer
|
|
||||||
Requires: python2-six
|
|
||||||
%{?python_provide:%python_provide python2-configobj}
|
|
||||||
|
|
||||||
%description -n python2-configobj
|
|
||||||
config file reader and writer
|
|
||||||
|
|
||||||
%package -n python3-configobj
|
%package -n python3-configobj
|
||||||
Summary: config file reader and writer
|
Summary: config file reader and writer
|
||||||
@ -50,28 +41,23 @@ config file reader and writer
|
|||||||
%autosetup -n configobj-%{version} -p1 -Sgit
|
%autosetup -n configobj-%{version} -p1 -Sgit
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONWARNINGS=always
|
export PYTHONWARNINGS=always
|
||||||
%{__python2} test_configobj.py
|
|
||||||
%{__python3} test_configobj.py
|
%{__python3} test_configobj.py
|
||||||
|
|
||||||
%files -n python2-configobj
|
|
||||||
%doc README.md
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-configobj
|
%files -n python3-configobj
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 5.0.6-16
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
* Sat Sep 7 2019 wubo<wubo40@huawei.com> - 5.0.6-15
|
* Sat Sep 7 2019 wubo<wubo40@huawei.com> - 5.0.6-15
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user