File sipxportlib.spec of Package sipxportlib
Name: sipxportlib
Version: 3.8.1
Release: 0
Summary: OS Abstraction and OS Utilities library for sipX modules
License: LGPL
Group: Development/Libraries
Vendor: SIPfoundry
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Url: http://www.sipfoundry.org/sipXportLib
Requires: openssl >= 0.9.7a
Requires: pcre >= 4.5
BuildRequires: autoconf
BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: krb5-devel
BuildRequires: openssl-devel
BuildRequires: pcre-devel
BuildRequires: zip
%if %{?suse_version:1}0 == 930
BuildRequires: pcre++-devel
%endif
#BuildRequires: autoconf automake doxygen gcc gcc-c++ libtool subversion patch doxygen wget syslog-ng sudo zip
Source: %name-%version.tar.bz2
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
This library provides a set of classes that provide an operating
system abstraction from a majority of OS provided functions. All of
the sipX projects use this library to ensure easy porting to any
operating system. The library currently provides classes that
encapsulate functions and operations for:
* Threads
* Locks and Mutexes
* Semaphores
* Messages and Queues
* Timers
* Time and Date
* Sockets
* File and Directory
* Operating System Processes
* Dynamic loading of shared libraries and symbols
# Install header files
%package devel
Requires: openssl-devel >= 0.9.7a
Requires: %name
Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name
%description devel
This library provides a set of classes that provide an operating
system abstraction from a majority of OS provided functions. All of
the sipX projects use this library to ensure easy porting to any
operating system. The library currently provides classes that
encapsulate functions and operations for:
* Threads
* Locks and Mutexes
* Semaphores
* Messages and Queues
* Timers
* Time and Date
* Sockets
* File and Directory
* Operating System Processes
* Dynamic loading of shared libraries and symbols
This package contains the neccesary header files and static libraries
helpful to build projects from the sipX library
%prep
%setup -q
%build
autoreconf
%configure
# --with-distdir=/home/buildbot/sipx/dist
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 LICENSE INSTALL README NEWS TODO ChangeLog %name.configlog
%attr(755,root,root) %{_bindir}/syslogviewer
%attr(755,root,root) %{_bindir}/sipx-upgrade
%attr(755,root,root) %{_libdir}/libsipXport.la
%attr(755,root,root) %{_libdir}/libsipXport.so*
%attr(755,root,root) %{_bindir}/sipx-config
%attr(755,root,root) %{_bindir}/%name-config
%files devel
%defattr(644,root,root,755)
%doc doc/*
%doc %{_datadir}/doc/sipx/%name/*
%attr(755,root,root) %{_libdir}/libsipXunit.la
%attr(755,root,root) %{_libdir}/libsipXunit.a
%attr(755,root,root) %{_libdir}/libsipXport.a
%{_includedir}/os/*
%{_includedir}/utl/*
%{_includedir}/xmlparser/*
%{_includedir}/sipxunit/*