File sipxfreeswitch.spec of Package sipxfreeswitch
%define release_prefix 18185.
Name: sipxfreeswitch
Version: 4.1.7
Release: %{buildno}
Summary: FreeSWITCH startup scripts.
Requires: sipx-freeswitch >= 1.0.5
Requires: sipxcommserverlib >= %version
License: LGPL
Group: Productivity/Telephony/SIP/Servers
Url: http://www.sipfoundry.org
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Vendor: SIPfoundry
BuildRequires: automake
Requires: sipx-freeswitch >= 1.0.4
Requires: sipxcommserverlib >= %version
Source: %name-%version.tar.gz
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
FreeSWITCH startup scripts for sipx.
%prep
%setup -q
%build
%configure --with-distdir=../dist SIPX_PROJECTS=sipxacd sipxbridge sipxcallcontroller sipxcalllib sipxcdrlog sipxcommons sipxcommserverlib sipxconfig sipxecs sipxfreeswitch sipximbot sipxivr sipxmediaadapterlib sipxmedialib sipxopenfire sipxpage sipxpark sipxpbx sipxportlib sipxpresence sipxprovision sipxproxy sipxpublisher sipxrecording sipxregistry sipxrelay sipxrest sipxrls sipxsaa sipxsupervisor sipxtacklib sipxtools sipxecs-doc
cp config.log %name.configlog
make all
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,sipxchange,sipxchange,755)
%attr(644,root,root) %{_datadir}/sipxecs/process.d/freeswitch-process.xml
%attr(755,root,root) %{_bindir}/freeswitch.sh
%attr(755,root,root) %{_libexecdir}/sipXecs/setup.d/freeswitch_setup.sh
%attr(755,root,root) %{_bindir}/%name-config
%post
freeswitch.sh --config
if test -e %{_sysconfdir}/logrotate.d/freeswitch; then rm -f %{_sysconfdir}/logrotate.d/freeswitch; fi