--- /abuild/max/OBS/server:database:postgresql/postgresql14/postgresql14.spec 2022-08-25 16:03:12.219644734 +0200 +++ /abuild/max/OBS/server:database:postgresql/postgresql15/postgresql15.spec 2022-09-05 17:09:25.327692199 +0200 @@ -42,6 +41,9 @@ %define requires_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") +# Only build client libraries of the latest version. +%define buildlibs (%{pgmajor} == %(rpm -q --qf %{VERSION} postgresql | cut -d. -f1)) + Name: %pgname %if "@BUILD_FLAVOR@" == "mini" %define devel devel-mini