Paul Wouters 68745e
%global _hardened_build 1
Paul Wouters 68745e
Paul Wouters c1b784
Summary: Bidirectional data relay between two data channels ('netcat++')
Paul Wouters c1b784
Name: socat
Paul Wouters ba7b9c
Version: 1.7.4.1
Sahana Prasad 380243
Release: 4%{?dist}
Tom Callaway 361f81
License: GPLv2
Paul Wouters cc427b
Url:  http://www.dest-unreach.org/socat/
Paul Wouters 583fe4
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
Paul Wouters d0fe07
Paul Wouters d0fe07
Patch1: socat-1.7.3.3-warn.patch
Paul Wouters d0fe07
Tom Stellard 31927d
BuildRequires: make
Igor Gnatenko f0eb24
BuildRequires:  gcc
Paul Wouters 68745e
BuildRequires: openssl-devel readline-devel ncurses-devel
Paul Wouters 3f3aa8
BuildRequires: autoconf kernel-headers > 2.6.18
Paul Wouters 4f38a7
# for make test
Paul Wouters 4f38a7
BuildRequires: iproute net-tools coreutils procps-ng openssl iputils
Paul Wouters c1b784
Paul Wouters c1b784
%description
Paul Wouters c1b784
Socat is a relay for bidirectional data transfer between two independent data
Paul Wouters c1b784
channels. Each of these data channels may be a file, pipe, device (serial line
Paul Wouters c1b784
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
Paul Wouters c1b784
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
Paul Wouters d0c511
line editor (readline), a program, or a combination of two of these.
Paul Wouters c1b784
Paul Wouters c1b784
Paul Wouters c1b784
%prep
Paul Wouters d0c511
%setup -q
Paul Wouters 2cf690
iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8
Paul Wouters 2cf690
mv CHANGES.utf8 CHANGES
Paul Wouters d0fe07
%patch1 -p1
Paul Wouters c1b784
Tom Callaway 361f81
%build
Paul Wouters c1b784
%configure  \
Paul Wouters 2cf690
        --enable-help --enable-stdio \
Paul Wouters c1b784
        --enable-fdnum --enable-file --enable-creat \
Paul Wouters c1b784
        --enable-gopen --enable-pipe --enable-termios \
Paul Wouters c1b784
        --enable-unix --enable-ip4 --enable-ip6 \
Paul Wouters c1b784
        --enable-rawip --enable-tcp --enable-udp \
Paul Wouters c1b784
        --enable-listen --enable-proxy --enable-exec \
Paul Wouters c1b784
        --enable-system --enable-pty --enable-readline \
Paul Wouters c1b784
        --enable-openssl --enable-sycls --enable-filan \
Paul Wouters d0fe07
        --enable-retry # --enable-fips
Paul Wouters 68745e
Paul Wouters c1b784
make %{?_smp_mflags}
Paul Wouters c1b784
Paul Wouters c1b784
%install
Paul Wouters c1b784
make DESTDIR=%{buildroot} install
Paul Wouters 972b34
install -d %{buildroot}/%{_docdir}/socat
Paul Wouters 972b34
install -m 0644 *.sh %{buildroot}/%{_docdir}/socat/
Paul Wouters d0fe07
echo ".so man1/socat.1" | gzip > %{buildroot}/%{_mandir}/man1/filan.1.gz
Paul Wouters d0fe07
cp -a %{buildroot}/%{_mandir}/man1/filan.1.gz %{buildroot}/%{_mandir}/man1/procan.1.gz
Paul Wouters c1b784
Paul Wouters 279452
%check
Paul Wouters 4f38a7
export TERM=ansi
Paul Wouters 4f38a7
export OD_C=/usr/bin/od
Paul Wouters 9503ca
# intermittently, a test sometimes just fails and some just hang
Paul Wouters 9503ca
# HANGS on x86_64: 93, 323
Paul Wouters 9503ca
# FAILED on x86_64:  61 215 306 307
Paul Wouters 9503ca
# FAILED on ppc64le: 58 239
Paul Wouters 9503ca
# FAILED on armv7hl: 154 155 318 319
Paul Wouters 9503ca
#sed -i 's/NUMCOND=true/NUMCOND="test \\$N -ne 93 -a \\$N -ne 323"/' test.sh
Paul Wouters 9503ca
#make test
Paul Wouters c1b784
Paul Wouters d0c511
%files
Paul Wouters c1b784
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING
Paul Wouters cc427b
%doc COPYING* README SECURITY
Paul Wouters 972b34
%doc %{_docdir}/socat/*.sh
Paul Wouters c1b784
%{_bindir}/socat
Paul Wouters c1b784
%{_bindir}/filan
Paul Wouters c1b784
%{_bindir}/procan
Paul Wouters d0fe07
%doc %{_mandir}/man1/*
Paul Wouters c1b784
Paul Wouters c1b784
%changelog
Sahana Prasad 380243
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1.7.4.1-4
Sahana Prasad 380243
- Rebuilt with OpenSSL 3.0.0
Sahana Prasad 380243
Fedora Release Engineering c9520f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4.1-3
Fedora Release Engineering c9520f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Fedora Release Engineering c9520f
Fedora Release Engineering ebd79f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4.1-2
Fedora Release Engineering ebd79f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Fedora Release Engineering ebd79f
Paul Wouters ba7b9c
* Mon Jan 11 10:35:54 EST 2021 Paul Wouters <pwouters@redhat.com> - 1.7.4.1-1
Paul Wouters ba7b9c
- Resolves: rhbz#1914653 socat-1.7.4.1 is available
Paul Wouters ba7b9c
Paul Wouters 52e442
* Mon Jan  4 09:34:27 EST 2021 Paul Wouters <pwouters@redhat.com> - 1.7.4.0-1
Paul Wouters 52e442
- Resolves: rhbz#1912161 socat-1.7.4.0 is available
Paul Wouters 52e442
Fedora Release Engineering 33a6dd
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.4-3
Fedora Release Engineering 33a6dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Fedora Release Engineering 33a6dd
Fedora Release Engineering c99afa
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.4-2
Fedora Release Engineering c99afa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Fedora Release Engineering c99afa
Paul Wouters 9503ca
* Mon Jan 06 2020 Paul Wouters <pwouters@redhat.com> - 1.7.3.4-1
Paul Wouters 9503ca
- Resolves: rhbz#1787954 socat-1.7.3.4 is available
Paul Wouters 9503ca
Fedora Release Engineering a7f0ef
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.3-2
Fedora Release Engineering a7f0ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Fedora Release Engineering a7f0ef
Paul Wouters d0fe07
* Mon Jun 24 2019 Paul Wouters <pwouters@redhat.com> - 1.7.3.3-1
Paul Wouters d0fe07
- Resolves: rhbz#1696931 socat-1.7.3.3 is available
Paul Wouters d0fe07
- Resolves: rhbz#1612274 Man page scan results for socat
Paul Wouters d0fe07
- Disabled --enable-fips as its requires fipsld which we don't have.
Paul Wouters d0fe07
Igor Gnatenko d1eb3c
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.7.3.2-9
Igor Gnatenko d1eb3c
- Rebuild for readline 8.0
Igor Gnatenko d1eb3c
Fedora Release Engineering 26e2fc
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-8
Fedora Release Engineering 26e2fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Fedora Release Engineering 26e2fc
Fedora Release Engineering 0c5d48
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-7
Fedora Release Engineering 0c5d48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering 0c5d48
Fedora Release Engineering 1c78af
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-6
Fedora Release Engineering 1c78af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering 1c78af
Paul Wouters 3f3aa8
* Thu Jan 04 2018 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-5
Paul Wouters 3f3aa8
- Resolves: rhbz#1518784 socat should not require tcp_wrappers
Paul Wouters 3f3aa8
Fedora Release Engineering a5babf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-4
Fedora Release Engineering a5babf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Fedora Release Engineering a5babf
Fedora Release Engineering 43ab2d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-3
Fedora Release Engineering 43ab2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 43ab2d
Paul Wouters 0cc0db
* Mon Mar 06 2017 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-3
Paul Wouters 0cc0db
- Add BuildRequire for tcp_wrappers-devel to gain libwrap support
Paul Wouters 0cc0db
Fedora Release Engineering d4b1e2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3.2-2
Fedora Release Engineering d4b1e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering d4b1e2
Paul Wouters d0c511
* Thu Feb 02 2017 Paul Wouters <pwouters@redhat.com> - 1.7.3.2-1
Paul Wouters d0c511
- Resolves rhbz#1404290 socat build failure on rawhide
Paul Wouters d0c511
- Resolves rhbz#1416597 socat-1.7.3.2 is available
Paul Wouters d0c511
- Resolves rhbz#1417483 Failed DNS resolution causes SIGSEGV and endless loop
Paul Wouters d0c511
- Removed obsoleted patch
Paul Wouters d0c511
Igor Gnatenko ef8bf7
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.7.3.1-2
Igor Gnatenko ef8bf7
- Rebuild for readline 7.x
Igor Gnatenko ef8bf7
Paul Wouters cc427b
* Tue Apr 26 2016 Paul wouters <pwouters@redhat.com> - 1.7.3.1-1
Paul Wouters cc427b
- Update to 1.7.3.1 (#1186301)
Paul Wouters cc427b
Fedora Release Engineering c2be4f
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2.4-6
Fedora Release Engineering c2be4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Fedora Release Engineering c2be4f
cfc499
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-5
cfc499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cfc499
Paul Wouters 5bc930
* Sat Jan 24 2015 Paul Wouters <pwouters@redhat.com> - 1.7.2.4-4
Paul Wouters 5bc930
- Resolves rhbz#1182005 - socat 1.7.2.4 build failure missing linux/errqueue.h
Paul Wouters 5bc930
Peter Robinson 23c274
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-3
Peter Robinson 23c274
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson 23c274
2c596a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.4-2
2c596a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2c596a
Paul Wouters 279452
* Mon Apr 07 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.4-1
Paul Wouters 279452
- Updated to 1.7.2.4 which contains many bugfixes
Paul Wouters 279452
- Run tests in make check
Paul Wouters 3ef891
- Add build dependancies for make test
Paul Wouters 279452
Paul Wouters 56a089
* Wed Jan 29 2014 Paul Wouters <pwouters@redhat.com> - 1.7.2.3-1
Paul Wouters 56a089
- Updated to 1.7.2.3 for CVE-2014-0019
Paul Wouters 56a089
67d4ef
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.2-3
67d4ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
67d4ef
Paul Wouters 68745e
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-2
Paul Wouters 68745e
- Added two patches that fixes some -Wformat warnings. these fix 2 of 3
Paul Wouters 68745e
  failing test cases from test.sh
Paul Wouters 68745e
- Enabled hardening with full relro/pie
Paul Wouters 68745e
- Switch from readline5 to readline(6)
Paul Wouters 68745e
Paul Wouters 5e488b
* Mon May 27 2013 Paul Wouters <pwouters@redhat.com> - 1.7.2.2-1
Paul Wouters 5e488b
- Updated to 1.7.2.2 for CVE-2013-3571, rhbz#967539
Paul Wouters 5e488b
a3b7d2
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-3
a3b7d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a3b7d2
6655bf
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2.1-2
6655bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6655bf
Paul Wouters 70ee14
* Wed May 23 2012 Paul Wouters <pwouters@redhat.com> - 1.7.2.1-1
Paul Wouters 70ee14
- Updated to 1.7.2.1 for CVE-2012-0219, rhbz#821553, rhbz#821688
Paul Wouters 70ee14
- Remove patch merged upstream
Paul Wouters 70ee14
- Remove --disable-fips from configure
Paul Wouters 70ee14
Paul Wouters e0887e
* Sat Jan 07 2012 Paul Wouters <paul@nohats.ca> - 1.7.2.0-1
Paul Wouters e0887e
- Upgraded to 1.7.2.0 which allows tun/tap interfaces without IP address
Paul Wouters d0c511
  and introduces options openssl-compress and max-children.
Paul Wouters e0887e
Paul Wouters 47404f
* Wed Sep 21 2011 Paul Wouters <paul@xelerance.com> - 1.7.1.3-3
Paul Wouters 47404f
- support TUN endpoint without IP address (rhbz#706226) [Till Maas]
Paul Wouters 47404f
94d353
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.3-2
94d353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
94d353
Paul Wouters 1f4ed5
* Mon Aug 23 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.3-1
Paul Wouters 1f4ed5
- Upgrade to 1.7.1.3
Paul Wouters 1f4ed5
- Includes fix for CVE-2010-2799 Stack overflow by lexical scanning of nested
Paul Wouters 1f4ed5
  character patterns
Paul Wouters 1f4ed5
- Resolves https://bugzilla.redhat.com/show_bug.cgi?id=620430
Paul Wouters 1f4ed5
Paul Wouters 583fe4
* Sat Jan 30 2010 Paul Wouters <paul@xelerance.com> - 1.7.1.2-1
Paul Wouters 583fe4
- Upgraded to 1.7.1.2
Paul Wouters 583fe4
- Link against compat-readline5 for GPLv2 license (Miroslav Lichvar)
Paul Wouters 583fe4
  (bz #511310)
Paul Wouters 583fe4
Caolan McNamara 22a6f4
* Sat Aug 29 2009 Caolán McNamara <caolanm@redhat.com> - 1.7.1.1-5
Caolan McNamara 22a6f4
- recreate autoconf to get correct includes when determining type
Caolan McNamara 22a6f4
  sizes in order to build correctly
Caolan McNamara 22a6f4
Paul Wouters ac899e
* Fri Aug 28 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-4
Paul Wouters ac899e
- Bump for new openssl
Paul Wouters ac899e
Tomáš Mráz 31ad07
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.7.1.1-3
Tomáš Mráz 31ad07
- rebuilt with new openssl
Tomáš Mráz 31ad07
Jesse Keating a704d6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.1-2
Jesse Keating a704d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating a704d6
Paul Wouters 3055b2
* Mon May 11 2009 Paul Wouters <paul@xelerance.com> - 1.7.1.1-1
Paul Wouters 3055b2
- Upgraded to 1.7.1.1.
Paul Wouters 3055b2
- Patch for configure.in with -Wall
Paul Wouters 3055b2
Jesse Keating b07eb1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0.0-2
Jesse Keating b07eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating b07eb1
Paul Wouters 2cf690
* Tue Jan 20 2009 Paul Wouters 
Paul Wouters 2cf690
- Updated to new upstream version
Paul Wouters 2cf690
- utf8 the CHANGES file
Paul Wouters 2cf690
Tomáš Mráz 0843f9
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> 1.6.0.1-3
Tomáš Mráz 0843f9
- disable the upstream openssl fips support
Tomáš Mráz 9c16e8
Tom Callaway 36e5cd
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-2
Tom Callaway 36e5cd
- forgot to upload new source
Tom Callaway 36e5cd
Tom Callaway 361f81
* Thu Sep  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.6.0.1-1
Tom Callaway 361f81
- fix license tag
Tom Callaway 361f81
- update to 1.6.0.1
Tom Callaway 361f81
Jesse Keating 2ddfba
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0.0-8
Jesse Keating 2ddfba
- Autorebuild for GCC 4.3
Jesse Keating 2ddfba
Jesse Keating 429973
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.5.0.0-7
Jesse Keating 429973
 - Rebuild for deps
Jesse Keating 429973
Paul Wouters 015e40
* Wed Dec  5 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-6
Paul Wouters 015e40
- Rebuild for updatesd libcrypto
Paul Wouters 015e40
Paul Wouters 977389
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-5
Paul Wouters 015e40
- Tagging failure bug in redhat build system requires bump
Paul Wouters 977389
Paul Wouters e8874c
* Mon Feb 19 2007 Paul Wouters <paul@xelerance.com> 1.5.0.0-4
Paul Wouters e8874c
- Some filesystem defines moved from their specific (ext2)
Paul Wouters d0c511
  filesystem defines into the generic <linux/fs.h>.
Paul Wouters e8874c
Paul Wouters 0663c0
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.5.0.0-3
Paul Wouters 0663c0
- Rebuild requested for PT_GNU_HASH support from gcc
Paul Wouters 0663c0
Paul Wouters c1b784
* Sun Aug 20 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-2
Paul Wouters c1b784
- Added missing examples to doc section and removed execute bits.
Paul Wouters c1b784
Paul Wouters c1b784
* Fri Aug 04 2006 Paul Wouters <paul@xelerance.com> - 1.5.0.0-1
Paul Wouters c1b784
- Updated to 1.5.0.0
Paul Wouters c1b784
- removed version cut/mversion, since source untars properly now.
Paul Wouters c1b784
Paul Wouters c1b784
* Tue May 09 2006 Paul Wouters <paul@xelerance.com> - 1.4.3.1-1
Paul Wouters c1b784
- Updated to 1.4.3.1
Paul Wouters c1b784
Paul Wouters c1b784
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-2
Paul Wouters c1b784
- Removed DESTDIR export and fixed two capitals
Paul Wouters c1b784
Paul Wouters c1b784
* Thu Jan 26 2006 Paul Wouters <paul@xelerance.com> 1.4.3.0-1
Paul Wouters c1b784
- Initial version based on Pascal Bleser <guru@unixtech.be> suse rpm