add version numbers to Obsoletes

The ceph-devel and python-ceph packages were split out, but there were
no version numbers added to the Obsoletes during the split.

This means that we obsolete packages that are far newer than us. This
impacts packages coming from upstream's "gitbuilder" system (for
example), as well as any other upstream RPMs until this package split is
done upstream.

Add version numbers to the Obsoletes. I've chosen to use a
version+release number that's lower than what we currently ship in
Fedora (0.87-1), but newer than what we shipped in the last Fedora
update (0.80.6-1).
This commit is contained in:
Ken Dreyer 2015-02-16 11:41:42 -07:00
parent 2a0aaf952c
commit a6871cb0d5

View File

@ -12,7 +12,7 @@
#################################################################################
Name: ceph
Version: 0.87.1
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 1
Summary: User space components of the Ceph file system
License: GPLv2
@ -196,7 +196,7 @@ Summary: RADOS headers
Group: Development/Libraries
License: LGPL-2.0
Requires: librados2 = %{epoch}:%{version}-%{release}
Obsoletes: ceph-devel
Obsoletes: ceph-devel < 1:0.80.6-1
%description -n librados2-devel
This package contains libraries and headers needed to develop programs
that use RADOS object store.
@ -206,7 +206,7 @@ Summary: Python libraries for the RADOS object store
Group: System Environment/Libraries
License: LGPL-2.0
Requires: librados2 = %{epoch}:%{version}-%{release}
Obsoletes: python-ceph
Obsoletes: python-ceph < 1:0.80.6-1
%if 0%{defined suse_version}
%py_requires
%endif
@ -254,7 +254,7 @@ Group: Development/Libraries
License: LGPL-2.0
Requires: librbd1 = %{epoch}:%{version}-%{release}
Requires: librados2-devel = %{epoch}:%{version}-%{release}
Obsoletes: ceph-devel
Obsoletes: ceph-devel < 1:0.80.6-1
%description -n librbd1-devel
This package contains libraries and headers needed to develop programs
that use RADOS block device.
@ -265,7 +265,7 @@ Group: System Environment/Libraries
License: LGPL-2.0
Requires: librbd1 = %{epoch}:%{version}-%{release}
Requires: python-rados = %{epoch}:%{version}-%{release}
Obsoletes: python-ceph
Obsoletes: python-ceph < 1:0.80.6-1
%description -n python-rbd
This package contains Python libraries for interacting with Cephs RADOS
block device.
@ -290,7 +290,7 @@ Group: Development/Libraries
License: LGPL-2.0
Requires: libcephfs1 = %{epoch}:%{version}-%{release}
Requires: librados2-devel = %{epoch}:%{version}-%{release}
Obsoletes: ceph-devel
Obsoletes: ceph-devel < 1:0.80.6-1
%description -n libcephfs1-devel
This package contains libraries and headers needed to develop programs
that use Cephs distributed file system.
@ -301,7 +301,7 @@ Group: System Environment/Libraries
License: LGPL-2.0
Requires: libcephfs1 = %{epoch}:%{version}-%{release}
Requires: python-rados = %{epoch}:%{version}-%{release}
Obsoletes: python-ceph
Obsoletes: python-ceph < 1:0.80.6-1
%description -n python-cephfs
This package contains Python libraries for interacting with Cephs distributed
file system.
@ -917,6 +917,9 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
%files -n python-ceph-compat
%changelog
* Wed Apr 01 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1:0.87.1-3
- add version numbers to Obsoletes (RHBZ #1193182)
* Wed Mar 4 2015 Boris Ranto <branto@redhat.com> - 1:0.87.1-2
- Perform a hardened build
- Use git-formatted patches