SHA256
1
0
forked from pool/socat
socat/socat.spec
OBS User autobuild 1edae93934 Accepting request 29118 from network:utilities
Copy from network:utilities/socat based on submit request 29118 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/29118
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/socat?expand=0&rev=7
2010-01-11 15:33:27 +00:00

79 lines
2.4 KiB
RPMSpec

#
# spec file for package socat (Version 1.7.1.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: socat
BuildRequires: openssl-devel procps readline-devel tcpd-devel
Version: 1.7.1.2
Release: 1
License: BSD3c ; GPLv2+
Group: Productivity/Networking/Other
Url: http://www.dest-unreach.org/socat/
AutoReqProv: on
Summary: Multipurpose relay for bidirectional data transfer
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these.
Authors:
--------
Gerhard Rieger <socat at dest-unreach dot org>
%prep
%setup
%build
%{?suse_update_config:%{suse_update_config -f}}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir}
%{__make} all
mkdir examples
mv daemon.sh ftp.sh mail.sh proxyecho.sh readline.sh examples
%install
mkdir -p \
${RPM_BUILD_ROOT}/%{_bindir} \
${RPM_BUILD_ROOT}/%{_mandir}/man1
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
%clean
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc BUGREPORTS CHANGES COPYING COPYING.OpenSSL DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY VERSION examples
%{_bindir}/socat
%{_bindir}/procan
%{_bindir}/filan
%{_mandir}/man1/socat.1.gz
%changelog