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