Disable NIS support for RHEL9+ (patch from fjanus@redhat.com)
This commit is contained in:
parent
13e6f7f81f
commit
46e2f52e77
21
postfix.spec
21
postfix.spec
@ -49,7 +49,7 @@
|
|||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.5.9
|
Version: 3.5.9
|
||||||
Release: 4%{?dist}
|
Release: 6%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
|
License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||||
@ -104,6 +104,10 @@ BuildRequires: make
|
|||||||
BuildRequires: libdb-devel, perl-generators, pkgconfig, zlib-devel
|
BuildRequires: libdb-devel, perl-generators, pkgconfig, zlib-devel
|
||||||
BuildRequires: systemd-units, libicu-devel, libnsl2-devel
|
BuildRequires: systemd-units, libicu-devel, libnsl2-devel
|
||||||
BuildRequires: gcc, m4, findutils
|
BuildRequires: gcc, m4, findutils
|
||||||
|
%if 0%{?rhel} >= 9
|
||||||
|
%else
|
||||||
|
BuildRequires: libnsl2-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?with_ldap:BuildRequires: openldap-devel}
|
%{?with_ldap:BuildRequires: openldap-devel}
|
||||||
%{?with_lmdb:BuildRequires: lmdb-devel}
|
%{?with_lmdb:BuildRequires: lmdb-devel}
|
||||||
@ -250,7 +254,11 @@ done
|
|||||||
%build
|
%build
|
||||||
unset AUXLIBS AUXLIBS_LDAP AUXLIBS_LMDB AUXLIBS_PCRE AUXLIBS_MYSQL AUXLIBS_PGSQL AUXLIBS_SQLITE AUXLIBS_CDB
|
unset AUXLIBS AUXLIBS_LDAP AUXLIBS_LMDB AUXLIBS_PCRE AUXLIBS_MYSQL AUXLIBS_PGSQL AUXLIBS_SQLITE AUXLIBS_CDB
|
||||||
CCARGS="-fPIC -fcommon"
|
CCARGS="-fPIC -fcommon"
|
||||||
|
%if 0%{?rhel} >= 9
|
||||||
|
AUXLIBS=""
|
||||||
|
%else
|
||||||
AUXLIBS="-lnsl"
|
AUXLIBS="-lnsl"
|
||||||
|
%endif
|
||||||
|
|
||||||
%ifarch s390 s390x ppc
|
%ifarch s390 s390x ppc
|
||||||
CCARGS="${CCARGS} -fsigned-char"
|
CCARGS="${CCARGS} -fsigned-char"
|
||||||
@ -305,7 +313,9 @@ CCARGS="${CCARGS} -fsigned-char"
|
|||||||
|
|
||||||
CCARGS="${CCARGS} -DDEF_CONFIG_DIR=\\\"%{postfix_config_dir}\\\""
|
CCARGS="${CCARGS} -DDEF_CONFIG_DIR=\\\"%{postfix_config_dir}\\\""
|
||||||
CCARGS="${CCARGS} $(getconf LFS_CFLAGS)"
|
CCARGS="${CCARGS} $(getconf LFS_CFLAGS)"
|
||||||
|
%if 0%{?rhel} >= 9
|
||||||
|
CCARGS="${CCARGS} -DNO_NIS"
|
||||||
|
%endif
|
||||||
LDFLAGS="%{?__global_ldflags} %{?_hardened_build:-Wl,-z,relro,-z,now}"
|
LDFLAGS="%{?__global_ldflags} %{?_hardened_build:-Wl,-z,relro,-z,now}"
|
||||||
|
|
||||||
# SHLIB_RPATH is needed to find private libraries
|
# SHLIB_RPATH is needed to find private libraries
|
||||||
@ -776,6 +786,13 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 24 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.5.9-6
|
||||||
|
- Disable NIS support for RHEL9+ (patch from fjanus@redhat.com)
|
||||||
|
|
||||||
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2:3.5.9-5
|
||||||
|
- Rebuilt for updated systemd-rpm-macros
|
||||||
|
See https://pagure.io/fesco/issue/2583.
|
||||||
|
|
||||||
* Fri Feb 19 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.5.9-4
|
* Fri Feb 19 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.5.9-4
|
||||||
- Fixed sysvinit conditionals for RHEL
|
- Fixed sysvinit conditionals for RHEL
|
||||||
Resolves: rhbz#1930709
|
Resolves: rhbz#1930709
|
||||||
|
Loading…
Reference in New Issue
Block a user