Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package postgresql for openSUSE:Factory checked in at 2021-12-06 23:59:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/postgresql (Old) and /work/SRC/openSUSE:Factory/.postgresql.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "postgresql" Mon Dec 6 23:59:23 2021 rev:62 rq:935203 version:14 Changes: -------- --- /work/SRC/openSUSE:Factory/postgresql/postgresql.changes 2021-10-12 21:48:09.079768476 +0200 +++ /work/SRC/openSUSE:Factory/.postgresql.new.31177/postgresql.changes 2021-12-07 00:00:29.116330338 +0100 @@ -1,0 +2,24 @@ +Thu Dec 2 14:08:12 UTC 2021 - Reinhard Max <[email protected]> + +- Move the dependency of llvmjit-devel on clang and llvm to the + implementation packages where we can depend on the correct + versions. + +------------------------------------------------------------------- +Thu Dec 2 11:45:03 UTC 2021 - Marcus Rueckert <[email protected]> + +- fix postgresql_has_llvm usage + +------------------------------------------------------------------- +Mon Nov 15 12:09:10 UTC 2021 - Marcus Rueckert <[email protected]> + +- First round of changes to make it easier to build extensions for + - add postgresql-llvmjit-devel subpackage: + This package will pull in clang and llvm if the distro has a + recent enough version, otherwise it will just pull + postgresql-server-devel. + - add postgresql macros to the postgresql-server-devel package + those cover all the variables from pg_config and some macros + to remove repitition from the spec files + +------------------------------------------------------------------- New: ---- postgresql-extensions-macros ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ postgresql.spec ++++++ --- /var/tmp/diff_new_pack.CiwfK7/_old 2021-12-07 00:00:30.412325754 +0100 +++ /var/tmp/diff_new_pack.CiwfK7/_new 2021-12-07 00:00:30.420325726 +0100 @@ -18,6 +18,10 @@ %define pgmajor 14 %define defaultpackage postgresql%pgmajor +%if ! %{defined _rpmmacrodir} +%define _rpmmacrodir %{_rpmconfigdir}/macros.d +%endif + #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates @@ -29,7 +33,8 @@ %bcond_with systemd %endif -%if 0%{?suse_version} >= 1500 && %pgmajor >= 11 && %pgmajor < 90 +# We do not need the pgmajor comparison here as it is irrelevant which version this package has +%if 0%{?suse_version} >= 1500 %bcond_without llvm %else %bcond_with llvm @@ -69,6 +74,7 @@ Source5: postgresql-bashprofile Source6: postgresql-script Source7: postgresql-install-alternatives +Source8: postgresql-extensions-macros %if 0%{?suse_version} > 1100 %define fwdir /etc/sysconfig/SuSEfirewall2.d/services @@ -157,6 +163,24 @@ deforming into native code, with the goal of accelerating analytics queries. +%package llvmjit-devel +Summary: Helper package to pull all dependencies to build with llvm support +Group: Productivity/Databases/Servers +Provides: postgresql-llvmjit-devel-noarch = %version-%release +Requires: postgresql-server-devel-noarch +Requires: postgresql-llvmjit-devel-implementation + +%description llvmjit-devel +PostgreSQL is an advanced object-relational database management system +that supports an extended subset of the SQL standard, including +transactions, foreign keys, sub-queries, triggers, and user-defined +types and functions. + +This package will pull all the dependencies to build extensions with llvm +support if the base distro has llvm enabled. + +Otherwise it will just pull the postgresqlXY-server-devel package + %package test Summary: The test suite for PostgreSQL Group: Productivity/Databases/Servers @@ -319,6 +343,9 @@ ln -sf /etc/init.d/postgresql %buildroot/usr/sbin/rcpostgresql %endif +install -D -m 0644 %{SOURCE8} %{buildroot}%{_rpmmacrodir}/macros.%{name} + + %define eflag /run/postgresql-was-enabled %define aflag /run/postgresql-was-running @@ -445,11 +472,16 @@ %files server-devel %defattr(-,root,root,-) %doc README +%{_rpmmacrodir}/macros.%{name} %if %{with llvm} %files llvmjit %defattr(-,root,root,-) %doc README + +%files llvmjit-devel +%defattr(-,root,root,-) +%doc README %endif %files plperl ++++++ postgresql-extensions-macros ++++++ # # License AGPL-3.0 # # keep in sync with the postgresqlXY packages # %pg_config_bindir %(pg_config --bindir) %pg_config_docdir %(pg_config --docdir) %pg_config_htmldir %(pg_config --htmldir) %pg_config_includedir %(pg_config --includedir) %pg_config_pkgincludedir %(pg_config --pkgincludedir) %pg_config_includedir_server %(pg_config --includedir-server) %pg_config_libdir %(pg_config --libdir) %pg_config_pkglibdir %(pg_config --pkglibdir) %pg_config_localedir %(pg_config --localedir) %pg_config_mandir %(pg_config --mandir) %pg_config_sharedir %(pg_config --sharedir) %pg_config_sysconfdir %(pg_config --sysconfdir) %pg_config_pgxs %(pg_config --pgxs) %pg_config_configure %(pg_config --configure) %pg_config_cc %(pg_config --cc) %pg_config_cppflags %(pg_config --cppflags) %pg_config_cflags %(pg_config --cflags) %pg_config_cflags_sl %(pg_config --cflags_sl) %pg_config_ldflags %(pg_config --ldflags) %pg_config_ldflags_ex %(pg_config --ldflags_ex) %pg_config_ldflags_sl %(pg_config --ldflags_sl) %pg_config_libs %(pg_config --libs) %make_pgxs \ make USE_PGXS=1 %{?_smp_mflags} \ %nil %make_pgxs_install \ %make_install USE_PGXS=1 \ %nil %pg_obsolete_llvm_subpackage \ Provides: %{pg_name}-%{ext_name}-llvmjit = %{version}-%{release} \ Obsoletes: %{pg_name}-%{ext_name}-llvmjit < %{version}-%{release} \ %nil %pg_server_requires \ %requires_eq %{pg_name}-server \ %if %{postgresql_has_llvm} \ Recommends: %{pg_name}-llvmjit \ %pg_obsolete_llvm_subpackage \ %endif \ %nil %pg_version_from_name %define pg_version %( echo %{?pg_name} | sed -e 's|^postgresql||g' )%{nil} %postgresql_has_llvm (0%{?suse_version} >= 1500 && 0%{?pg_version} >= 11 && 0%{?pg_version} < 90)
