Summary(pl.UTF-8): Serwer SIP przekazujący (proxy), przekierowujący i rejestrujący
Name: opensips
Version: 2.4.0
-Release: 1
+Release: 5
License: GPL v2
Group: Networking/Daemons
Source0: http://opensips.org/pub/opensips/%{version}/%{name}-%{version}.tar.gz
Source3: %{name}.service
Patch0: x32.patch
Patch1: make.patch
+Patch2: json-c-0.14.patch
URL: http://www.opensips.org/
%{?with_geoip:BuildRequires: GeoIP-devel}
%{?with_osp:BuildRequires: OSPToolkit}
BuildRequires: which
#BuildRequires: xmlrpc-c-devel >= 1.10.0
BuildRequires: zlib-devel
-%if %{with radius}
-BuildConflicts: freeradius-client-devel
-BuildConflicts: radcli-devel
-%endif
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
Requires: systemd-units >= 38
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
exclude_modules="%{exclude_modules}"
PREFIX=%{_prefix} \
LIBDIR=%{_lib} \
cfg_prefix=$RPM_BUILD_ROOT \
-cfg_target=%{_sysconfdir}/opensips/ \
+ cfg_target=%{_sysconfdir}/opensips/ \
+ RADIUSCLIENT=RADIUSCLIENT \
CC="%{__cc}" \
CC_EXTRA_OPTS="-I/usr/include/ncurses" \
CFLAGS="%{rpmcflags} -Wcast-align"