加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
socat.spec 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
yueyuankun 提交于 2024-12-12 18:25 . Update to 1.8.0.2, fix CVE-2024-54661
%global _hardened_build 1
Summary: Multipurpose relay
Name: socat
Version: 1.8.0.2
Release: 1
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
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 <yueyuankun@kylinos.cn> - 1.8.0.2-1
- Update to 1.8.0.2
- 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 <liyanan61@h-partners.com> - 1.8.0.0-1
- update to 1.8.0.0
* Fri Nov 11 2022 dan <fzhang@zhixundn.com> - 1.7.4.4-1
- update to 1.7.4.4
* Thu Jul 28 2022 fushanqing <fushanqing@kylinos.cn> - 1.7.4.3-1
- update to 1.7.4.3
* Tue Nov 19 2019 mengxian <mengxian@huawei.com> - 1.7.3.2-8
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化