File sipxtacklib.spec of Package sipxtacklib

%define release_prefix 18464.
Name:    sipxtacklib
Version: 4.2.1
Release: %{buildno}

Summary:  Provides an RFC 3261, 3263 compliant SIP stack for the sipX IP PBX
License:  LGPL
Group:    Productivity/Telephony/SIP/Servers
Vendor:   SIPfoundry
Packager: SIPfoundry <sipx-dev@list.sipfoundry.org>
Url:      http://www.sipfoundry.org
%define   lib_name sipXtack

BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: pcre-devel >= 4.5
BuildRequires: asciidoc

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

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

BuildRequires: sipxportlib-devel >= %version

Requires: sipxportlib >= %version

Source: %name-%version.tar.gz
Source100: %name-%version-rpmlintrc

##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.

This project provides an RFC 3261, 3263 compliant SIP stack. It is
used by the sipXecs IP PBX project from SIPfoundry. The
primary interface to the SIP stack is through the SipUserAgent
class. This project depends upon the sipXportLib OS abstraction layer.

%if %{_vendor} == suse
%debug_package
%endif

# Install header files
%package devel
Requires: %name
Requires: sipxportlib-devel >= %version

Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name

%description devel
This project provides an RFC 3261, 3263 compliant SIP stack. It is
used by the sipXecs IP PBX project from SIPfoundry. The
primary interface to the SIP stack is through the SipUserAgent
class. This project depends upon the sipXportLib OS abstraction layer.

This package contains the necessary header files and static libraries
helpful to build projects from the sipXecs library


%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 doc

%install

# makeinstall RPM macro doesn't leverage DESTDIR but instead overrides
# libdir, bindir, etc just for make install. This not copesetic w/how
# our makefiles are built, they'd rather preserve libdir, and use 
# DESTDIR when copying/moving/creating files.  The approach we're taking
# is quite standard, so it's surprising RPM's makeinstall macro is
# the way it is.
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(644,root,root,755)
%doc CONTRIBUTORS README NEWS TODO ChangeLog %name.configlog
%docdir doc/license
%dir %attr(755,root,root) %{_datadir}/sipxecs
%dir %attr(755,root,root) %{_datadir}/sipxecs/schema
%attr(755,root,root) %{_bindir}/dialogdisplay
%attr(755,root,root) %{_bindir}/dialogwatch
%attr(755,root,root) %{_bindir}/siptest
%attr(755,root,root) %{_bindir}/subscribe-dialog-test
%attr(755,root,root) %{_bindir}/%name-config
%attr(644,root,root) %{_datadir}/sipxecs/schema/sip_types.xsd
%if %{_vendor} == redhat
%attr(755,root,root) %{_libdir}/libsipXtack.so.*
%endif
%if %{_vendor} == suse
%attr(755,root,root) %{_libdir}/libsipXtack.so.*
%endif

%files devel
%defattr(644,root,root,755)
%docdir %{_datadir}/doc/sipxecs/%name
%{_datadir}/doc/sipxecs/%name

%{_libdir}/libsipXtack.a
%{_libdir}/libsipXtack.la
%{_libdir}/libsipXtack.so

%dir %attr(755,root,root) %{_includedir}/net
%dir %attr(755,root,root) %{_includedir}/tapi
%dir %attr(755,root,root) %{_includedir}/resparse
%dir %attr(755,root,root) %{_includedir}/siptest

%{_includedir}/net/*
%{_includedir}/tapi/*
%{_includedir}/resparse/*
%{_includedir}/siptest/*

%changelog

openSUSE Build Service is sponsored by