update to 3.11.6

This commit is contained in:
sxt1001 2020-07-24 16:09:25 +08:00
parent 0737b1af48
commit c98424081d
3 changed files with 6 additions and 25 deletions

Binary file not shown.

BIN
pyparted-3.11.6.tar.gz Normal file

Binary file not shown.

View File

@ -2,35 +2,23 @@
Name: pyparted Name: pyparted
Epoch: 1 Epoch: 1
Version: 3.11.0 Version: 3.11.6
Release: 18 Release: 1
Summary: Python bindings for libparted Summary: Python bindings for libparted
License: GPLv2 License: GPLv2
Group: System Environment/Libraries Group: System Environment/Libraries
URL: https://github.com/rhinstaller/pyparted URL: https://github.com/rhinstaller/pyparted
Source0: https://github.com/rhinstaller/pyparted/archive/%{name}-%{version}.tar.gz Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc git pkgconfig e2fsprogs parted-devel >= 3.2-18 BuildRequires: gcc git pkgconfig e2fsprogs parted-devel >= 3.2-18
BuildRequires: python3-devel python3-six BuildRequires: python3-devel python3-six
BuildRequires: python2-devel python2-six
%description %description
%{name} is a set of native Python bindings for libparted. libparted is the %{name} is a set of native Python bindings for libparted. libparted is the
library portion of the GNU parted project. With pyparted, you can write library portion of the GNU parted project. With pyparted, you can write
applications that interact with disk partition tables and filesystems. applications that interact with disk partition tables and filesystems.
%package -n python2-pyparted
Summary: Python2 bindings for libparted
%{?python_provide:%python_provide python2-pyparted}
Provides: pyparted = %{epoch}:%{version}-%{release}
Provides: pyparted%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes: pyparted < %{epoch}:%{version}-%{release}
%description -n python2-pyparted
Python2 module for libparted.
%package -n python3-pyparted %package -n python3-pyparted
Summary: Python3 bindings for libparted Summary: Python3 bindings for libparted
@ -45,30 +33,20 @@ mkdir -p %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
%build %build
PYTHON=python2 %make_build
pushd %{py3dir} pushd %{py3dir}
PYTHON=python3 %make_build PYTHON=python3 %make_build
popd popd
%check %check
PYTHON=python2 make test
pushd %{py3dir} pushd %{py3dir}
PYTHON=python3 make test PYTHON=python3 make test
popd popd
%install %install
PYTHON=python2 %make_install
pushd %{py3dir} pushd %{py3dir}
PYTHON=python3 %make_install PYTHON=python3 %make_install
popd popd
%files -n python2-pyparted
%doc AUTHORS NEWS README TODO
%license COPYING
%{python2_sitearch}/_ped.so
%{python2_sitearch}/parted
%{python2_sitearch}/%{name}-%{version}-*.egg-info
%files -n python3-pyparted %files -n python3-pyparted
%doc AUTHORS NEWS README TODO %doc AUTHORS NEWS README TODO
%license COPYING %license COPYING
@ -77,5 +55,8 @@ popd
%{python3_sitearch}/%{name}-%{version}-*.egg-info %{python3_sitearch}/%{name}-%{version}-*.egg-info
%changelog %changelog
* Fri Jul 24 2020 shixuantong <shixuantong@huawei.com> - 3.11.6-1
- update to 3.11.6-1
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:3.11.0-18 * Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:3.11.0-18
- Package init - Package init