From 1674298550099dba9c5756a2fbecca287e48a6bc Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 10 May 2019 16:41:28 +0200 Subject: [PATCH] obsolete anything < %majorversion + 1 Resolves: rhbz#1707462 Version: 11.3-2 --- libpq.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libpq.spec b/libpq.spec index 25acb64..1779f55 100644 --- a/libpq.spec +++ b/libpq.spec @@ -1,9 +1,10 @@ %global majorversion 11 +%global obsoletes_version %( echo $(( %majorversion + 1 )) ) Summary: PostgreSQL client library Name: libpq Version: %majorversion.3 -Release: 1%{?dist} +Release: 2%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -26,7 +27,7 @@ BuildRequires: openldap-devel BuildRequires: gettext BuildRequires: multilib-rpm-config -Obsoletes: postgresql-libs < %majorversion +Obsoletes: postgresql-libs < %obsoletes_version 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 # modules) need to be fixed to require postgresql-server-devel package. Provides: postgresql-devel = %version-%release -Obsoletes: postgresql-devel < %majorversion +Obsoletes: postgresql-devel < %obsoletes_version %description devel The libpq package provides the essential shared library for any PostgreSQL @@ -127,6 +128,9 @@ find_lang_bins %name-devel.lst pg_config %changelog +* Fri May 10 2019 Pavel Raiskup - 11.3-2 +- obsolete anything < %%majorversion+1 + * Thu May 09 2019 Patrik Novotný - 11.3-1 - New upstream version 11.3