!7 remove python2 dependency

From: @xinghe_1
Reviewed-by: @volcanodragon,@lixiaokeng
Signed-off-by: @liuzhiqiang26
This commit is contained in:
openeuler-ci-bot 2020-10-30 17:39:35 +08:00 committed by Gitee
commit 9f85dd7959

View File

@ -1,6 +1,6 @@
Name: libblockdev
Version: 2.24
Release: 3
Release: 4
Summary: libblockdev is a C library supporting GObject introspection for manipulation of block devices
License: LGPLv2+
URL: https://github.com/storaged-project/libblockdev
@ -15,7 +15,7 @@ Patch6: 0006-lvm-Fix-memory-leak-bd_lvm_cache_create_cached_lv.patch
BuildRequires: git glib2-devel libyaml-devel libbytesize-devel parted-devel libuuid-devel ndctl-devel device-mapper-devel
BuildRequires: device-mapper-devel dmraid-devel systemd-devel nss-devel volume_key-devel >= 0.3.9-7 libblkid-devel libmount-devel
BuildRequires: cryptsetup-devel kmod-devel libxslt glib2-doc gtk-doc python2-devel python3-devel gobject-introspection-devel
BuildRequires: cryptsetup-devel kmod-devel libxslt glib2-doc gtk-doc python3-devel gobject-introspection-devel
BuildRequires: autoconf-archive
Requires: btrfs-progs device-mapper dmraid device-mapper-multipath lvm2 mdadm
Requires: device-mapper-persistent-data lvm2-dbusd >= 2.02.156 ndctl gdisk util-linux
@ -111,15 +111,6 @@ Recommends: %{name}-lvm-dbus
%description tools
Various nice storage-related tools based on libblockdev.
%package -n python2-blockdev
Summary: Python2 bindings for libblockdev
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python2-gobject-base
%{?python_provide:%python_provide python2-blockdev}
%description -n python2-blockdev
Python2 bindings for libblockdev
%package -n python3-blockdev
Summary: Python3 bindings for libblockdev
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -166,14 +157,14 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
%files tools
%{_bindir}/lvm-cache-stats
%files -n python2-blockdev
%{python2_sitearch}/gi/overrides/*
%files -n python3-blockdev
%{python3_sitearch}/gi/overrides/*
%changelog
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 2.24-4
- remove python2 dependency
* Tue Jul 28 2020 Ruijun Ge <geruijun@huawei.com> - 2.24-3
- backport upstream patches