439fdf
%global _hardened_build 1
439fdf
439fdf
Summary: Bidirectional data relay between two data channels ('netcat++')
439fdf
Name: socat
f40a5f
Version: 1.7.4.1
f40a5f
Release: 1%{?dist}
439fdf
License: GPLv2
439fdf
Url:  http://www.dest-unreach.org/socat/
439fdf
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
439fdf
Group: Applications/Internet
0165de
439fdf
BuildRequires: openssl-devel readline-devel ncurses-devel
439fdf
BuildRequires: autoconf kernel-headers > 2.6.18
439fdf
# for make test
439fdf
BuildRequires: iproute net-tools coreutils procps-ng openssl iputils
439fdf
439fdf
%description
439fdf
Socat is a relay for bidirectional data transfer between two independent data
439fdf
channels. Each of these data channels may be a file, pipe, device (serial line
439fdf
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
439fdf
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
439fdf
line editor (readline), a program, or a combination of two of these.
439fdf
439fdf
439fdf
%prep
439fdf
%setup -q
439fdf
iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8
439fdf
mv CHANGES.utf8 CHANGES
439fdf
439fdf
%build
439fdf
%configure  \
439fdf
        --enable-help --enable-stdio \
439fdf
        --enable-fdnum --enable-file --enable-creat \
439fdf
        --enable-gopen --enable-pipe --enable-termios \
439fdf
        --enable-unix --enable-ip4 --enable-ip6 \
439fdf
        --enable-rawip --enable-tcp --enable-udp \
439fdf
        --enable-listen --enable-proxy --enable-exec \
439fdf
        --enable-system --enable-pty --enable-readline \
439fdf
        --enable-openssl --enable-sycls --enable-filan \
0165de
        --enable-retry #--enable-fips
439fdf
439fdf
make %{?_smp_mflags}
439fdf
439fdf
%install
439fdf
make DESTDIR=%{buildroot} install
439fdf
install -d %{buildroot}/%{_docdir}/socat
439fdf
install -m 0644 *.sh %{buildroot}/%{_docdir}/socat/
0165de
install -m 0644 *.sh %{buildroot}/%{_docdir}/socat/
0165de
echo ".so man1/socat.1" | gzip > %{buildroot}/%{_mandir}/man1/filan.1.gz
0165de
cp -a %{buildroot}/%{_mandir}/man1/filan.1.gz %{buildroot}/%{_mandir}/man1/procan.1.gz
439fdf
439fdf
%check
439fdf
export TERM=ansi
439fdf
export OD_C=/usr/bin/od
439fdf
# intermittently, a test sometimes just fails and hangs, mostly on arm
439fdf
#timeout 30m make test
439fdf
439fdf
%files
439fdf
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING
439fdf
%doc COPYING* README SECURITY
439fdf
%doc %{_docdir}/socat/*.sh
439fdf
%{_bindir}/socat
439fdf
%{_bindir}/filan
439fdf
%{_bindir}/procan
0165de
%doc %{_mandir}/man1/*
439fdf
439fdf
%changelog
f40a5f
* Tue Mar 30 2021 Paul Wouters <pwouters@redhat.com> - 1.7.4.1-1
f40a5f
- Resolves: rhbz#1805132 socat does not recognize IP addresses of the SAN extensions in ssl mode
f40a5f
- Resolves: rhbz#1870279 Transfer via socat fails with openssl enabled
f40a5f
- Resolves: rhbz#1914989 Socat udp4-recvfrom cause endless loop error when target is not vaild
f40a5f
0165de
* Sun Dec 01 2019 Paul Wouters <pwouters@redhat.com> - 1.7.3.3-2
0165de
- Resolves: rhbz#1682464 socat changes blocked until gating tests are added
0165de
0165de
* Wed Nov 06 2019 Paul Wouters <pwouters@redhat.com> - 1.7.3.3-1
0165de
- Resolves: rhbz#1723581 socat-1.7.3.3 is available
0165de
439fdf
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-6
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
439fdf
439fdf
* Thu Jan 04 2018 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-5
439fdf
- Resolves: rhbz#1518784 socat should not require tcp_wrappers
439fdf
439fdf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-4
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
439fdf
439fdf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-3
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
439fdf
439fdf
* Mon Mar 06 2017 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-3
439fdf
- Add BuildRequire for tcp_wrappers-devel to gain libwrap support
439fdf
439fdf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-2
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
439fdf
439fdf
* Thu Feb 02 2017 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-1
439fdf
- Resolves rhbz#1404290 socat build failure on rawhide
439fdf
- Resolves rhbz#1416597 socat-1.7.3.2 is available
439fdf
- Resolves rhbz#1417483 Failed DNS resolution causes SIGSEGV and endless loop
439fdf
- Removed obsoleted patch
439fdf
439fdf
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.7.3.1-2
439fdf
- Rebuild for readline 7.x
439fdf
439fdf
* Tue Apr 26 2016 Paul wouters <pwouters@redhat.com> - 1.7.3.1-1
439fdf
- Update to 1.7.3.1 (#1186301)
439fdf
439fdf
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2.4-6
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
439fdf
439fdf
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-5
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
439fdf
439fdf
* Sat Jan 24 2015 Paul Wouters <pwouters@redhat.com> - 1.7.2.4-4
439fdf
- Resolves rhbz#1182005 - socat 1.7.2.4 build failure missing linux/errqueue.h
439fdf
439fdf
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-3
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
439fdf
439fdf
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-2
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
439fdf
439fdf
* Mon Apr 07 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.4-1
439fdf
- Updated to 1.7.2.4 which contains many bugfixes
439fdf
- Run tests in make check
439fdf
- Add build dependancies for make test
439fdf
439fdf
* Wed Jan 29 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.3-1
439fdf
- Updated to 1.7.2.3 for CVE-2014-0019
439fdf
439fdf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.2-3
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
439fdf
439fdf
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-2
439fdf
- Added two patches that fixes some -Wformat warnings. these fix 2 of 3
439fdf
  failing test cases from test.sh
439fdf
- Enabled hardening with full relro/pie
439fdf
- Switch from readline5 to readline(6)
439fdf
439fdf
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-1
439fdf
- Updated to 1.7.2.2 for CVE-2013-3571, rhbz#967539
439fdf
439fdf
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-3
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
439fdf
439fdf
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-2
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
439fdf
439fdf
* Wed May 23 2012 Paul Wouters <pwouters@redhat.com> - 1.7.2.1-1
439fdf
- Updated to 1.7.2.1 for CVE-2012-0219, rhbz#821553, rhbz#821688
439fdf
- Remove patch merged upstream
439fdf
- Remove --disable-fips from configure
439fdf
439fdf
* Sat Jan 07 2012 Paul Wouters <paul@nohats.ca> - 1.7.2.0-1
439fdf
- Upgraded to 1.7.2.0 which allows tun/tap interfaces without IP address
439fdf
  and introduces options openssl-compress and max-children.
439fdf
439fdf
* Wed Sep 21 2011 Paul Wouters <paul@xelerance.com> - 1.7.1.3-3
439fdf
- support TUN endpoint without IP address (rhbz#706226) [Till Maas]
439fdf
439fdf
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.3-2
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
439fdf
439fdf
* Mon Aug 23 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.3-1
439fdf
- Upgrade to 1.7.1.3
439fdf
- Includes fix for CVE-2010-2799 Stack overflow by lexical scanning of nested
439fdf
  character patterns
439fdf
- Resolves https://bugzilla.redhat.com/show_bug.cgi?id=620430
439fdf
439fdf
* Sat Jan 30 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.2-1
439fdf
- Upgraded to 1.7.1.2
439fdf
- Link against compat-readline5 for GPLv2 license (Miroslav Lichvar)
439fdf
  (bz #511310)
439fdf
439fdf
* Sat Aug 29 2009 Caolán McNamara <caolanm@redhat.com> - 1.7.1.1-5
439fdf
- recreate autoconf to get correct includes when determining type
439fdf
  sizes in order to build correctly
439fdf
439fdf
* Fri Aug 28 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-4
439fdf
- Bump for new openssl
439fdf
439fdf
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.7.1.1-3
439fdf
- rebuilt with new openssl
439fdf
439fdf
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.1-2
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
439fdf
439fdf
* Mon May 11 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-1
439fdf
- Upgraded to 1.7.1.1.
439fdf
- Patch for configure.in with -Wall
439fdf
439fdf
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0.0-2
439fdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
439fdf
439fdf
* Tue Jan 20 2009 Paul Wouters 
439fdf
- Updated to new upstream version
439fdf
- utf8 the CHANGES file
439fdf
439fdf
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> 1.6.0.1-3
439fdf
- disable the upstream openssl fips support
439fdf
439fdf
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-2
439fdf
- forgot to upload new source
439fdf
439fdf
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-1
439fdf
- fix license tag
439fdf
- update to 1.6.0.1
439fdf
439fdf
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0.0-8
439fdf
- Autorebuild for GCC 4.3
439fdf
439fdf
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.5.0.0-7
439fdf
 - Rebuild for deps
439fdf
439fdf
* Wed Dec  5 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-6
439fdf
- Rebuild for updatesd libcrypto
439fdf
439fdf
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-5
439fdf
- Tagging failure bug in redhat build system requires bump
439fdf
439fdf
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-4
439fdf
- Some filesystem defines moved from their specific (ext2)
439fdf
  filesystem defines into the generic <linux/fs.h>.
439fdf
439fdf
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.5.0.0-3
439fdf
- Rebuild requested for PT_GNU_HASH support from gcc
439fdf
439fdf
* Sun Aug 20 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-2
439fdf
- Added missing examples to doc section and removed execute bits.
439fdf
439fdf
* Fri Aug 04 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-1
439fdf
- Updated to 1.5.0.0
439fdf
- removed version cut/mversion, since source untars properly now.
439fdf
439fdf
* Tue May 09 2006 Paul Wouters <paul@xelerance.com> - 1.4.3.1-1
439fdf
- Updated to 1.4.3.1
439fdf
439fdf
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-2
439fdf
- Removed DESTDIR export and fixed two capitals
439fdf
439fdf
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-1
439fdf
- Initial version based on Pascal Bleser <guru@unixtech.be> suse rpm