File sipxivr.spec of Package sipxivr

Name:    sipxivr
Version: 4.2.1
Release: %{buildno}

Summary:  IVR using FreeSWITCH for sipXecs IP PBX from SIPfoundry
License:  LGPL
Group:    Productivity/Telephony/SIP/Servers
Vendor:   SIPfoundry
Packager: SIPfoundry <sipx-dev@list.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
BuildRequires: asciidoc

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

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

Source: %name-%version.tar.gz

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

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

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

%description
This package is part of the sipXecs Enterprise Unified Communications Solution (IP PBX) from SIPfoundry
(http://www.sipfoundry.org). Install the toplevel RPM called 'sipxecs' to install the entire system.
After installation run the script 'sipxecs-setup' to initialize.

Interactive Voice Response (IVR) subystem that uses FreeSWITCH as a media server. Primary application is
as an auto-attendant.

%prep
%setup -q

%build
%configure  --with-distdir=/home/sipxbuild/src/main/RPMBUILD/../dist
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)
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/sipxecs
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/sipxecs/schema
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/sipxecs/process.d
%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
openSUSE Build Service is sponsored by