File sipximbot.spec of Package sipximbot

%define release_prefix 18476.
Name: sipximbot
Version: 4.1.7
Release: %{buildno}

Summary: IM Bot using FreeSwitch for sipX
License: LGPL
Group: Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Url: http://www.sipfoundry.org

BuildRequires: java-devel >= 1.6
BuildRequires: ant-commons-logging
BuildRequires: ant-junit
BuildRequires: ant-nodeps
BuildRequires: automake
BuildRequires: zip
BuildRequires: sipxcommserverlib
BuildRequires: sipxcommons
BuildRequires: sipxopenfire

Source: %name-%version.tar.gz

Obsoletes: sipxvxml

Requires: sipxcommserverlib >= %version
Requires: sipxcommons >= %version
Requires: sipxopenfire >= %version

%if %{?use_ibm_jvm}0
Requires: java-ibm >= 1.6
Requires: java-ibm-unrestricted
%endif

Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root

%description
IM Bot subystem that uses FreeSWITCH as a media server.

%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,root,root,755)
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXimbot
%attr(644,root,root) %{_datadir}/sipxecs/process.d/sipximbot-process.xml
%config(noreplace) %attr(755,sipxchange,sipxchange) %{_localstatedir}/sipxdata/sipximbot
%attr(755,sipxchange,sipxchange) %{_bindir}/sipximbot.sh
%attr(755,sipxchange,sipxchange) %{_bindir}/sipximbot-config
%attr(755,sipxchange,sipxchange) %{_sysconfdir}/sipxpbx/imbot/sipximbot-prompts.properties
openSUSE Build Service is sponsored by