!9 add Obsoletes "< version" in spec

From: @XWwalker 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2022-11-18 07:11:17 +00:00 committed by Gitee
commit caef8a5bb6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: libdnet
Version: 1.14
Release: 2
Release: 3
Summary: Simple portable interface work with low-level networking routines
License: BSD
@ -35,7 +35,7 @@ Requires: %{name} = %{version}-%{release}
%package -n python3-%{name}
%{?python_provide:%python_provide python3-%{name}}
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python
Obsoletes: %{name}-python < %{version}-%{release}
Summary: Python bindings for %{name}
Requires: %{name} = %{version}-%{release}
BuildRequires: python3-devel
@ -98,6 +98,12 @@ popd
%{_mandir}/man8/*.8*
%changelog
* Fri Nov 18 2022 xingwei <xingwei14@h-partners.com> - 1.14-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add Obsoletes '< version' in spec
* Tue Nov 01 2022 xingwei <xingwei14@h-partners.com> - 1.14-2
- Type:bugfix
- ID:NA