File libjingle.spec of Package libjingle
#
# spec file for package libjingle (Version 0.3.12)
#
# Copyright (c) 2010 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: 4
License: BSD3c(or similar)
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
# PATCH-FIX-UPSTREAM libjingle-0.3.12-openssl.patch aj@suse.de -- Fix build with openssl 1.0, Patch from fedora 12
Patch1: libjingle-0.3.12-openssl.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: BSD3c(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: BSD3c(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: LGPLv2.1+
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
%patch1 -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