|
|
|
|
@ -72,6 +72,8 @@ BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep, config
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20040130 |
|
|
|
|
BuildPreReq: zlib, curl, openssl, ncurses, speex, vorbis-libs, imap, popt, sqlite, iksemel, lua |
|
|
|
|
PreReq: zlib, curl, openssl, ncurses, speex, vorbis-libs, imap, popt, sqlite, iksemel, lua |
|
|
|
|
BuildPreReq: spandsp, tiff, jpeg, libxml, zlib |
|
|
|
|
PreReq: spandsp, tiff, jpeg, libxml, zlib |
|
|
|
|
BuildPreReq: perl, perl-openpkg |
|
|
|
|
PreReq: perl |
|
|
|
|
%if "%{with_mp3}" == "yes" |
|
|
|
|
@ -277,6 +279,25 @@ AutoReqProv: no
|
|
|
|
|
CC="%{l_cc} %{l_cflags -O} -I. -I./include -I../include -I../../include %{l_cppflags ncurses lua .}" |
|
|
|
|
|
|
|
|
|
# build addon modules |
|
|
|
|
( cd asterisk-addons-* |
|
|
|
|
ASTERISK_DIR="`pwd`/.." \ |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags ncurses tiff .}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags}" \ |
|
|
|
|
LIBS="-ltiff -ljpeg -lz -lm" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--mandir=%{l_prefix}/man \ |
|
|
|
|
--sysconfdir=%{l_prefix}/etc/asterisk \ |
|
|
|
|
--localstatedir=%{l_prefix}/var/asterisk \ |
|
|
|
|
--with-ncurses \ |
|
|
|
|
--with-asterisk \ |
|
|
|
|
--without-mysqlclient \ |
|
|
|
|
--with-spandsp=%{l_prefix} |
|
|
|
|
%{l_make} %{l_mflags} \ |
|
|
|
|
CC="%{l_cc} %{l_cflags -O} -I. %{l_cppflags ncurses tiff .}" |
|
|
|
|
) || exit $? |
|
|
|
|
( cd appconference-* |
|
|
|
|
%{l_make} %{l_mflags} \ |
|
|
|
|
INSTALL_PREFIX=%{l_prefix} |
|
|
|
|
@ -311,6 +332,11 @@ AutoReqProv: no
|
|
|
|
|
INSTALL_PREFIX=%{l_prefix} |
|
|
|
|
|
|
|
|
|
# install addon modules |
|
|
|
|
( cd asterisk-addons-* |
|
|
|
|
%{l_make} %{l_mflags} install \ |
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \ |
|
|
|
|
INSTALL_PREFIX=%{l_prefix} |
|
|
|
|
) || exit $? |
|
|
|
|
( cd appconference-* |
|
|
|
|
%{l_make} %{l_mflags} install \ |
|
|
|
|
INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} \ |
|
|
|
|
|