File sipxfreeswitch.spec of Package sipxfreeswitch

%define release_prefix 18591.
Name: sipxfreeswitch
Version: 4.2.1
Release: %{buildno}

Summary: FreeSWITCH startup scripts.
License: LGPL
Group:    Productivity/Telephony/SIP/Servers
Url: http://www.sipfoundry.org
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Vendor: SIPfoundry

BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: sipxcommserverlib-devel >= %version
BuildRequires: asciidoc

%if %{_vendor} == redhat
BuildRequires: docbook-style-xsl
%endif

%if %{_vendor} == suse
BuildRequires: docbook-xsl-stylesheets
%endif

Requires: sipx-freeswitch >= 1.0.5
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=sipxportlib sipxtacklib sipxmedialib sipxmediaadapterlib sipxcalllib sipxcommserverlib sipxcommons sipxacd sipxbridge sipxcallcontroller sipxcdrlog sipxconfig sipxfreeswitch sipximbot sipxivr sipxopenfire sipxpage sipxpark sipxpresence sipxprovision sipxproxy sipxpublisher sipxrecording sipxregistry sipxrelay sipxrest sipxrls sipxsaa sipxsupervisor sipxtools sipxecs-doc sipxpbx sipxecs
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)
%dir %{_datadir}/sipxecs
%dir %{_datadir}/sipxecs/process.d
%attr(644,root,root) %{_datadir}/sipxecs/process.d/freeswitch-process.xml
%attr(755,root,root) %{_bindir}/freeswitch.sh
%dir %{_libexecdir}/sipXecs
%dir %{_libexecdir}/sipXecs/setup.d
%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

openSUSE Build Service is sponsored by