File belle-sip.spec of Package belle-sip
#
# spec file for package belle-sip
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Mariusz Fik <fisiu@opensuse.org>.
#
# 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/
#
%define soname libbellesip0
Name: belle-sip
Version: 1.3.0
Release: 0
Summary: C object oriented SIP Stack
License: GPL-2.0
Group: System/Libraries
Url: http://www.linphone.org/
Source: http://download.savannah.gnu.org/releases/linphone/%{name}/%{name}-%{version}.tar.gz
Source100: antlr-3.4-complete.jar
# PATCH-FIX-UPSTREAM 0001-fix-license-headers.patch -- Fix license header -- Simon Morlat <simon.morlat@linphone.org>
Patch0: 0001-fix-license-headers.patch
BuildRequires: antlr3c-devel
BuildRequires: gcc-c++
BuildRequires: java
BuildRequires: libpolarssl-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Belle-sip is a SIP (RFC3261) implementation written in C, with an object oriented API.
%package -n %{soname}
Summary: C object oriented SIP Stack
Group: System/Libraries
%description -n %{soname}
Belle-sip is a SIP (RFC3261) implementation written in C, with an object oriented API.
%package devel
Summary: Headers and libraries for the belle-sip library
Group: Development/Libraries/C and C++
Requires: %{soname} = %{version}
%description devel
Belle-sip is a SIP (RFC3261) implementation written in C, with an object oriented API.
This package contains header files and development libraries needed to develop programs using the belle-sip library.
%prep
cp %{S:100} antlr.jar
%setup -q
%patch0
sed -i "s#antlr_java_prefixes=.*#antlr_java_prefixes=%{_builddir}#" configure{,.ac}
%build
%configure \
--disable-tests \
--disable-static \
--enable-tls
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_libdir}/libbellesip.la
%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
%files -n %{soname}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libbellesip.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libbellesip.so
%{_libdir}/pkgconfig/belle-sip.pc
%dir %{_includedir}/belle-sip
%{_includedir}/belle-sip/*.h
%changelog