2008-01-27 12:00:08 +00:00
|
|
|
|
2008-10-15 20:54:47 +00:00
|
|
|
%define majorver 1.7
|
2023-06-13 14:19:52 +00:00
|
|
|
%define minorver 4.5
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
Summary: socat - multipurpose relay
|
|
|
|
Name: socat
|
|
|
|
Version: %{majorver}.%{minorver}
|
|
|
|
Release: 1
|
2015-01-04 14:13:21 +00:00
|
|
|
License: GPL
|
2008-01-27 12:00:08 +00:00
|
|
|
Group: Applications/Communications
|
2015-01-04 14:13:21 +00:00
|
|
|
Source0: http://www.dest-unreach.org/socat/download/socat-%{version}.tar.bz2
|
2008-01-27 12:00:08 +00:00
|
|
|
Requires: readline
|
|
|
|
Requires: openssl
|
|
|
|
BuildRoot: /var/tmp/%{name}-buildroot
|
|
|
|
|
|
|
|
%description
|
|
|
|
socat is a relay for bidirectional data transfer between two independent data
|
|
|
|
channels. Each of these data channels may be a file, pipe, device (terminal or
|
|
|
|
modem etc.), socket (UNIX, IP4, IP6 - raw, UDP, TCP), a file descriptor (stdin
|
|
|
|
etc.), a program, or an arbitrary combination of two of these.
|
|
|
|
|
|
|
|
%prep
|
2015-01-04 14:13:21 +00:00
|
|
|
%setup -n %{name}-%{version}
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# the CPPFLAGS setting is required for RedHat Linux
|
|
|
|
if [ -d /usr/kerberos/include ]; then
|
|
|
|
CPPFLAGS="-I/usr/kerberos/include" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
|
|
|
else
|
|
|
|
./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
|
|
|
fi
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-01-04 14:13:21 +00:00
|
|
|
%doc README CHANGES EXAMPLES SECURITY doc/xio.help doc/socat.html FAQ BUGREPORTS
|
2008-01-27 12:00:08 +00:00
|
|
|
%doc COPYING COPYING.OpenSSL FILES PORTING DEVELOPMENT
|
|
|
|
%{_bindir}/socat
|
|
|
|
%{_bindir}/procan
|
|
|
|
%{_bindir}/filan
|
|
|
|
%{_mandir}/man1/socat.1*
|