File sipxtacklib.spec of Package sipxtacklib

Name: sipxtacklib
Version: 3.8.1
Release: 0

Summary:  This project provides an RFC 3261, 3263 compliant SIP stack
License: LGPL
Group: Development/Libraries
Vendor: SIPfoundry
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Url: http://www.sipfoundry.org/sipXtackLib

Requires: sipxportlib >= %{version}
%if %{?sles_version:1}0
%else
BuildRequires: ant-nodeps
%endif

BuildRequires: ant-junit
BuildRequires: ant-trax
BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: jakarta-commons-beanutils
BuildRequires: java-1_5_0-sun-devel
BuildRequires: krb5-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pcre-devel
BuildRequires: patch
BuildRequires: sipxportlib-devel >= %{version}
BuildRequires: subversion
BuildRequires: sudo
BuildRequires: update-alternatives
BuildRequires: wget
BuildRequires: zip


Source: %name-%version.tar.bz2

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

%description
This project provides an RFC 3261, 3263 complient SIP stack. This
stack is built upon a modest foot print HTTP stack. Both the SIP and
HTTP stack are intended to be usable in embedded systems. However they
are fully functional (i.e. there where no compromises made to in
functionality to achieve the ability to embed the stacks.). The
primary interface to the SIP stack it through the SipUserAgent
class. This project depends upon the sipXportLib OS abstraction layer.

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

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

%description devel
This project provides an RFC 3261, 3263 complient SIP stack. This
stack is built upon a modest foot print HTTP stack. Both the SIP and
HTTP stack are intended to be usable in embedded systems. However they
are fully functional (i.e. there where no compromises made to in
functionality to achieve the ability to embed the stacks.). The
primary interface to the SIP stack it through the SipUserAgent
class. This project depends upon the sipXportLib OS abstraction layer.

This package contains the neccessary header files and static libraries
helpful to build projects from the sipX library

%prep
%setup -q

%build
autoreconf
%configure
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 LICENSE INSTALL README NEWS TODO ChangeLog %name.configlog
%docdir doc/license
%attr(755,root,root) %{_bindir}/merge-logs
%attr(755,root,root) %{_bindir}/siplog2siptrace
%attr(755,root,root) %{_bindir}/siptest
%attr(755,root,root) %{_bindir}/sipviewer
%attr(755,root,root) %{_bindir}/subscribe-dialog-test
%attr(755,root,root) %{_bindir}/%name-config
%attr(755,root,root) %{_bindir}/siptrace-merge
%attr(755,root,root) %{_bindir}/syslog2siptrace
%attr(755,root,root) %{_libdir}/libsipXtack.la
%attr(755,root,root) %{_libdir}/libsipXtack.so*
%attr(755,root,root) %{_datadir}/sipx/schema/sip_types.xsd
%{_libdir}/sipviewer/*.jar

%files devel
%defattr(644,root,root,755)
%doc %{_datadir}/doc/sipx/%name/*
%attr(755,root,root) %{_libdir}/libsipXtack.a
# %attr(755,root,root) %{_libdir}/debug/usr/lib/libsipXtack.so*
%{_includedir}/net/*
%{_includedir}/tapi/*
%{_includedir}/resparse/*
%{_includedir}/siptest/*

openSUSE Build Service is sponsored by