SHA256
1
0
forked from pool/postgresql12

- 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
This commit is contained in:
Reinhard Max 2020-02-06 17:25:13 +00:00 committed by Git OBS Bridge
parent 587aa12914
commit 2835578351
2 changed files with 37 additions and 35 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 6 17:13:41 UTC 2020 - Reinhard Max <max@suse.com>
- 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 <mrueckert@suse.de>

View File

@ -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