Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
asterisk
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 59
[-]
[+]
Changed
asterisk.spec
@@ -6,9 +6,13 @@ # rootforbuild %define build_h323 0 Name: asterisk -BuildRequires: alsa-devel curl-devel expat gcc-c++ libgsm-devel libgsm1 libpri libtiff-devel postgresql-devel spandsp speex-devel > 1.0 unixODBC-devel wget +BuildRequires: alsa-devel curl-devel expat gcc-c++ libgsm-devel libgsm1 libtiff-devel speex-devel > 1.0 unixODBC-devel wget BuildRequires: libpri >= 1.4.1 BuildRequires: zaptel >= 1.4.1 +%if 0%{?suse_version} > 1020 +BuildRequires: fdupes +%enidf + %if 0%{?sles_version} > 10 BuildRequires: mISDNuser mISDNuser-devel %else @@ -28,7 +32,7 @@ BuildRequires: openssl-devel BuildRequires: spandsp spandsp-devel BuildRequires: autoconf openldap2 openldap2-devel -Buildrequires: iksemel unixODBC termcap iksemel-devel +Buildrequires: iksemel unixODBC iksemel-devel Buildrequires: postgresql-devel postgresql-server %if %build_h323 == 1 @@ -39,8 +43,8 @@ BuildRequires: SDL-devel %endif -Requires: newt ncurses postgresql-libs speex > 1.0 openldap2 postgresql-devel libgsm1 -Requires: iksemel +Requires: newt ncurses postgresql-libs speex > 1.0 openldap2 postgresql-devel +Requires: iksemel libgsm1 %ifnarch s390 s390x BuildRequires: zaptel >= 1.4.1 @@ -238,6 +242,13 @@ # %{__rm} -rf %{buildroot}%{_localstatedir}/lib/asterisk/static-http 2>/dev/null # %{__rm} -f %{buildroot}%{_localstatedir}/lib/asterisk/agi-bin/* 2>/dev/null %{__rm} -f %{buildroot}%{_localstatedir}/lib/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.8 +%{__rm} -f %{buildroot}%{_localstatedir}/lib/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.15 + +%if 0%{?suse_version} > 1020 +%fdupes $RPM_BUILD_ROOT%{_localstatedir}/lib/asterisk/sounds +%endif +mkdir -p examples +cp -R static-http agi/*-test agi/*.agi examples/ %pre %{_sbindir}/groupadd -g 330 -r asterisk &>/dev/null || : @@ -251,11 +262,18 @@ chown asterisk:asterisk /var/log/asterisk mv /etc/asterisk/manager.conf /etc/asterisk/manager.conf.bak && cat /etc/asterisk/manager.conf.bak | grep -v 'webenabled' | sed -e '/\[general\]/awebenabled = yes' > /etc/asterisk/manager.conf +%postun +%insserv_cleanup + %preun +%if 0%{?suse_version} +%stop_on_removal +%else if [ $1 -eq 0 ]; then /sbin/service asterisk stop &> /dev/null || : /sbin/chkconfig --del asterisk fi +%endif %clean @@ -264,7 +282,7 @@ %files %defattr(-,root,root,-) %doc BUGS CHANGES ChangeLog COPYING CREDITS doc/* configs LICENSE sample.call README* *.txt -%doc static-http agi/*-test agi/*.agi +%doc examples %{_initrddir}/asterisk