64 %option with_radius no |
64 %option with_radius no |
65 %option with_sqlite no |
65 %option with_sqlite no |
66 %option with_srtp no |
66 %option with_srtp no |
67 %option with_pgsql no |
67 %option with_pgsql no |
68 %option with_lua no |
68 %option with_lua no |
|
69 %option with_gtalk no |
69 %option with_jabber no |
70 %option with_jabber no |
70 %option with_imap no |
71 %option with_imap no |
71 %option with_odbc no |
72 %option with_odbc no |
72 %option with_libpri no |
73 %option with_libpri no |
73 %option with_esounds no |
74 %option with_esounds no |
161 %endif |
162 %endif |
162 %if "%{with_radius}" == "yes" |
163 %if "%{with_radius}" == "yes" |
163 BuildPreReq: radiusclient |
164 BuildPreReq: radiusclient |
164 PreReq: radiusclient |
165 PreReq: radiusclient |
165 %endif |
166 %endif |
|
167 %if "%{with_gtalk}" == "yes" |
|
168 %define with_jabber yes |
|
169 %endif |
166 %if "%{with_jabber}" == "yes" |
170 %if "%{with_jabber}" == "yes" |
167 BuildPreReq: iksemel |
171 BuildPreReq: iksemel |
168 PreReq: iksemel |
172 PreReq: iksemel |
169 %endif |
173 %endif |
170 %if "%{with_odbc}" == "yes" |
174 %if "%{with_odbc}" == "yes" |
259 url = ftp://ftp.chan-capi.org/chan-capi/ |
263 url = ftp://ftp.chan-capi.org/chan-capi/ |
260 regex = chan_capi-(__VER__)\.tar\.gz |
264 regex = chan_capi-(__VER__)\.tar\.gz |
261 } |
265 } |
262 |
266 |
263 %prep |
267 %prep |
|
268 %if "%{with_capi}" == "yes" |
|
269 ( echo "Note that the system header files capi20.h, capicmd.h, and capiutils.h might" |
|
270 echo "need adjusting in accordance withthe CAPI hardware vendor's kernel driver." |
|
271 ) | %{l_rpmtool} msg -b -t warn |
|
272 %endif |
264 %setup -q -n asterisk-%{V_asterisk} |
273 %setup -q -n asterisk-%{V_asterisk} |
265 %setup -q -n asterisk-%{V_asterisk} -D -T -a 1 |
274 %setup -q -n asterisk-%{V_asterisk} -D -T -a 1 |
266 %setup -q -n asterisk-%{V_asterisk} -D -T -a 2 |
275 %setup -q -n asterisk-%{V_asterisk} -D -T -a 2 |
267 %if "%{with_fax}" == "yes" |
276 %if "%{with_fax}" == "yes" |
268 %setup -q -n asterisk-%{V_asterisk} -D -T -a 28 |
277 %setup -q -n asterisk-%{V_asterisk} -D -T -a 28 |
284 %patch -p0 -P 2 |
293 %patch -p0 -P 2 |
285 %endif |
294 %endif |
286 %{l_shtool} subst \ |
295 %{l_shtool} subst \ |
287 -e 's;\(astdatadir=.*\)\${astvarlibdir};\1${datadir};' \ |
296 -e 's;\(astdatadir=.*\)\${astvarlibdir};\1${datadir};' \ |
288 -e 's;\(astvarlibdir=.*\)/lib/asterisk;\1/asterisk/lib;' \ |
297 -e 's;\(astvarlibdir=.*\)/lib/asterisk;\1/asterisk/lib;' \ |
|
298 -e 's;\(astdbdir=.*\)\${astvarlibdir};\1${localstatedir}/asterisk/db;' \ |
289 -e 's;\(dir=.*{localstatedir}\)/\([^/][^/]*\)/asterisk;\1/asterisk/\2;g' \ |
299 -e 's;\(dir=.*{localstatedir}\)/\([^/][^/]*\)/asterisk;\1/asterisk/\2;g' \ |
290 configure |
300 configure |
291 %{l_shtool} subst \ |
301 %{l_shtool} subst \ |
292 -e 's;ffmpeg/avcodec\.h;libavcodec/avcodec.h;' \ |
302 -e 's;ffmpeg/avcodec\.h;libavcodec/avcodec.h;' \ |
293 -e 's;\(sqlite\)\(_exec\);\13\2;g' \ |
303 -e 's;\(sqlite\)\(_exec\);\13\2;g' \ |
760 [ ".$name" = ".chan_dahdi.conf" ] && continue |
770 [ ".$name" = ".chan_dahdi.conf" ] && continue |
761 %endif |
771 %endif |
762 %if "%{with_capi}" == "no" |
772 %if "%{with_capi}" == "no" |
763 [ ".$name" = ".capi.conf" ] && continue |
773 [ ".$name" = ".capi.conf" ] && continue |
764 %endif |
774 %endif |
|
775 %if "%{with_gtalk}" == "no" |
|
776 [ ".$name" = ".gtalk.conf" ] && continue |
|
777 %endif |
|
778 %if "%{with_jabber}" == "no" |
|
779 [ ".$name" = ".jabber.conf" ] && continue |
|
780 %endif |
765 %if "%{with_sqlite}" == "no" |
781 %if "%{with_sqlite}" == "no" |
766 [ ".$name" = ".cdr_sqlite3_custom.conf" ] && continue |
782 [ ".$name" = ".cdr_sqlite3_custom.conf" ] && continue |
767 %endif |
783 %endif |
768 %if "%{with_odbc}" == "no" |
784 %if "%{with_odbc}" == "no" |
769 [ ".$name" = ".res_odbc.conf" ] && continue |
785 [ ".$name" = ".res_odbc.conf" ] && continue |