SHA256
1
0
forked from pool/postgresql13

- Stop building the mini and lib packages as they are now coming

from postgresql14.
- Let genlists skip non-existing binaries to avoid lots of version
  conditionals in the file lists.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql13?expand=0&rev=38
This commit is contained in:
Reinhard Max 2021-09-27 14:07:11 +00:00 committed by Git OBS Bridge
parent c1e38579a0
commit 755759be37
3 changed files with 13 additions and 19 deletions

View File

@ -1,3 +0,0 @@
<multibuild>
<package>mini</package>
</multibuild>

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Sep 27 13:58:17 UTC 2021 - Reinhard Max <max@suse.com>
- Stop building the mini and lib packages as they are now coming
from postgresql14.
- Let genlists skip non-existing binaries to avoid lots of version
conditionals in the file lists.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 31 11:14:53 UTC 2021 - Reinhard Max <max@suse.com> Tue Aug 31 11:14:53 UTC 2021 - Reinhard Max <max@suse.com>

View File

@ -19,7 +19,7 @@
%define pgversion 13.4 %define pgversion 13.4
%define pgmajor 13 %define pgmajor 13
%define pgsuffix %pgmajor %define pgsuffix %pgmajor
%define buildlibs 1 %define buildlibs 0
%define tarversion %{pgversion} %define tarversion %{pgversion}
### CUT HERE ### ### CUT HERE ###
@ -554,7 +554,7 @@ install -sm 0755 src/test/regress/{pg_regress,regress.so} %buildroot%pgtestdir/r
for i in src/test/regress/{data,expected,input,output,sql}; do for i in src/test/regress/{data,expected,input,output,sql}; do
cp -r $i %buildroot%pgtestdir/regress/ cp -r $i %buildroot%pgtestdir/regress/
done done
install -m 0644 src/test/regress/{serial,parallel}_schedule %buildroot%pgtestdir/regress install -m 0644 src/test/regress/*_schedule %buildroot%pgtestdir/regress
# }}} # }}}
%endif %endif
@ -605,6 +605,9 @@ genlists ()
PGBIN=%pgbindir/$f PGBIN=%pgbindir/$f
MAN=%pgmandir/man1/$f.1* MAN=%pgmandir/man1/$f.1*
# Package only binaries that exist in this version
test -e %buildroot$PGBIN || continue
touch %buildroot$ALTBIN touch %buildroot$ALTBIN
ln -s $ALTBIN %buildroot$BIN ln -s $ALTBIN %buildroot$BIN
@ -633,22 +636,13 @@ genlists main \
pg_basebackup \ pg_basebackup \
pg_isready \ pg_isready \
pg_recvlogical \ pg_recvlogical \
%if %pgsuffix >= 90
createlang \ createlang \
droplang \ droplang \
pg_receivexlog \ pg_receivexlog \
%else
pg_receivewal \ pg_receivewal \
%if %pgsuffix == 11
pg_verify_checksums \ pg_verify_checksums \
%endif
%if %pgsuffix >= 12
pg_checksums \ pg_checksums \
%endif
%if %pgsuffix >= 13
pg_verifybackup pg_verifybackup
%endif
%endif
%find_lang plpgsql-$VLANG main.files %find_lang plpgsql-$VLANG main.files
%find_lang pgscripts-$VLANG main.files %find_lang pgscripts-$VLANG main.files
@ -657,19 +651,14 @@ genlists server \
initdb \ initdb \
pg_ctl \ pg_ctl \
pg_controldata \ pg_controldata \
%if %pgsuffix < 90
pg_resetwal \ pg_resetwal \
pg_waldump \ pg_waldump \
%else
pg_resetxlog \ pg_resetxlog \
%endif
postgres \ postgres \
postmaster postmaster
genlists contrib \ genlists contrib \
%if %pgsuffix > 90
pg_xlogdump \ pg_xlogdump \
%endif
oid2name \ oid2name \
pg_archivecleanup \ pg_archivecleanup \
pg_standby \ pg_standby \