68745e7
%global _hardened_build 1
68745e7
c1b7843
Summary: Bidirectional data relay between two data channels ('netcat++')
c1b7843
Name: socat
cc427b8
Version: 1.7.3.1
Igor Gnatenko ef8bf7f
Release: 2%{?dist}
361f81c
License: GPLv2
cc427b8
Url:  http://www.dest-unreach.org/socat/
583fe4d
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
c1b7843
Group: Applications/Internet
68745e7
BuildRequires: openssl-devel readline-devel ncurses-devel
583fe4d
BuildRequires: autoconf kernel-headers > 2.6.18
4f38a7b
# for make test
4f38a7b
BuildRequires: iproute net-tools coreutils procps-ng openssl iputils
491dd6a
Patch1: socat-1.7.2.4-test.patch
c1b7843
c1b7843
%description
c1b7843
Socat is a relay for bidirectional data transfer between two independent data
c1b7843
channels. Each of these data channels may be a file, pipe, device (serial line
c1b7843
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
c1b7843
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
c1b7843
line editor (readline), a program, or a combination of two of these. 
c1b7843
c1b7843
c1b7843
%prep
c1b7843
%setup -q 
2cf690c
iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8
2cf690c
mv CHANGES.utf8 CHANGES
491dd6a
%patch1 -p1
c1b7843
361f81c
%build
c1b7843
%configure  \
2cf690c
        --enable-help --enable-stdio \
c1b7843
        --enable-fdnum --enable-file --enable-creat \
c1b7843
        --enable-gopen --enable-pipe --enable-termios \
c1b7843
        --enable-unix --enable-ip4 --enable-ip6 \
c1b7843
        --enable-rawip --enable-tcp --enable-udp \
c1b7843
        --enable-listen --enable-proxy --enable-exec \
c1b7843
        --enable-system --enable-pty --enable-readline \
c1b7843
        --enable-openssl --enable-sycls --enable-filan \
68745e7
        --enable-retry --enable-libwrap --enable-fips
68745e7
c1b7843
make %{?_smp_mflags}
c1b7843
c1b7843
%install
c1b7843
make DESTDIR=%{buildroot} install
972b344
install -d %{buildroot}/%{_docdir}/socat
972b344
install -m 0644 *.sh %{buildroot}/%{_docdir}/socat/
c1b7843
2794524
%check
4f38a7b
export TERM=ansi
4f38a7b
export OD_C=/usr/bin/od
e6510eb
# intermittently, a test sometimes just fails and hangs, mostly on arm
3458491
#timeout 30m make test
c1b7843
c1b7843
%files 
c1b7843
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING
cc427b8
%doc COPYING* README SECURITY
972b344
%doc %{_docdir}/socat/*.sh
c1b7843
%{_bindir}/socat
c1b7843
%{_bindir}/filan
c1b7843
%{_bindir}/procan
c1b7843
%doc %{_mandir}/man1/socat.1*
c1b7843
c1b7843
%changelog
Igor Gnatenko ef8bf7f
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.7.3.1-2
Igor Gnatenko ef8bf7f
- Rebuild for readline 7.x
Igor Gnatenko ef8bf7f
cc427b8
* Tue Apr 26 2016 Paul wouters <pwouters@redhat.com> - 1.7.3.1-1
cc427b8
- Update to 1.7.3.1 (#1186301)
cc427b8
c2be4f4
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2.4-6
c2be4f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c2be4f4
cfc4991
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-5
cfc4991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cfc4991
5bc9304
* Sat Jan 24 2015 Paul Wouters <pwouters@redhat.com> - 1.7.2.4-4
5bc9304
- Resolves rhbz#1182005 - socat 1.7.2.4 build failure missing linux/errqueue.h
5bc9304
23c274c
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-3
23c274c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
23c274c
2c596a1
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-2
2c596a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2c596a1
2794524
* Mon Apr 07 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.4-1
2794524
- Updated to 1.7.2.4 which contains many bugfixes
2794524
- Run tests in make check
3ef8913
- Add build dependancies for make test
2794524
56a0894
* Wed Jan 29 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.3-1
56a0894
- Updated to 1.7.2.3 for CVE-2014-0019
56a0894
67d4efb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.2-3
67d4efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
67d4efb
68745e7
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-2
68745e7
- Added two patches that fixes some -Wformat warnings. these fix 2 of 3
68745e7
  failing test cases from test.sh
68745e7
- Enabled hardening with full relro/pie
68745e7
- Switch from readline5 to readline(6)
68745e7
5e488b5
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-1
5e488b5
- Updated to 1.7.2.2 for CVE-2013-3571, rhbz#967539
5e488b5
a3b7d26
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-3
a3b7d26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a3b7d26
6655bfd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-2
6655bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6655bfd
70ee144
* Wed May 23 2012 Paul Wouters <pwouters@redhat.com> - 1.7.2.1-1
70ee144
- Updated to 1.7.2.1 for CVE-2012-0219, rhbz#821553, rhbz#821688
70ee144
- Remove patch merged upstream
70ee144
- Remove --disable-fips from configure
70ee144
Paul Wouters e0887e5
* Sat Jan 07 2012 Paul Wouters <paul@nohats.ca> - 1.7.2.0-1
Paul Wouters e0887e5
- Upgraded to 1.7.2.0 which allows tun/tap interfaces without IP address
Paul Wouters e0887e5
  and introduces options openssl-compress and max-children. 
Paul Wouters e0887e5
Paul Wouters 47404fc
* Wed Sep 21 2011 Paul Wouters <paul@xelerance.com> - 1.7.1.3-3
Paul Wouters 47404fc
- support TUN endpoint without IP address (rhbz#706226) [Till Maas]
Paul Wouters 47404fc
94d3533
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.3-2
94d3533
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
94d3533
Paul Wouters 1f4ed5b
* Mon Aug 23 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.3-1
Paul Wouters 1f4ed5b
- Upgrade to 1.7.1.3
Paul Wouters 1f4ed5b
- Includes fix for CVE-2010-2799 Stack overflow by lexical scanning of nested
Paul Wouters 1f4ed5b
  character patterns
Paul Wouters 1f4ed5b
- Resolves https://bugzilla.redhat.com/show_bug.cgi?id=620430
Paul Wouters 1f4ed5b
583fe4d
* Sat Jan 30 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.2-1
583fe4d
- Upgraded to 1.7.1.2
583fe4d
- Link against compat-readline5 for GPLv2 license (Miroslav Lichvar)
583fe4d
  (bz #511310)
583fe4d
Caolan McNamara 22a6f46
* Sat Aug 29 2009 Caolán McNamara <caolanm@redhat.com> - 1.7.1.1-5
Caolan McNamara 22a6f46
- recreate autoconf to get correct includes when determining type
Caolan McNamara 22a6f46
  sizes in order to build correctly
Caolan McNamara 22a6f46
ac899e7
* Fri Aug 28 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-4
ac899e7
- Bump for new openssl
ac899e7
31ad07b
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.7.1.1-3
31ad07b
- rebuilt with new openssl
31ad07b
a704d60
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.1-2
a704d60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a704d60
3055b2a
* Mon May 11 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-1
3055b2a
- Upgraded to 1.7.1.1.
3055b2a
- Patch for configure.in with -Wall
3055b2a
b07eb17
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0.0-2
b07eb17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b07eb17
2cf690c
* Tue Jan 20 2009 Paul Wouters 
2cf690c
- Updated to new upstream version
2cf690c
- utf8 the CHANGES file
2cf690c
0843f91
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> 1.6.0.1-3
0843f91
- disable the upstream openssl fips support
9c16e81
36e5cdd
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-2
36e5cdd
- forgot to upload new source
36e5cdd
361f81c
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-1
361f81c
- fix license tag
361f81c
- update to 1.6.0.1
361f81c
2ddfba7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0.0-8
2ddfba7
- Autorebuild for GCC 4.3
2ddfba7
429973a
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.5.0.0-7
429973a
 - Rebuild for deps
429973a
015e409
* Wed Dec  5 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-6
015e409
- Rebuild for updatesd libcrypto
015e409
977389e
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-5
015e409
- Tagging failure bug in redhat build system requires bump
977389e
e8874cc
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-4
e8874cc
- Some filesystem defines moved from their specific (ext2)
e8874cc
  filesystem defines into the generic <linux/fs.h>. 
e8874cc
0663c03
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.5.0.0-3
0663c03
- Rebuild requested for PT_GNU_HASH support from gcc
0663c03
c1b7843
* Sun Aug 20 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-2
c1b7843
- Added missing examples to doc section and removed execute bits.
c1b7843
c1b7843
* Fri Aug 04 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-1
c1b7843
- Updated to 1.5.0.0
c1b7843
- removed version cut/mversion, since source untars properly now.
c1b7843
c1b7843
* Tue May 09 2006 Paul Wouters <paul@xelerance.com> - 1.4.3.1-1
c1b7843
- Updated to 1.4.3.1
c1b7843
c1b7843
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-2
c1b7843
- Removed DESTDIR export and fixed two capitals
c1b7843
c1b7843
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-1
c1b7843
- Initial version based on Pascal Bleser <guru@unixtech.be> suse rpm