File libjingle.spec of Package libjingle

#
# spec file for package libjingle (Version 0.3.12)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libjingle
Url:            http://sourceforge.net/projects/tapioca-voip/
BuildRequires:  gcc-c++ libexpat-devel openssl-devel pkg-config
Version:        0.3.12
Release:        3
License:        GPL v2 only
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libjingle-0_3-0 = %{version}-%{release}
Group:          Productivity/Networking/Other
Summary:        Library for Peer-to-Peer Applications
Source:         http://farsight.freedesktop.org/releases/libjingle/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libjingle-gcc44.patch vuntz@novell.com -- Sent to upstream by mail
Patch0:         libjingle-gcc44.patch

%description
Libjingle is a collection of open-source C++ code and sample
applications that enables you to build a peer-to-peer application.



%package -n libjingle-0_3-0
License:        BSD 3-clause (or similar)
Summary:        Library for Peer-to-Peer Applications
Group:          Productivity/Networking/Other

%description -n libjingle-0_3-0
Libjingle is a collection of open-source C++ code and sample
applications that enables you to build a peer-to-peer application.



%package utils
License:        BSD 3-clause (or similar)
Requires:       libjingle-0_3-0 >= %{version}
Summary:        Library for Peer-to-Peer Applications
Group:          Productivity/Networking/Other

%description utils
Libjingle is a collection of open-source C++ code and sample
applications that enables you to build a peer-to-peer application.



%package devel
License:        LGPL v2.1 or later
Requires:       libjingle-0_3-0 = %{version} glibc-devel libexpat-devel libopenssl-devel zlib-devel
Summary:        Library for Peer-to-Peer Applications
Group:          Development/Libraries/C and C++

%description devel
Libjingle is a collection of open-source C++ code and sample
applications that enables you to build a peer-to-peer application.



%prep
%setup -q
%patch0 -p1
tr -d '\r' <README >README.unix ; touch -r README README.unix ; mv README.unix README

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a

%post -n libjingle-0_3-0 -p /sbin/ldconfig

%postun -n libjingle-0_3-0 -p /sbin/ldconfig

%files utils
%defattr(-,root,root)
%{_bindir}/relayserver
%{_bindir}/stunserver

%files -n libjingle-0_3-0
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog DOCUMENTATION NEWS README
%{_libdir}/*.so.0*

%files devel
%defattr(-,root,root)
%{_includedir}/libjingle*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* Tue Apr 28 2009 vuntz@novell.com
- Add libjingle-gcc44.patch to fix build with gcc 4.4.
- Do not call autoreconf without any reason.
* Wed Jan 14 2009 hfiguiere@suse.de
- Update to 0.3.12 from farsight:
  + Fix a number of bugs in the relaying code
  + Make compatible with g++ 4.3
  + Improved configure scripts
  + Removed Buzz/XMPP parts (only Base and P2P remain)
- Remove patch libjingle-0.3.11-gcc43.patch
- Remove patch libjingle-0.3.11-return.patch
* Tue Nov 04 2008 hfiguiere@suse.de
- Remove unneeded build dependencies.
- Remove unknown configure options.
* Mon Oct 27 2008 maw@suse.de
- Make debug packages require a specific %%{version}-%%{release}.
* Fri Aug 01 2008 ro@suse.de
- fix requires for debuginfo package
* Mon May 05 2008 coolo@suse.de
- return in non-void functions
* Wed Jan 30 2008 ro@suse.de
- don't use "." in package name, rename to libjingle-0_3-0
* Thu Jan 24 2008 sbrabec@suse.cz
- Moved to Tapioca Project branch and updated to version 0.3.11:
  * Fix missing constructor in socketserver
  * Fix thread leaks in SocketClient
  * Added support for Google relay (backported from 0.4)
  * Remove examples and and dependant code, as dependant on now
  removed third_party
  * Clean up makefiles so make distcheck works
  * Remove third_party as it has a mix of incompatible licenses
  (mediastreamer as LGPL, may imply the rest of the library is
  LGPL), and its unclear for gips whether they're modifiable or
  even distributable.
  * Replace base64.cc with something more clearly licensed (MIT
  licensed). Fixes issues raised by Scott James Remnant on
  submission to ubuntu main.
  * Added pkgconfig check on configure.ac.
  * Added license terms on g711common.h.
  * fixed talk/base/criticalsection.h with the correction described
  on bugtrack #1470383
  * Disable static libraries compilation.
  * Implemented JEP-0078: Non-SASL Authentication.
  * Fixed compilation on x86_64.
  * Moved xmpppassword to base.
  * Make libjingle compile to a number of shared libraries.
  * Patch FD leak in tcpconnections
  * Added new signal SignalState_s that emits from signaling
  thread.
  * Added version to pkgconfig files
  * Added some hardcore stun candidate match logging
  * Added SocketClient to libjingle.
- Enabled ortp.
* Sat Nov 10 2007 coolo@suse.de
- fix linking too
* Wed Oct 03 2007 coolo@suse.de
- fix includes for gcc 4.3
* Thu May 24 2007 ro@suse.de
- added ldconfig to post scripts
* Wed Apr 04 2007 maw@suse.de
- Don't build as root.  Duh.
* Tue Apr 03 2007 maw@suse.de
- New package.
openSUSE Build Service is sponsored by