Paul Wouters c1b784
Summary: Bidirectional data relay between two data channels ('netcat++')
Paul Wouters c1b784
Name: socat
Paul Wouters c1b784
Version: 1.5.0.0
Paul Wouters 0663c0
Release: 3%{?dist}
Paul Wouters c1b784
License: GPL
Paul Wouters c1b784
Url:  http://www.dest-unreach.org/%{name}
Paul Wouters c1b784
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.bz2
Paul Wouters c1b784
Group: Applications/Internet
Paul Wouters c1b784
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Paul Wouters c1b784
BuildRequires: openssl-devel readline-devel ncurses-devel
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 c1b784
Paul Wouters c1b784
Paul Wouters c1b784
%configure  \
Paul Wouters c1b784
        --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 c1b784
        --enable-retry --enable-libwrap
Paul Wouters c1b784
Paul Wouters c1b784
%build
Paul Wouters c1b784
chmod 644 *.sh
Paul Wouters c1b784
make %{?_smp_mflags}
Paul Wouters c1b784
Paul Wouters c1b784
%install
Paul Wouters c1b784
rm -rf %{buildroot}
Paul Wouters c1b784
Paul Wouters c1b784
make DESTDIR=%{buildroot} install
Paul Wouters c1b784
Paul Wouters c1b784
%clean
Paul Wouters c1b784
rm -rf %{buildroot}
Paul Wouters c1b784
Paul Wouters c1b784
%files 
Paul Wouters c1b784
%defattr(-,root,root)
Paul Wouters c1b784
%doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ PORTING
Paul Wouters c1b784
%doc COPYING* README SECURITY testcert.conf socat.html
Paul Wouters c1b784
%doc daemon.sh ftp.sh gatherinfo.sh mail.sh proxy.sh 
Paul Wouters c1b784
%doc proxyecho.sh readline.sh readline-test.sh
Paul Wouters c1b784
%doc socks4echo.sh socks4a-echo.sh test.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 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