File sipxcalllib.spec of Package sipxcalllib
Name: sipxcalllib
Version: 4.2.1
Release: %{buildno}
Summary: SIP call processing 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 sipXcall
BuildRequires: automake, 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: sipxmediaadapterlib-devel >= %version
BuildRequires: sipxmedialib-devel >= %version
BuildRequires: sipxportlib-devel >= %version
BuildRequires: sipxtacklib-devel >= %version
Source: %name-%version.tar.gz
Source100: %name-%version-rpmlintrc
Requires: sipxtacklib >= %version
Requires: sipxmedialib >= %version
Requires: sipxmediaadapterlib >= %version
##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.
The call processing subsystem provides the core to all sipXecs end points
or user agents. The sipXcallLib library contains technologies related to call processing:
* cp - An abstracted Call Processing model
* ptapi - A C++ version of JTAPI call model
* ps - An abstraction for virtual (or physical) phone set objects
(e.g. lamps, hookswitch)
* tao - A transport layer designed to decouple (and remote) the
application layer from call processing.
%if %{_vendor} == suse
%debug_package
%endif
# Install header files
%package devel
Requires: %name
Requires: sipxtacklib-devel >= %version
Requires: sipxmedialib-devel >= %version
Requires: sipxmediaadapterlib-devel >= %version
Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name
%description devel
The call processing subsystem provides the core to all sipX end points
or user agents (e.g. sipXphone and sipXvxml). The sipXcallLib library
contains technologies related to call processing:
* cp - An abstracted Call Processing model
* ptapi - A C++ version of JTAPI call model
* ps - An abstraction for virtual (or physical) phone set objects
(e.g. lamps, hookswitch)
* tao - A transport layer designed to decouple (and remote) the
application layer from call processing.
This package contains the neccessary header files and static libraries
helpful to build projects from the sipX library
%prep
%setup -q
%build
%configure --with-distdir=/home/sipxbuild/src/main/RPMBUILD/../dist
cp config.log %name.configlog
make
%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
%attr(755,root,root) %{_bindir}/%name-config
%if %{_vendor} == redhat
%attr(755,root,root) %{_libdir}/libsipXcall.so.*
%endif
%if %{_vendor} == suse
%attr(755,root,root) %{_libdir}/libsipXcall.so.*
%endif
%files devel
%defattr(644,root,root,755)
%docdir %{_datadir}/doc/sipxecs/%name
%{_datadir}/doc/sipxecs/%name
%{_libdir}/libsipXcall.a
%{_libdir}/libsipXcall.la
%{_libdir}/libsipXcall.so
%dir %attr(755,root,root) %{_includedir}/cp
%dir %attr(755,root,root) %{_includedir}/ps
%dir %attr(755,root,root) %{_includedir}/ptapi
%dir %attr(755,root,root) %{_includedir}/tao
%dir %attr(755,root,root) %{_includedir}/tapi
%{_includedir}/cp/*
%{_includedir}/ps/*
%{_includedir}/ptapi/*
%{_includedir}/tao/*
%{_includedir}/tapi/*