socat/socat.spec

changeset 767
3ee660c5bc4f
parent 507
b38213c8f8c3
equal deleted inserted replaced
0:a37108dff886 1:1455471e9e46
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: BASE 35 Class: BASE
36 Group: Network 36 Group: Network
37 License: GPL 37 License: GPL
38 Version: %{V_major}.%{V_minor} 38 Version: %{V_major}.%{V_minor}
39 Release: 20120515 39 Release: 20120800
40 40
41 # package options 41 # package options
42 %option with_readline yes 42 %option with_readline yes
43 %option with_ssl yes 43 %option with_ssl yes
44 44
45 # list of sources 45 # list of sources
46 Source0: http://www.dest-unreach.org/socat/download/socat-%{V_major}.%{V_minor}.tar.bz2 46 Source0: http://www.dest-unreach.org/socat/download/socat-%{V_major}.%{V_minor}.tar.bz2
47 47
48 # build information 48 # build information
49 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc 49 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc
50 PreReq: OpenPKG, openpkg >= 20100101 50 PreReq: OpenPKG, openpkg >= 20100101
51 %if "%{with_readline}" == "yes" 51 %if "%{with_readline}" == "yes"
52 BuildPreReq: readline 52 BuildPreReq: readline
53 PreReq: readline 53 PreReq: readline
54 %endif 54 %endif
71 regex = socat-(\d+\.\d+\.\d+(?:\.\d+))\.tar\.bz2 71 regex = socat-(\d+\.\d+\.\d+(?:\.\d+))\.tar\.bz2
72 } 72 }
73 73
74 %prep 74 %prep
75 %setup -q -n socat-%{V_major}.%{V_minor} 75 %setup -q -n socat-%{V_major}.%{V_minor}
76 %{l_shtool} subst \
77 -e 's;if ((from.ll.sll_pkttype & PACKET_OUTGOING);if (1;' \
78 xioread.c
76 79
77 %build 80 %build
78 CC="%{l_cc} %{l_cflags -O} %{l_cppflags}" \ 81 CC="%{l_cc} %{l_cflags -O} %{l_cppflags}" \
79 CFLAGS="%{l_cflags -O} %{l_cppflags}" \ 82 CFLAGS="%{l_cflags -O} %{l_cppflags}" \
80 CPPFLAGS="%{l_cppflags}" \ 83 CPPFLAGS="%{l_cppflags}" \

mercurial