File sipximbot.spec of Package sipximbot
#!BuildIgnore: post-build-checks
%define release_prefix 0.
Name: sipximbot
Version: 4.2.1
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
BuildRequires: asciidoc
%if %{_vendor} == redhat
BuildRequires: docbook-style-xsl
%endif
%if %{_vendor} == suse
BuildRequires: docbook-xsl-stylesheets
%endif
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=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,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
%dir %{_sysconfdir}/sipxpbx
%dir %{_sysconfdir}/sipxpbx/imbot
%attr(755,sipxchange,sipxchange) %{_sysconfdir}/sipxpbx/imbot/sipximbot-prompts.properties