# gtk2-based gnome-askpass means no gnome1-based
%{?with_gtk:%undefine with_gnome}
-%if "%{pld_release}" == "ac"
-%define pam_ver 0.79.0
-%else
%define pam_ver 1:1.1.5-5
-%endif
Summary: OpenSSH free Secure Shell (SSH) implementation
Summary(de.UTF-8): OpenSSH - freie Implementation der Secure Shell (SSH)
Summary(es.UTF-8): Implementación libre de SSH
BuildRequires: sed >= 4.0
BuildRequires: zlib-devel >= 1.2.3
Requires: zlib >= 1.2.3
-%if "%{pld_release}" == "ac"
-Requires: filesystem >= 2.0-1
-Requires: pam >= 0.79.0
-%else
Requires: filesystem >= 3.0-11
Requires: pam >= %{pam_ver}
Suggests: openssh-blacklist
Suggests: xorg-app-xauth
-%endif
Obsoletes: ssh
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch14 -p1
%{!?with_ldap:%patch15 -p1}
-%if "%{pld_release}" == "ac"
-# fix for missing x11.pc
-%{__sed} -i -e '/pkg-config/s/ x11//' contrib/Makefile
-%endif
-
# hack since arc4random from openbsd-compat needs symbols from libssh and vice versa
sed -i -e 's#-lssh -lopenbsd-compat#-lssh -lopenbsd-compat -lssh#g' Makefile*
--with-sandbox=seccomp_filter \
%{?with_selinux:--with-selinux} \
--with-tcp-wrappers \
-%if "%{pld_release}" == "ac"
- --with-xauth=/usr/X11R6/bin/xauth
-%else
--with-xauth=%{_bindir}/xauth
-%endif
echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
cp -p %{SOURCE3} sshd.pam
install -p %{SOURCE2} sshd.init
-%if "%{pld_release}" == "ac"
-# not present in ac, no point searching it
-%{__sed} -i -e '/pam_keyinit.so/d' sshd.pam
-# openssl on ac does not have OPENSSL_HAS_ECC
-%{__sed} -i -e '/ecdsa/d' sshd.init
-%endif
-
%if %{without audit}
# remove recording user's login uid to the process attribute
%{__sed} -i -e '/pam_loginuid.so/d' sshd.pam