File sipxivr.spec of Package sipxivr
%define release_prefix 18505.
Name: sipxivr
Version: 4.1.7
Release: %{buildno}
Summary: IVR 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: ant-commons-logging
BuildRequires: ant-junit
BuildRequires: ant-nodeps
BuildRequires: automake
BuildRequires: java-devel >= 1.6
BuildRequires: zip
BuildRequires: sipxcommons >= %version
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
IVR 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/sipXivr
%attr(644,root,root) %{_datadir}/sipxecs/process.d/sipxivr-process.xml
%attr(644,root,root) %{_datadir}/sipxecs/schema/autoattendants.xsd
%attr(644,root,root) %{_datadir}/sipxecs/schema/validusers.xsd
%attr(755,sipxchange,sipxchange) %{_bindir}/sipxivr.sh
%attr(755,sipxchange,sipxchange) %{_bindir}/sipxivr-config