rpm: replace renamed python-gluster with python2-gluster

When upgrading from < 3.10, the old python-gluster package causes
conflicts with the newly renamed python2-gluster package.

This can be solved by adding the appropriate Provides and Obsoletes to
the python2-gluster RPM. Details on renaming packages are listed on the
Fedora Packaging Guidelines.

Change-Id: Ib143bf69022c45abe2d5e8d31d3375a6b85f75da
URL: https://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages
BUG: 1414902
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: https://review.gluster.org/16649
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Anoop C S <anoopcs@redhat.com>
This commit is contained in:
Niels de Vos 2017-02-16 20:32:36 +01:00
parent 420c2d0354
commit 431011098e

View File

@ -457,6 +457,8 @@ Summary: GlusterFS python library
Group: Development/Tools
%{?python_provide:%python_provide python2-gluster}
Requires: python2
Provides: python-gluster = %{version}-%{release}
Obsoletes: python-gluster < 3.10
%description -n python2-gluster %{_python_gluster_description}
@ -1272,6 +1274,9 @@ exit 0
%endif
%changelog
* Thu Feb 16 2017 Niels de Vos <ndevos@redhat.com>
- Obsolete and Provide python-gluster for upgrading from glusterfs < 3.10
* Wed Feb 1 2017 Poornima G <pgurusid@redhat.com>
- Install /var/lib/glusterd/groups/metadata-cache by default