Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e07500b976
Fetching contributors…

Cannot retrieve contributors at this time

162 lines (132 sloc) 4.578 kb
#!BuildIgnore: post-build-checks
Name: @PACKAGE@
Version: @VERSION@
Release: @PACKAGE_REVISION@
Summary: sipXecs ACD statistics tools
License: LGPL
Group: Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Packager: SIPfoundry <sipx-dev@lif.sipfoundry.org>
Url: http://www.sipfoundry.org/
BuildRequires: automake
BuildRequires: java-devel >= 1.6
BuildRequires: rubygems
BuildRequires: sipxcommons >= %version
%if %{_vendor} == redhat
BuildRequires: vixie-cron
%endif
%if %{_vendor} == suse
BuildRequires: cron
%endif
Source: %name-%version.tar.gz
Requires: sipxcommserverlib
Requires: ruby
Requires: rubygems
Requires: rubygem-file-tail
Requires: rubygem-daemons
%if %{_vendor} == redhat
# irb is for file-tail gem
Requires: irb
%endif
Obsoletes : sipxconfig-agent
Obsoletes : sipxconfig-report
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
Provides a SOAP interface to automatic call distribution records. Ideal
for CTI applications or report aggregating tools like sipxconfig-report
or real-time analysys like sipxconfig's statistics web console.
%package client
Group: Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Summary: Ruby and Java API web service bindings for ACD stats
Requires: ruby
Requires: rubygems
%description client
gem and jar of the Ruby and Java API web service bindings for ACD stats
%package report
Group: Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Summary: Aggregates data from sipxconfig-agent into a database for reporting tools
Requires: ruby
Requires: sipxcommserverlib
Requires: rubygems
Requires: ruby-dbi
Requires: %{name}-client >= %{version}
%if %{_vendor} == redhat
Requires: ruby-postgres
%endif
%if %{_vendor} == suse
Requires: rubygem-postgres
%endif
%description report
Report peridocically queries sipxconfig-agent regarding automatic call distribution records
and assembles data into a postgres database SIPXACD_HISTORY for reporting tools.
Although this package does not have any other sipx dependencies because it's not required to
run on the same machine it's default setup it to point to localhost.
%prep
%setup -q
%build
%configure --enable-rpmbuild @SIPX_RPM_CONFIGURE_OPTIONS@
cp config.log %name.configlog
make
%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{_var}/lib/sipxpbx/sipxacd-stats-*.gem
%attr(755,root,root) %{_bindir}/sipxacd-stats
%attr(755,root,root) %{_sysconfdir}/init.d/sipxacd-stats-daemon
%{_datadir}/sipxecs/cfinputs/plugin.d/sipxacdstatistics.cf
%post
gem install --no-rdoc --local %{_var}/lib/sipxpbx/sipXacd-stats-*.gem >/dev/null
%if %{_vendor} == redhat
# change default yum update daemon repo query to once every 24 hours --annonymous coward
# AAAGHHHH - Why!? and Why Here!? -- douglas
if [ -f /etc/yum/yum-updatesd.conf ]; then
sed /etc/yum/yum-updatesd.conf -i -e 's|\W*run_interval\W*=\W*3600\W*|run_interval = 86400|'
/sbin/service yum-updatesd restart >/dev/null
fi
%endif
%preun
# prevent uninstalling during an upgrade
# see http://www-128.ibm.com/developerworks/library/l-rpm3/
if [ "$1" = "0" ] ; then
gem uninstall sipXacd-stats >/dev/null 2>&1 || true
fi
%files report
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/sipXecs/sipxacd-report-setup
%{_var}/lib/sipxpbx/sipxacd-report-*.gem
%attr(755,root,root) %{_bindir}/sipxacd-report
%defattr(644,sipx,sipx,755)
%config(noreplace) %{_sysconfdir}/sipxpbx/report/schema.sql
%config(noreplace) %{_sysconfdir}/sipxpbx/report/enable_upgrades.sql
%config(noreplace) %{_sysconfdir}/sipxpbx/report/location_fqdn.sql
%post report
gem install --no-rdoc --local %{_var}/lib/sipxpbx/sipXacd-report-*.gem >/dev/null
if ( ! test -f /etc/cron.d/cron.allow ) || ( ! grep '^sipx$' /etc/cron.d/cron.allow > /dev/null ); then
echo sipx >> /etc/cron.d/cron.allow
fi
%preun report
# prevent uninstalling during an upgrade
# see http://www-128.ibm.com/developerworks/library/l-rpm3/
if [ "$1" = "0" ] ; then
gem uninstall sipXacd-report >/dev/null 2>&1 || true
fi
%files client
%defattr(644,root,root,755)
%{_var}/lib/sipxpbx/sipxacd-stats-client-*.gem
%{_datadir}/java/sipXecs/sipXconfig/agent-bindings.jar
%post client
gem install --no-rdoc --local %{_var}/lib/sipxpbx/sipxacd-stats-client-*.gem >/dev/null
%preun client
# prevent uninstalling during an upgrade
# see http://www-128.ibm.com/developerworks/library/l-rpm3/
if [ "$1" = "0" ] ; then
gem uninstall sipxacd-stats-client >/dev/null 2>&1 || true
fi
Jump to Line
Something went wrong with that request. Please try again.