summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openssh9.4p1_for_openEuler.spec73
1 files changed, 26 insertions, 47 deletions
diff --git a/openssh9.4p1_for_openEuler.spec b/openssh9.4p1_for_openEuler.spec
index a042d79..95f8705 100644
--- a/openssh9.4p1_for_openEuler.spec
+++ b/openssh9.4p1_for_openEuler.spec
@@ -95,12 +95,14 @@ Obsoletes: ssh
%else
Requires: initscripts >= 5.20
%endif
-BuildRequires: gtk2-devel libX11-devel pam-devel openldap-devel autoconf automake perl-interpreter perl-generators
-BuildRequires: zlib-devel audit-libs-devel >= 2.0.5 util-linux groff pam-devel
-BuildRequires: openssl-devel openssl perl-podlators systemd-devel gcc p11-kit-devel krb5-devel
-BuildRequires: libedit-devel ncurses-devel libselinux-devel >= 2.3-5 audit-libs >= 1.0.8 xauth gnupg2
-Recommends: p11-kit
-BuildRequires: /sbin/nologin
+BuildRequires: perl
+%if %{compat_openssl}
+BuildRequires: compat-openssl10-devel
+%else
+BuildRequires: openssl-devel >= 1.0.1
+##BuildRequires: openssl-devel < 1.1
+%endif
+BuildRequires: /bin/login
%if ! %{build6x}
BuildRequires: glibc-devel, pam
%else
@@ -152,42 +154,19 @@ Obsoletes: ssh-extras
%description
SSH (Secure SHell) is a program for logging into and executing
-commands on a remote machine. SSH is intended to replace rlogin and
-rsh, and to provide secure encrypted communications between two
-untrusted hosts over an insecure network. X11 connections and
-arbitrary TCP/IP ports can also be forwarded over the secure channel.
-
-OpenSSH is OpenBSD's version of the last free version of SSH, bringing
-it up to date in terms of security and features, as well as removing
-all patented algorithms to separate libraries.
-
-This package includes the core files necessary for both the OpenSSH
-client and server. To make this package useful, you should also
-install openssh-clients, openssh-server, or both.
%description clients
-OpenSSH is a free version of SSH (Secure SHell), a program for logging
-into and executing commands on a remote machine. This package includes
-the clients necessary to make encrypted connections to SSH servers.
-You'll also need to install the openssh package on OpenSSH clients.
+OpenSSH is a free version of SSH (Secure SHell)
%description server
-OpenSSH is a free version of SSH (Secure SHell), a program for logging
-into and executing commands on a remote machine. This package contains
-the secure shell daemon (sshd). The sshd daemon allows SSH clients to
-securely connect to your SSH server. You also need to have the openssh
-package installed.
+OpenSSH is a free version of SSH (Secure SHell)
%description askpass
-OpenSSH is a free version of SSH (Secure SHell), a program for logging
-into and executing commands on a remote machine. This package contains
-an X11 passphrase dialog for OpenSSH.
+OpenSSH is a free version of SSH (Secure SHell)
%description askpass-gnome
-OpenSSH is a free version of SSH (Secure SHell), a program for logging
-into and executing commands on a remote machine. This package contains
-an X11 passphrase dialog for OpenSSH and the GNOME GUI desktop
-environment.
+OpenSSH is a free version of SSH (Secure SHell)
+
%prep
@@ -203,20 +182,20 @@ CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
%endif
%configure \
- --sysconfdir=%{_sysconfdir}/ssh --libexecdir=%{_libexecdir}/openssh \
- --datadir=%{_datadir}/openssh --with-default-path=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin \
- --with-superuser-path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin \
- --with-privsep-path=%{_var}/empty/sshd --disable-strip \
- --without-zlib-version-check --with-ssl-engine --with-ipaddr-display \
- --with-pie=no --without-hardening --with-systemd --with-default-pkcs11-provider=yes \
- --with-pam --with-selinux --with-audit=linux --with-security-key-buildin=yes \
-%ifnarch riscv64 loongarch64 sw_64
- --with-sandbox=seccomp_filter \
+ --sysconfdir=%{_sysconfdir}/ssh \
+ --libexecdir=%{_libexecdir}/openssh \
+ --datadir=%{_datadir}/openssh \
+ --with-default-path=/usr/local/bin:/bin:/usr/bin \
+ --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
+ --with-privsep-path=%{_var}/empty/sshd \
+ --with-openssl-includes=/usr/openssl/include/openssl \
+ --with-ssl-dir=/usr/openssl \
+ --mandir=%{_mandir} \
+ --with-mantype=man \
+ --disable-strip \
+%if %{scard}
+ --with-smartcard \
%endif
- --with-kerberos5${krb5_prefix:+=${krb5_prefix}} --with-libedit
-
-
-
%if %{rescue}
--without-pam \
%else