File sipxrest.spec of Package sipxrest

%define release_prefix 18505.
Name: sipxrest
Version: 4.1.7
Release: %{buildno}

Summary: REST Server for SipX.
License: LGPL
Group:    Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Url: http://www.sipfoundry.org/sipXrest

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

Source: %name-%version.tar.gz

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

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

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

%description
SIPX REST service

%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/sipXrest
%attr(644,root,root) %{_datadir}/sipxecs/process.d/sipxrest-process.xml
%attr(755,sipxchange,sipxchange) %{_bindir}/sipxrest.sh

openSUSE Build Service is sponsored by