Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e07500b976
Fetching contributors…

Cannot retrieve contributors at this time

executable file 152 lines (130 sloc) 4.27 kb
#!BuildIgnore: post-build-checks
Name: @PACKAGE@
Version: @VERSION@
Release: @PACKAGE_REVISION@
Summary: Common Code for sipX servers
License: Pingtel Commercial License
Group: Development/Libraries
Vendor: Pingtel Corp.
Url: http://www.pingtel.com
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: cppunit-devel
BuildRequires: pcre-devel >= 4.5
BuildRequires: unixODBC-devel >= 2.2
BuildRequires: sipxportlib-devel >= %version
BuildRequires: sipxtacklib-devel >= %version
BuildRequires: glibc-headers
%if %{_vendor} == redhat
BuildRequires: httpd-devel
BuildRequires: xerces-c-devel >= 2.6.0
BuildRequires: shadow-utils
%endif
BuildRequires: mongodb-devel >= 2.0.2
Source: %name-%version.tar.gz
Requires: rpm
%if %{_vendor} == suse
BuildRequires: apache2-devel
BuildRequires: xerces-c-devel = 2.8.0
Requires: xerces-c >= 2.6.0
BuildRequires: pwdutils
Requires: pwdutils
%endif
%if %{_vendor} == redhat
Requires: xerces-c >= 2.6.0
Requires: rpm-libs
%endif
Requires: sipxportlib >= %version
Requires: sipxtacklib >= %version
Requires: unixODBC >= 2.2
Requires: ruby
Requires: patch
# bind-utils required for dig
Requires: bind-utils
Requires: sipxmongo >= %version
Requires: sipxsupervisor >= %version
Obsoletes: %{name}-doc
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
This project is used to hold code used in common by a number of the
sipX family servers. It is not intended to be useful as a standalone
project.
%if %{_vendor} == suse
%debug_package
%endif
# Install header files
%package devel
Requires: %name
%if %{_vendor} == suse
Requires: xerces-c-devel >= 2.6.0
%endif
%if %{_vendor} == redhat
Requires: xerces-c-devel >= 2.6.0
%endif
Requires: sipxportlib-devel >= %version
Requires: sipxtacklib-devel >= %version
Requires: unixODBC-devel >= 2.2
Requires: mongodb-devel >= 2.0.2
Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name
%description devel
This package contains the neccessary header files and static libraries
helpful to build projects using the sipXcommserverLib library
%prep
%setup -q
# suse and obs build system
mv %{_builddir}/%name-%version/%name-rpmlintrc %{_sourcedir}
%build
%configure @SIPX_RPM_CONFIGURE_OPTIONS@
cp config.log %name.configlog
make %{_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README ChangeLog %name.configlog
%{_datadir}/sipxecs/cfinputs/plugin.d/sipxcommserverlib.cf
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/libsipXcommserver.la
%attr(755,root,root) %{_libdir}/libsipXcommserver.so*
%attr(755,root,root) %{_libexecdir}/sipXecs/sipx-utils.sh
%attr(755,root,root) %{_libexecdir}/sipXecs/sipx-strip-db-secrets.pl
%attr(755,root,root) %{_libexecdir}/sipXecs/sipx-archive-common
%attr(4750,root,sipx) %{_libexecdir}/sipXecs/sipxpackage
%attr(4750,root,sipx) %{_libexecdir}/sipXecs/sipxswadmin
%attr(4750,root,sipx) %{_libexecdir}/sipXecs/sipxcdrpostgres
%attr(755,root,root) %{_libexecdir}/sipXecs/setup.d/sipxpackage-init
%attr(755,root,root) %{_libexecdir}/sipXecs/setup.d/sipxswadmin-init
%attr(755,root,root) %{_libexecdir}/sipXecs/setup.d/sipxcdrpostgres-init
%{_datadir}/sipxecs/schema/xml.xsd
%{_datadir}/sipxecs/schema/authrules.xsd
%{_datadir}/sipxecs/schema/credential.xsd
%{_datadir}/sipxecs/schema/registration.xsd
%{_datadir}/sipxecs/schema/subscription.xsd
%{_datadir}/sipxecs/schema/urlmap.xsd
# These should match sipXlib.m4 or at least sent
# to configure script
%dir %attr(755,sipx,sipx) %{_sysconfdir}/sipxpbx
%dir %attr(755,sipx,sipx) %{_datadir}/sipxecs
%dir %attr(755,sipx,sipx) %{_localstatedir}/log/sipxpbx
%dir %attr(755,sipx,sipx) %{_localstatedir}/run/sipxpbx
%dir %attr(755,sipx,sipx) %{_localstatedir}/sipxdata
%dir %attr(755,sipx,sipx) %{_localstatedir}/sipxdata/tmp
%dir %attr(755,sipx,sipx) %{_localstatedir}/sipxdata/sipdb
%dir %attr(755,sipx,sipx) %{_libexecdir}/sipXecs
%dir %attr(755,sipx,sipx) %{_libexecdir}/sipXecs/setup.d
%files devel
%defattr(644,root,root,755)
%{_includedir}/configrpc/*
%{_includedir}/digitmaps/*
%{_includedir}/filereader/*
%{_includedir}/odbc/*
%{_includedir}/persist/*
%{_includedir}/sipdb/*
%{_includedir}/sipXecsService/*
%changelog
Jump to Line
Something went wrong with that request. Please try again.