obsolete anything < %majorversion + 1

Resolves: rhbz#1707462
Version: 11.3-2
This commit is contained in:
Pavel Raiskup 2019-05-10 16:41:28 +02:00
parent 477e4bf001
commit 1674298550

View File

@ -1,9 +1,10 @@
%global majorversion 11 %global majorversion 11
%global obsoletes_version %( echo $(( %majorversion + 1 )) )
Summary: PostgreSQL client library Summary: PostgreSQL client library
Name: libpq Name: libpq
Version: %majorversion.3 Version: %majorversion.3
Release: 1%{?dist} Release: 2%{?dist}
License: PostgreSQL License: PostgreSQL
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
@ -26,7 +27,7 @@ BuildRequires: openldap-devel
BuildRequires: gettext BuildRequires: gettext
BuildRequires: multilib-rpm-config BuildRequires: multilib-rpm-config
Obsoletes: postgresql-libs < %majorversion Obsoletes: postgresql-libs < %obsoletes_version
Provides: postgresql-libs = %version-%release Provides: postgresql-libs = %version-%release
@ -45,7 +46,7 @@ Requires: %name%{?_isa} = %version-%release
# most of the depending packages and the rest (those which want to build server # most of the depending packages and the rest (those which want to build server
# modules) need to be fixed to require postgresql-server-devel package. # modules) need to be fixed to require postgresql-server-devel package.
Provides: postgresql-devel = %version-%release Provides: postgresql-devel = %version-%release
Obsoletes: postgresql-devel < %majorversion Obsoletes: postgresql-devel < %obsoletes_version
%description devel %description devel
The libpq package provides the essential shared library for any PostgreSQL The libpq package provides the essential shared library for any PostgreSQL
@ -127,6 +128,9 @@ find_lang_bins %name-devel.lst pg_config
%changelog %changelog
* Fri May 10 2019 Pavel Raiskup <praiskup@redhat.com> - 11.3-2
- obsolete anything < %%majorversion+1
* Thu May 09 2019 Patrik Novotný <panovotn@redhat.com> - 11.3-1 * Thu May 09 2019 Patrik Novotný <panovotn@redhat.com> - 11.3-1
- New upstream version 11.3 - New upstream version 11.3