Name: asterisk Version: 11.6.0 Release: 2mamba Summary: Asterisk PBX Group: System/Telephony Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.asterisk.org Source: http://downloads.digium.com/pub/asterisk/releases/asterisk-%{version}.tar.gz Patch0: %{name}-1.6.1.1-BOOL_typedef.patch Patch1: %{name}-1.6.1.6-lua.patch Patch2: %{name}-1.8.0-fix_build.patch Patch3: asterisk-11.2.1-libpt-2.10.9.patch Patch4: asterisk-11.2.1-libpt-2.10.9-1.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libalsa-devel BuildRequires: libcap-devel BuildRequires: libcurl-devel BuildRequires: libgcc BuildRequires: libnetsnmp-devel BuildRequires: libnewt-devel BuildRequires: libodbc-devel BuildRequires: libogg-devel BuildRequires: libopenldap-devel BuildRequires: libopenssl-devel BuildRequires: libpopt-devel BuildRequires: libportaudio-devel BuildRequires: libpostgresql-devel BuildRequires: libSDL-devel BuildRequires: libSDL_image-devel BuildRequires: libspeex-devel BuildRequires: libsqlite2-devel BuildRequires: libsqlite-devel BuildRequires: libstdc++6-devel BuildRequires: libtermcap-devel BuildRequires: libvorbis-devel BuildRequires: libX11-devel BuildRequires: libz-devel BuildRequires: perl-devel BuildRequires: rpm-devel ## AUTOBUILDREQ-END BuildRequires: libncurses-devel >= 5.4 BuildRequires: libopenh323-devel >= 1.17.3 BuildRequires: libpt-devel BuildRequires: libmISDN-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root # FIXME: need mpg123 to enable MusicOnHold %description Asterisk is an Open Source PBX and telephony development platform that can both replace a conventional PBX and act as a platform for developing custom telephony applications for delivering dynamic content over a telephone similarly to how one can deliver dynamic content through a web browser using CGI and a web server. Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS, and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g. gnophone or miniphone). For more information and a current list of supported hardware, see www.asteriskpbx.com. %package devel Summary: Development files for the Asterisk software PBX Group: Development/Libraries Requires: %{name} = %{version} %description devel Asterisk is an Open Source PBX and telephony development platform that can both replace a conventional PBX and act as a platform for developing custom telephony applications for delivering dynamic content over a telephone similarly to how one can deliver dynamic content through a web browser using CGI and a web server. Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS, and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g. gnophone or miniphone). For more information and a current list of supported hardware, see www.asteriskpbx.com. This package contains static libraries and header files need for development. %prep %setup -q %patch0 -p1 #%patch1 -p1 %patch2 -p1 #%patch3 -p0 #%patch4 -p0 #./bootstrap.sh %build %configure \ --with-misdn %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %makeinstall samples ##make install INSTALL_PREFIX=%{buildroot} #make samples INSTALL_PREFIX=%{buildroot} # make progdocs INSTALL_PREFIX=%{buildroot} install -D -m 755 contrib/init.d/rc.redhat.asterisk %{buildroot}%{_initrddir}/asterisk ln -sf /var/spool/asterisk/vm %{buildroot}/var/lib/asterisk/sounds/vm ln -sf /var/spool/asterisk/voicemail %{buildroot}/var/lib/asterisk/sounds/voicemail ln -sf /var/spool/asterisk/voicemail/default %{buildroot}/var/spool/asterisk/vm ln -sf libasteriskssl.so.1 %{buildroot}%{_libdir}/libasteriskssl.so %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %postun if [ $1 -eq 1 ]; then #upgrade [ -e /var/lock/subsys/asterisk ] && service asterisk restart fi exit 0 %preun if [ $1 -eq 0 ]; then #erase service asterisk stop /sbin/chkconfig --del asterisk fi exit 0 %files %defattr(-,root,root) %{_initrddir}/asterisk %dir %{_sysconfdir}/asterisk %config(noreplace) %{_sysconfdir}/asterisk/* %{_sbindir}/* %{_libdir}/libasteriskssl.so.* %dir %{_libdir}/asterisk/ %{_libdir}/asterisk/* %dir %{_localstatedir}/lib/asterisk %{_localstatedir}/lib/asterisk/* %dir %{_localstatedir}/log/asterisk %{_localstatedir}/log/asterisk/* %dir %{_localstatedir}/spool/asterisk %{_localstatedir}/spool/asterisk/* %{_mandir}/man8/asterisk.* %{_mandir}/man8/astgenkey.8.gz %{_mandir}/man8/autosupport.8.gz %{_mandir}/man8/safe_asterisk.8.gz %doc CREDITS LICENSE %files devel %defattr(-,root,root) %{_libdir}/libasteriskssl.so %{_includedir}/asterisk.h %dir %{_includedir}/asterisk %{_includedir}/asterisk/* %doc BUGS ChangeLog README %changelog * Thu May 15 2014 Silvan Calarco 11.6.0-2mamba - ffmpeg 2.2 rebuild * Sat Dec 14 2013 Automatic Build System 11.6.0-1mamba - automatic update by autodist * Thu Aug 29 2013 Automatic Build System 11.5.1-1mamba - automatic update by autodist * Mon Jul 22 2013 Automatic Build System 11.5.0-1mamba - automatic update by autodist * Sun May 19 2013 Automatic Build System 11.4.0-1mamba - automatic update by autodist * Mon Apr 01 2013 Automatic Build System 11.3.0-1mamba - automatic version update by autodist * Fri Mar 01 2013 Automatic Build System 11.2.1-1mamba - automatic version update by autodist * Thu Oct 11 2012 Automatic Build System 10.9.0-1mamba - automatic version update by autodist * Sat Aug 11 2012 Automatic Build System 10.7.0-1mamba - automatic version update by autodist * Thu Apr 26 2012 Silvan Calarco 1.8.11.1-1mamba - update to 1.8.11.1 * Sun Oct 02 2011 Automatic Build System 1.8.7.0-1mamba - automatic version update by autodist * Mon Jul 25 2011 Automatic Build System 1.8.5.0-1mamba - automatic version update by autodist * Fri Jun 24 2011 Automatic Build System 1.8.4.3-1mamba - automatic update by autodist * Sun Jun 19 2011 Automatic Build System 1.8.4.2-1mamba - automatic update by autodist * Fri May 20 2011 Automatic Build System 1.8.4-1mamba - automatic update by autodist * Mon Mar 14 2011 Automatic Build System 1.8.3-1mamba - automatic update by autodist * Thu Feb 24 2011 Automatic Build System 1.8.2.4-1mamba - automatic update by autodist * Tue Feb 01 2011 Automatic Build System 1.8.2.3-1mamba - automatic update by autodist * Sun Dec 19 2010 Automatic Build System 1.8.1.1-1mamba - automatic update by autodist * Wed Dec 15 2010 Automatic Build System 1.8.1-1mamba - automatic update by autodist * Fri Oct 29 2010 Automatic Build System 1.8.0-1mamba - automatic update by autodist * Fri Oct 22 2010 Silvan Calarco 1.6.2.10-2mamba - rebuilt with net-snmp 5.6 * Sun Aug 08 2010 Automatic Build System 1.6.2.10-1mamba - automatic update by autodist * Mon Jun 28 2010 Automatic Build System 1.6.2.9-1mamba - automatic update by autodist * Thu Jun 03 2010 Silvan Calarco 1.6.2.8-1mamba - update to 1.6.2.8 * Tue Oct 13 2009 Automatic Build System 1.6.1.6-1mamba - automatic update by autodist * Fri Aug 28 2009 Silvan Calarco 1.6.1.4-2mamba - rebuilt with mISDN support * Tue Aug 11 2009 Automatic Build System 1.6.1.4-1mamba - automatic update by autodist * Tue Aug 04 2009 Automatic Build System 1.6.1.2-1mamba - automatic update by autodist * Thu Jul 16 2009 Automatic Build System 1.6.1.1-2mamba - automatic rebuild by autodist * Thu Jul 16 2009 Automatic Build System 1.6.1.1-1mamba - automatic update by autodist * Sat May 16 2009 Automatic Build System 1.6.0.8-1mamba - automatic update to 1.6.0.8 by autodist * Mon Nov 24 2008 Silvan Calarco 1.6.0-1mamba - update to 1.6.0 * Fri Oct 31 2008 Silvan Calarco 1.4.22-1mamba - update to 1.4.22 * Sun May 20 2007 Silvan Calarco 1.4.4-1mamba - update to 1.4.4 * Wed Aug 31 2005 Davide Madrisan 1.0.9-1qilnx - update to version 1.0.9 by autospec - also fix CAN-2005-2081 (fixed in version 1.0.8) * Tue Apr 26 2005 Davide Madrisan 1.0.7-1qilnx - update to version 1.0.7 by autospec * Tue Mar 09 2004 Davide Madrisan 0.7.2-1qilnx - new version rebuild * Tue Dec 30 2003 Silvan Calarco 0.5.0-1qilnx - new version rebuild * Wed May 07 2003 Silvan Calarco 0.4.0-3qilnx - added fixing code for /etc/asterisk.conf which is installed with $RPM_BUILD_ROOT content * Wed May 07 2003 Silvan Calarco 0.4.0-2qilnx - added make samples * Mon May 05 2003 Silvan Calarco 0.4.0-1qilnx - creation of asterisk package