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