File libeXosip2.spec of Package libeXosip2

#
# spec file for package libeXosip2
#
# Copyright (c) 2011 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:           libeXosip2
BuildRequires:  glibc-devel libopenssl-devel libosip2-devel
License:        GPL-2.0
Group:          Productivity/Networking/Other
Summary:        Extended osip2 library
Version:        3.5.0
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://savannah.nongnu.org/forum/forum.php?forum_id=3778
Source:         libeXosip2-%{version}.tar.bz2

%description
Extended library for the osip2 protocol.



Authors:
--------
    Aymeric MOIZARD, <jack@osip.org>

%package -n libeXosip2-6
License:        GPL-2.0
Group:          Productivity/Networking/Other
Provides:       libeXosip2 = %{version}-%{release}
#
Summary:        Extended osip2 library

%description -n libeXosip2-6
Extended library for the osip2 protocol.



Authors:
--------
    Aymeric MOIZARD, <jack@osip.org>

%package devel
License:        GPL-2.0
Summary:        Extended osip2 library
Group:          Development/Libraries/C and C++
Provides:       libeXosip2-6-devel = %{version}-%{release}
Requires:       libeXosip2-6 = %{version}
Requires:       libosip2-devel glibc-devel libopenssl-devel
AutoReqProv:    on

%description devel
Extended library for the osip2 protocol.



Authors:
--------
    Aymeric MOIZARD, <jack@osip.org>

%prep
%setup -q -n libeXosip2-%{version}

%build
#./autogen.sh
%configure --disable-static
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{_prefix}/%{_lib}/lib*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libeXosip2-6 -p /sbin/ldconfig

%postun -n libeXosip2-6 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/sip_reg

%files -n libeXosip2-6
%defattr(-,root,root)
%{_prefix}/%{_lib}/lib*.so.*

%files devel
%defattr(-,root,root)
%{_prefix}/include/eXosip2/*.h
%dir %{_prefix}/include/eXosip2
%{_prefix}/%{_lib}/lib*.so

%changelog