|
|
240106 |
# tests requires network and not all tests pass
|
|
|
240106 |
%global enable_tests 0
|
|
|
240106 |
%global _hardened_build 1
|
|
|
240106 |
|
|
|
240106 |
Summary: Bidirectional data relay between two data channels ('netcat++')
|
|
|
240106 |
Name: socat
|
|
|
240106 |
Version: 1.7.3.2
|
|
|
240106 |
Release: 2%{?dist}
|
|
|
240106 |
License: GPLv2
|
|
|
240106 |
Url: http://www.dest-unreach.org/%{name}
|
|
|
240106 |
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
|
|
|
240106 |
Group: Applications/Internet
|
|
|
240106 |
BuildRequires: openssl-devel readline-devel ncurses-devel
|
|
|
240106 |
BuildRequires: autoconf kernel-headers > 2.6.18 tcp_wrappers-devel
|
|
|
240106 |
%if %{enable_tests}
|
|
|
240106 |
BuildRequires: net-tools openssl iputils iproute
|
|
|
240106 |
%endif
|
|
|
240106 |
|
|
|
240106 |
Patch1: socat-1.7.3.1-test.patch
|
|
|
240106 |
|
|
|
240106 |
%description
|
|
|
240106 |
Socat is a relay for bidirectional data transfer between two independent data
|
|
|
240106 |
channels. Each of these data channels may be a file, pipe, device (serial line
|
|
|
240106 |
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
|
|
|
240106 |
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
|
|
|
240106 |
line editor (readline), a program, or a combination of two of these.
|
|
|
240106 |
|
|
|
240106 |
%prep
|
|
|
240106 |
%setup -q
|
|
|
240106 |
iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8
|
|
|
240106 |
mv CHANGES.utf8 CHANGES
|
|
|
240106 |
%patch1 -p1
|
|
|
240106 |
|
|
|
240106 |
%build
|
|
|
240106 |
%configure \
|
|
|
240106 |
--enable-help --enable-stdio \
|
|
|
240106 |
--enable-fdnum --enable-file --enable-creat \
|
|
|
240106 |
--enable-gopen --enable-pipe --enable-termios \
|
|
|
240106 |
--enable-unix --enable-ip4 --enable-ip6 \
|
|
|
240106 |
--enable-rawip --enable-tcp --enable-udp \
|
|
|
240106 |
--enable-listen --enable-proxy --enable-exec \
|
|
|
240106 |
--enable-system --enable-pty --enable-readline \
|
|
|
240106 |
--enable-openssl --enable-sycls --enable-filan \
|
|
|
240106 |
--enable-retry --enable-libwrap --enable-fips
|
|
|
240106 |
|
|
|
240106 |
make %{?_smp_mflags}
|
|
|
240106 |
|
|
|
240106 |
%check
|
|
|
240106 |
%if %{enable_tests}
|
|
|
240106 |
# DTLS1 test causes build to hang
|
|
|
240106 |
sed -i "s/ DTLS1//" -i test.sh
|
|
|
240106 |
export TERM=ansi
|
|
|
240106 |
export OD_C=/usr/bin/od
|
|
|
240106 |
make test
|
|
|
240106 |
# Only test 319 fails on scratch-builds:
|
|
|
240106 |
# test 319 OPENSSL_CONNECT_BIND: test OPENSSL-CONNECT with bind option... !port 46327 timed out! FAILED
|
|
|
240106 |
# summary: 368 tests, 366 selected; 293 ok, 1 failed, 72 could not be performed
|
|
|
240106 |
%endif
|
|
|
240106 |
|
|
|
240106 |
%install
|
|
|
240106 |
rm -rf %{buildroot}
|
|
|
240106 |
make DESTDIR=%{buildroot} install
|
|
|
240106 |
|
|
|
240106 |
%files
|
|
|
240106 |
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING
|
|
|
240106 |
%doc COPYING* README SECURITY
|
|
|
240106 |
%doc %attr(0644,root,root) *.sh
|
|
|
240106 |
%if %{enable_tests}
|
|
|
240106 |
%doc testcert.conf
|
|
|
240106 |
%endif
|
|
|
240106 |
%{_bindir}/socat
|
|
|
240106 |
%{_bindir}/filan
|
|
|
240106 |
%{_bindir}/procan
|
|
|
240106 |
%doc %{_mandir}/man1/socat.1*
|
|
|
240106 |
|
|
|
240106 |
%changelog
|
|
|
240106 |
* Thu Apr 20 2017 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-2
|
|
|
240106 |
- Resolves: rhbz#1420777 Make sure to rebuild "socat" for RHEL 7.4 - incorrect hardening flags
|
|
|
240106 |
|
|
|
240106 |
* Tue Mar 07 2017 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-1
|
|
|
240106 |
- Resolves: rhbz#1085024 rebase socat to 1.7.3.2
|
|
|
240106 |
|
|
|
240106 |
* Mon Dec 05 2016 Paul Wouters <pwouters@redhat.com> - 1.7.3.1-1
|
|
|
240106 |
- Resolves: rhbz#1085024 rebase socat to 1.7.3.1
|
|
|
240106 |
|
|
|
240106 |
* Wed Jan 29 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-5
|
|
|
240106 |
- Resolves: CVE-2014-0019 (rhbz#1057748)
|
|
|
240106 |
|
|
|
240106 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.7.2.2-4
|
|
|
240106 |
- Mass rebuild 2014-01-24
|
|
|
240106 |
|
|
|
240106 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.7.2.2-3
|
|
|
240106 |
- Mass rebuild 2013-12-27
|
|
|
240106 |
|
|
|
240106 |
* Thu Oct 10 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-2
|
|
|
240106 |
- Resolves: rhel#1017015 Use readline, not compat-readline5-devel
|
|
|
240106 |
- Added two patches fixing -Wformat issues
|
|
|
240106 |
- Enable hardened build
|
|
|
240106 |
- Cleanup obsolete spec file lines
|
|
|
240106 |
|
|
|
240106 |
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-1
|
|
|
240106 |
- Updated to 1.7.2.2 for CVE-2013-3571, rhbz#967539
|
|
|
240106 |
|
|
|
240106 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-3
|
|
|
240106 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
240106 |
|
|
|
240106 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-2
|
|
|
240106 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
240106 |
|
|
|
240106 |
* Wed May 23 2012 Paul Wouters <pwouters@redhat.com> - 1.7.2.1-1
|
|
|
240106 |
- Updated to 1.7.2.1 for CVE-2012-0219, rhbz#821553, rhbz#821688
|
|
|
240106 |
- Remove patch merged upstream
|
|
|
240106 |
- Remove --disable-fips from configure
|
|
|
240106 |
|
|
|
240106 |
* Sat Jan 07 2012 Paul Wouters <paul@nohats.ca> - 1.7.2.0-1
|
|
|
240106 |
- Upgraded to 1.7.2.0 which allows tun/tap interfaces without IP address
|
|
|
240106 |
and introduces options openssl-compress and max-children.
|
|
|
240106 |
|
|
|
240106 |
* Wed Sep 21 2011 Paul Wouters <paul@xelerance.com> - 1.7.1.3-3
|
|
|
240106 |
- support TUN endpoint without IP address (rhbz#706226) [Till Maas]
|
|
|
240106 |
|
|
|
240106 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.3-2
|
|
|
240106 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
240106 |
|
|
|
240106 |
* Mon Aug 23 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.3-1
|
|
|
240106 |
- Upgrade to 1.7.1.3
|
|
|
240106 |
- Includes fix for CVE-2010-2799 Stack overflow by lexical scanning of nested
|
|
|
240106 |
character patterns
|
|
|
240106 |
- Resolves https://bugzilla.redhat.com/show_bug.cgi?id=620430
|
|
|
240106 |
|
|
|
240106 |
* Sat Jan 30 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.2-1
|
|
|
240106 |
- Upgraded to 1.7.1.2
|
|
|
240106 |
- Link against compat-readline5 for GPLv2 license (Miroslav Lichvar)
|
|
|
240106 |
(bz #511310)
|
|
|
240106 |
|
|
|
240106 |
* Sat Aug 29 2009 Caolán McNamara <caolanm@redhat.com> - 1.7.1.1-5
|
|
|
240106 |
- recreate autoconf to get correct includes when determining type
|
|
|
240106 |
sizes in order to build correctly
|
|
|
240106 |
|
|
|
240106 |
* Fri Aug 28 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-4
|
|
|
240106 |
- Bump for new openssl
|
|
|
240106 |
|
|
|
240106 |
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.7.1.1-3
|
|
|
240106 |
- rebuilt with new openssl
|
|
|
240106 |
|
|
|
240106 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.1-2
|
|
|
240106 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
240106 |
|
|
|
240106 |
* Mon May 11 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-1
|
|
|
240106 |
- Upgraded to 1.7.1.1.
|
|
|
240106 |
- Patch for configure.in with -Wall
|
|
|
240106 |
|
|
|
240106 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0.0-2
|
|
|
240106 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
240106 |
|
|
|
240106 |
* Tue Jan 20 2009 Paul Wouters
|
|
|
240106 |
- Updated to new upstream version
|
|
|
240106 |
- utf8 the CHANGES file
|
|
|
240106 |
|
|
|
240106 |
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> 1.6.0.1-3
|
|
|
240106 |
- disable the upstream openssl fips support
|
|
|
240106 |
|
|
|
240106 |
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-2
|
|
|
240106 |
- forgot to upload new source
|
|
|
240106 |
|
|
|
240106 |
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-1
|
|
|
240106 |
- fix license tag
|
|
|
240106 |
- update to 1.6.0.1
|
|
|
240106 |
|
|
|
240106 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0.0-8
|
|
|
240106 |
- Autorebuild for GCC 4.3
|
|
|
240106 |
|
|
|
240106 |
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.5.0.0-7
|
|
|
240106 |
- Rebuild for deps
|
|
|
240106 |
|
|
|
240106 |
* Wed Dec 5 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-6
|
|
|
240106 |
- Rebuild for updatesd libcrypto
|
|
|
240106 |
|
|
|
240106 |
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-5
|
|
|
240106 |
- Tagging failure bug in redhat build system requires bump
|
|
|
240106 |
|
|
|
240106 |
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-4
|
|
|
240106 |
- Some filesystem defines moved from their specific (ext2)
|
|
|
240106 |
filesystem defines into the generic <linux/fs.h>.
|
|
|
240106 |
|
|
|
240106 |
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.5.0.0-3
|
|
|
240106 |
- Rebuild requested for PT_GNU_HASH support from gcc
|
|
|
240106 |
|
|
|
240106 |
* Sun Aug 20 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-2
|
|
|
240106 |
- Added missing examples to doc section and removed execute bits.
|
|
|
240106 |
|
|
|
240106 |
* Fri Aug 04 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-1
|
|
|
240106 |
- Updated to 1.5.0.0
|
|
|
240106 |
- removed version cut/mversion, since source untars properly now.
|
|
|
240106 |
|
|
|
240106 |
* Tue May 09 2006 Paul Wouters <paul@xelerance.com> - 1.4.3.1-1
|
|
|
240106 |
- Updated to 1.4.3.1
|
|
|
240106 |
|
|
|
240106 |
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-2
|
|
|
240106 |
- Removed DESTDIR export and fixed two capitals
|
|
|
240106 |
|
|
|
240106 |
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-1
|
|
|
240106 |
- Initial version based on Pascal Bleser <guru@unixtech.be> suse rpm
|