|
|
|
|
@ -22,8 +22,8 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_major 2.0.0 |
|
|
|
|
%define V_minor b1 |
|
|
|
|
%define V_major 1.7.0 |
|
|
|
|
%define V_minor 0 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: socat |
|
|
|
|
@ -36,14 +36,14 @@ Class: BASE
|
|
|
|
|
Group: Network |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_major}.%{V_minor} |
|
|
|
|
Release: 20080101 |
|
|
|
|
Release: 20081016 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_readline yes |
|
|
|
|
%option with_ssl yes |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.dest-unreach.org/socat/download/socat-%{V_major}-%{V_minor}.tar.bz2 |
|
|
|
|
Source0: http://www.dest-unreach.org/socat/download/socat-%{V_major}.%{V_minor}.tar.bz2 |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
@ -76,7 +76,7 @@ AutoReqProv: no
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n socat-%{V_major}-%{V_minor} |
|
|
|
|
%setup -q -n socat-%{V_major}.%{V_minor} |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
CC="%{l_cc} %{l_cflags -O} %{l_cppflags}" \ |
|
|
|
|
@ -85,6 +85,7 @@ AutoReqProv: no
|
|
|
|
|
LDFLAGS="%{l_ldflags}" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--mandir=%{l_prefix}/man \ |
|
|
|
|
--enable-msglevel=debug \ |
|
|
|
|
%if "%{with_readline}" == "yes" |
|
|
|
|
--enable-readline \ |
|
|
|
|
|