File sipxmediaadapterlib.spec of Package sipxmediaadapterlib

%define release_prefix 18185.
Name:    sipxmediaadapterlib
Version: 4.2.1
Release: %{buildno}

Summary:  OS Abstraction and OS Utilities library for sipXecs 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 sipXmediaProcessing

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

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

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

BuildRequires: sipxmedialib-devel >= %version
BuildRequires: sipxtacklib-devel  >= %version
BuildRequires: sipxportlib-devel  >= %version

Requires: openssl >= 0.9.7a
Requires: pcre >= 4.5



Requires: sipxmedialib >= %version
Requires: sipxtacklib  >= %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 library provides a set of adapters for using a media subsystem. Three
adapters currently have been implemented. They are for media processing,
GIPS VoiceEngine, and GIPS ConferenceEngine. The applications must select an
appropriate library during the link time in order to use the right media
subsystem. GIPS is no longer needed.

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

# Install header files
%package devel
Requires: openssl-devel >= 0.9.7a
Requires: %name
Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name 

Requires: sipxmedialib-devel >= %version
Requires: sipxtacklib-devel >= %version
Requires: sipxportlib-devel >= %version

%description devel
 This library provides a set of adapters for using a media subsystem. Three
adapters currently have been implemented. They are for Pintel media processing,
GIPS VoiceEngine, and GIPS ConferenceEngine. The applications must select an
appropriate library during the link time in order to use the right media
subsystem.


%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

%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
# Do Not Clean - when we are building a set of sipX RPMs, we need the 
#                dependencies to be here.
rm -rf $RPM_BUILD_ROOT


%files
%defattr(644,root,root,755)
%doc CONTRIBUTORS README NEWS TODO ChangeLog %name.configlog
%if %{_vendor} == redhat
%attr(755,root,root) %{_libdir}/libsipXmediaProcessing.so.*
%endif
%if %{_vendor} == suse
%attr(755,root,root) %{_libdir}/libsipXmediaProcessing.so.*
%endif

%files devel
%defattr(644,root,root,755)
%doc CONTRIBUTORS README NEWS TODO ChangeLog %name.configlog
%docdir %{_datadir}/doc/sipxecs/%name
%{_datadir}/doc/sipxecs/%name

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

%dir %attr(755,root,root) %{_includedir}/mi
%{_includedir}/mi/*.h
openSUSE Build Service is sponsored by