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 279452
Version: 1.7.2.4
Paul Wouters 56a089
Release: 1%{?dist}
Tom Callaway 361f81
License: GPLv2
Paul Wouters c1b784
Url:  http://www.dest-unreach.org/%{name}
Paul Wouters 583fe4
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
Paul Wouters c1b784
Group: Applications/Internet
Paul Wouters c1b784
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Paul Wouters 68745e
BuildRequires: openssl-devel readline-devel ncurses-devel
Paul Wouters 583fe4
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 491dd6
Patch1: socat-1.7.2.4-test.patch
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 c1b784
line editor (readline), a program, or a combination of two of these. 
Paul Wouters c1b784
Paul Wouters c1b784
Paul Wouters c1b784
%prep
Paul Wouters c1b784
%setup -q 
Paul Wouters 2cf690
iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8
Paul Wouters 2cf690
mv CHANGES.utf8 CHANGES
Paul Wouters 491dd6
%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 68745e
        --enable-retry --enable-libwrap --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 1262c3
install -d %{buildroot}/%{_docdir}/socat-%{version}
Paul Wouters 1262c3
install -m 0644 *.sh %{buildroot}/%{_docdir}/socat-%{version}/
Paul Wouters c1b784
Paul Wouters 279452
%check
Paul Wouters 4f38a7
export TERM=ansi
Paul Wouters 4f38a7
export OD_C=/usr/bin/od
Paul Wouters 279452
make test
Paul Wouters c1b784
Paul Wouters c1b784
%files 
Paul Wouters c1b784
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING
Tom Callaway 361f81
%doc COPYING* README SECURITY testcert.conf
Paul Wouters 3b0342
%doc %{_docdir}/socat-%{version}/*.sh
Paul Wouters c1b784
%{_bindir}/socat
Paul Wouters c1b784
%{_bindir}/filan
Paul Wouters c1b784
%{_bindir}/procan
Paul Wouters c1b784
%doc %{_mandir}/man1/socat.1*
Paul Wouters c1b784
Paul Wouters c1b784
%changelog
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 e0887e
  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 e8874c
  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