%global _hardened_build 1 Summary: Multipurpose relay Name: socat Version: 1.8.0.0 Release: 3 License: GPLv2 Url: http://www.dest-unreach.org/socat/ Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz Patch0: filan-recovers-the-option-d-that-needs-to-be-parsed.patch Patch6000: backport-CVE-2024-54661-Arbitrary-file-overwr.patch BuildRequires: gcc openssl-devel readline-devel ncurses-devel BuildRequires: autoconf kernel-headers > 2.6.18 BuildRequires: iproute net-tools coreutils procps-ng openssl iputils %description Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these. %package_help %prep %autosetup -n %{name}-%{version} -p1 iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8 mv CHANGES.utf8 CHANGES %build %configure \ --enable-help --enable-stdio \ --enable-retry --enable-fips \ --enable-unix --enable-ip4 --enable-ip6 \ --enable-rawip --enable-tcp --enable-udp \ --enable-fdnum --enable-file --enable-creat \ --enable-listen --enable-proxy --enable-exec \ --enable-gopen --enable-pipe --enable-termios \ --enable-openssl --enable-sycls --enable-filan \ --enable-system --enable-pty --enable-readline %make_build %install %make_install mkdir -p %{buildroot}/%{_docdir}/socat cp -a *.sh %{buildroot}/%{_docdir}/socat/ %check %files %license COPYING COPYING.OpenSSL %{_bindir}/socat* %{_bindir}/filan %{_bindir}/procan %files help %doc README SECURITY BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING %doc %{_docdir}/socat/*.sh %doc %{_mandir}/man1/* %changelog * Thu Dec 12 2024 yueyuankun - 1.8.0.0-3 - Fix CVE-2024-54661 * Wed Apr 03 2024 xu_ping <707078654@qq.com> - 1.8.0.0-2 - filan recovers the option d that needs to be parsed * Wed Feb 28 2024 liyanan - 1.8.0.0-1 - update to 1.8.0.0 * Fri Nov 11 2022 dan - 1.7.4.4-1 - update to 1.7.4.4 * Thu Jul 28 2022 fushanqing - 1.7.4.3-1 - update to 1.7.4.3 * Tue Nov 19 2019 mengxian - 1.7.3.2-8 - Package init