Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
asterisk18
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 16
[-]
[+]
Changed
asterisk.spec
@@ -28,8 +28,10 @@ Source3: asterisk-moh-opsound-wav-2.03.tar.gz.sha1 Source5: mp3.tar.bz2 Patch1: asterisk-init.diff -Patch2: asterisk-configure-paths.diff +#Patch2: asterisk-configure-paths.diff +%if 0%{?suse_version} >= 1200 Patch3: asterisk-rundir.diff +%endif Patch4: asterisk-deps.diff BuildRoot: %_tmppath/%name-%version-build BuildRequires: autoconf >= 2.60, automake >= 1.9, bison, dahdi-linux-devel @@ -263,9 +265,11 @@ tar -xf "%{S:0}" --use=xz; %setup -DTq -n asterisk-%{version} %endif -%patch -P 1 -P 2 -P 4 -p1 +%patch1 -p1 +## patch2 -p1 +%patch4 -p1 %if 0%{?suse_version} >= 1200 -%patch -P 3 -p1 +%patch3 -p1 %endif cp %{S:1} $RPM_BUILD_DIR/%origname-%{version}/sounds/ cp %{S:2} $RPM_BUILD_DIR/%origname-%{version}/sounds/ @@ -278,7 +282,7 @@ export CFLAGS="%optflags" make menuselect.makeopts; echo "MENUSELECT_EXTRA_SOUNDS=EXTRA-SOUNDS-EN-GSM" >> menuselect.makeopts -echo "MENUSELECT_ADDONS=chan_mobile format_mp3 res_config_mysql app_mysql cdr_mysql" >> menuselect.makeopts +#echo "MENUSELECT_ADDONS=chan_mobile format_mp3 res_config_mysql app_mysql cdr_mysql" >> menuselect.makeopts echo "MENUSELECT_UTILS=astcanary aelparse check_expr check_expr2 conf2ael hashtest hashtest2 muted refcounter stereorize streamplayer" >> menuselect.makeopts echo "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> menuselect.makeopts # Force generation of BUILT_SOURCES-like files because asterisk can't get @@ -294,9 +298,9 @@ install -Dpm0755 contrib/init.d/rc.suse.asterisk "$b/%_initddir/asterisk"; ln -sf %_initddir/asterisk "$b/%_sbindir/rcasterisk"; -mkdir -p "$b/%_localstatedir/lib/asterisk"; -mv "$b/%_datadir/asterisk/phoneprov" "$b/%_localstatedir/lib/asterisk/"; -ln -s "%_localstatedir/lib/asterisk/phoneprov" "$b/%_datadir/asterisk/"; +#mkdir -p "$b/%_localstatedir/lib/asterisk"; +#mv "$b/%_datadir/asterisk/phoneprov" "$b/%_localstatedir/lib/asterisk/"; +#ln -s "%_localstatedir/lib/asterisk/phoneprov" "$b/%_datadir/asterisk/"; %if !0%{?with_ais} rm -f "$b/%_sysconfdir/asterisk/ais.conf"; @@ -382,14 +386,13 @@ %dir %_libdir/asterisk %dir %_libdir/asterisk/modules %dir %_datadir/asterisk -%_datadir/asterisk/documentation -%_datadir/asterisk/firmware -%_datadir/asterisk/images -%_datadir/asterisk/phoneprov -%_datadir/asterisk/static-http -%_datadir/asterisk/agi-bin -%_localstatedir/lib/asterisk -%dir %_localstatedir/lib/asterisk/agi-bin +%dir %_localstatedir/lib/asterisk +%_localstatedir/lib/asterisk/documentation +%_localstatedir/lib/asterisk/firmware +%_localstatedir/lib/asterisk/images +%_localstatedir/lib/asterisk/phoneprov +%_localstatedir/lib/asterisk/static-http +%_localstatedir/lib/asterisk/agi-bin %attr(0750,asterisk,asterisk) %_localstatedir/spool/asterisk %attr(0750,asterisk,asterisk) %dir %_localstatedir/log/asterisk %_mandir/man8/* @@ -441,8 +444,8 @@ %files moh-base %defattr(-,root,root) -%dir %_datadir/asterisk -%_datadir/asterisk/moh +%dir %_localstatedir/lib/asterisk +%_localstatedir/lib/asterisk/moh %files odbc %defattr(-,root,root) @@ -462,8 +465,8 @@ %files sounds-base %defattr(-,root,root) -%dir %_datadir/asterisk -%_datadir/asterisk/sounds +%dir %_localstatedir/lib/asterisk +%_localstatedir/lib/asterisk/sounds %if %{defined build_radius} %files radius