From 283557835186f6562b744020667d5a4803efc57f089677c9e0966f5b71b7220b Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Thu, 6 Feb 2020 17:25:13 +0000 Subject: [PATCH] - Remove unused build dependencies from the client libs package: LVM, icu, selinux, systemd. - Drop conditionals for suse_version 1110/1120. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql12?expand=0&rev=5 --- postgresql12.changes | 7 +++++ postgresql12.spec | 65 ++++++++++++++++++++------------------------ 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/postgresql12.changes b/postgresql12.changes index ae88a0f..b6103f3 100644 --- a/postgresql12.changes +++ b/postgresql12.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 6 17:13:41 UTC 2020 - Reinhard Max + +- Remove unused build dependencies from the client libs package: + LVM, icu, selinux, systemd. +- Drop conditionals for suse_version 1110/1120. + ------------------------------------------------------------------- Fri Dec 20 14:46:29 UTC 2019 - Marcus Rueckert diff --git a/postgresql12.spec b/postgresql12.spec index 4639392..e9c9f84 100644 --- a/postgresql12.spec +++ b/postgresql12.spec @@ -1,7 +1,7 @@ # -# spec file for package postgresql11 +# spec file for package postgresql12 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,6 @@ # -%if 0%{?suse_version} >= 1300 -%bcond_without systemd -%else -%bcond_with systemd -%endif -%if 0%{?suse_version} >= 1500 -%bcond_without systemd_notify -%bcond_without llvm -%else -%bcond_with systemd_notify -%bcond_with llvm -%endif - -%bcond_without selinux -%bcond_without icu -%ifnarch %arm -%bcond_without check -%else -%bcond_with check -%endif - %define pgmajor 12 %define pgname postgresql%pgmajor %define priority %{pgmajor} @@ -67,6 +46,33 @@ Name: %pgname %define builddevel 0 %endif +%if 0%{?suse_version} >= 1300 && %buildmain +%bcond_without systemd +%else +%bcond_with systemd +%endif +%if 0%{?suse_version} >= 1500 && %buildmain +%bcond_without systemd_notify +%bcond_without llvm +%else +%bcond_with systemd_notify +%bcond_with llvm +%endif + +%if %buildmain +%bcond_without selinux +%bcond_without icu +%else +%bcond_with selinux +%bcond_with icu +%endif + +%ifnarch %arm +%bcond_without check +%else +%bcond_with check +%endif + %if %buildmain BuildRequires: docbook_4 BuildRequires: gettext-devel @@ -97,11 +103,7 @@ BuildRequires: libxslt-devel BuildRequires: openldap2-devel BuildRequires: openssl-devel BuildRequires: pkg-config -%if 0%{?suse_version} == 1110 -BuildRequires: krb5-devel -%else BuildRequires: pkgconfig(krb5) -%endif %if %{with systemd_notify} BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) @@ -129,7 +131,7 @@ Patch4: postgresql-plperl-keep-rpath.patch Patch6: postgresql-testsuite-int8.sql.patch Patch8: postgresql-testsuite-keep-results-file.patch Patch9: postgresql-var-run-socket.patch -Url: https://www.postgresql.org/ +URL: https://www.postgresql.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: postgresql = %version-%release Provides: postgresql-implementation = %version-%release @@ -268,11 +270,7 @@ Requires: openssl-devel Requires: pam-devel Requires: readline-devel Requires: zlib-devel -%if 0%{?suse_version} == 1110 -Requires: krb5-devel -%else Requires: pkgconfig(krb5) -%endif %if %{with selinux} Requires: libselinux-devel %endif @@ -324,9 +322,6 @@ Summary: HTML Documentation for PostgreSQL Group: Productivity/Databases/Tools Provides: postgresql-docs-implementation = %version-%release Requires: postgresql-docs-noarch >= %pgmajor -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%endif %description docs PostgreSQL is an advanced object-relational database management system