]> git.pld-linux.org Git - packages/opensips.git/blobdiff - opensips.spec
- fix building with json-c 0.14
[packages/opensips.git] / opensips.spec
index 8c96fbac8fba39f8b23dfbc32a95be17d79115c9..7be8c4896a01be1289227a0a8bd01fbfcf80d090 100644 (file)
@@ -22,7 +22,7 @@ Summary:      SIP proxy, redirect and registrar server
 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
@@ -32,6 +32,7 @@ Source2:      %{name}.sysconfig
 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}
@@ -70,10 +71,6 @@ BuildRequires:       rpmbuild(macros) >= 1.671
 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
@@ -338,6 +335,7 @@ Interfejs RabbitMQ do openSIPS.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 exclude_modules="%{exclude_modules}"
@@ -402,7 +400,8 @@ LDFLAGS="%{rpmldflags}" \
        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"
This page took 0.086948 seconds and 4 git commands to generate.