Sophie

Sophie

distrib > Mandriva > current > i586 > by-pkgid > 75199970e4cfe713441cb7042f899be2 > files > 4

sofia-sip-1.12.10-3mdv2010.1.src.rpm

%define libname_orig lib%{name}
%define libname %mklibname %{name} 0
%define develname %mklibname -d %{name}
%define staticdevelname %mklibname -d -s %{name}

%define	name    sofia-sip
%define	version 1.12.10
%define	release %mkrel 3

Summary:	An open-source SIP User-Agent library
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	LGPLv2+
Url:		http://sofia-sip.sourceforge.net/
Group:		Networking/Instant messaging
Source0:	http://downloads.sourceforge.net/sofia-sip/sofia-sip-%{version}.tar.gz
# From Fedora
Patch0:		sofia-sip-1.12.10-undefined-non-weak-symbol.patch	
Patch1:		sofia-sip-1.12.10-string-format.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	glib2-devel
BuildRequires:	libopenssl-devel
BuildRequires:	pkgconfig
BuildRequires:	autoconf
BuildRequires:	automake

%description
Sofia-SIP is an open-source SIP  User-Agent library, 
compliant with the IETF RFC3261 specification (see the 
feature table). It can be used as a building block for 
SIP client software for uses such as VoIP, IM, and many 
other real-time and person-to-person communication services. 
The primary target platform for Sofia-SIP is GNU/Linux. 
Sofia-SIP is based on a SIP stack developed at the Nokia 
Research Center. Sofia-SIP is licensed under the LGPL.

%package -n %{libname}
Summary:	Sophia-sip library
Group:		Graphical desktop/KDE
Provides:	%{libname_orig} = %{version}-%{release}
Requires:	%name = %version-%release

%description -n %{libname}
Library for %{name}

%package -n %{develname}
Summary:	Headers of %name for development
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{libname_orig}-devel = %{version}-%{release}
Obsoletes:	%{libname}-devel

%description -n %{develname}
Headers of %{name} for development.

%package -n %{staticdevelname}
Summary:	Static development files for %{name}
Group:		Development/C
Requires:	%{develname} = %{version}-%{release}
Provides:	%{name}-static-devel = %{version}-%{release}
Provides:	%{libname_orig}-static-devel = %{version}-%{release}
Obsoletes:	%{libname}-static-devel

%description -n %{staticdevelname}
Static development files for %{name}

%prep
%setup -q
%patch0 -p0 -b .weak-symbol
%patch1 -p1 -b .string-format

%build
libtoolize --automake --force
aclocal -I m4 --force
autoheader --force
autoconf --force
automake --gnu --force-missing --add-missing
%configure2_5x --disable-rpath
%make

%install
rm -rf %{buildroot}

%{makeinstall_std}


%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif


%files -n %{name}
%defattr(-,root,root)
%{_bindir}/addrinfo
%{_bindir}/localinfo
%{_bindir}/sip-date
%{_bindir}/sip-dig
%{_bindir}/sip-options
%{_bindir}/stunc
%{_mandir}/man1/*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libsofia-sip-ua.so.0
%{_libdir}/libsofia-sip-ua.so.0.6.0
%{_libdir}/libsofia-sip-ua-glib.so.3
%{_libdir}/libsofia-sip-ua-glib.so.3.0.0

%files -n %{develname}
%defattr(-,root,root)
%{_datadir}/sofia-sip/msg_parser.awk
%{_datadir}/sofia-sip/tag_dll.awk
%{_includedir}/sofia-sip-1.12
%{_libdir}/libsofia-sip-ua-glib.la
%{_libdir}/libsofia-sip-ua-glib.so
%{_libdir}/libsofia-sip-ua.la
%{_libdir}/libsofia-sip-ua.so
%{_libdir}/pkgconfig/sofia-sip-ua-glib.pc
%{_libdir}/pkgconfig/sofia-sip-ua.pc

%files -n %{staticdevelname}
%defattr(-,root,root)
%{_libdir}/libsofia-sip-ua.a
%{_libdir}/libsofia-sip-ua-glib.a


%changelog
* Mon Apr 12 2010 Funda Wang <fwang@mandriva.org> 1.12.10-3mdv2010.1
+ Revision: 533648
- rebuild

* Sun Sep 20 2009 Thierry Vignaud <tv@mandriva.org> 1.12.10-2mdv2010.0
+ Revision: 445138
- rebuild

* Mon Jan 19 2009 Frederik Himpe <fhimpe@mandriva.org> 1.12.10-1mdv2009.1
+ Revision: 331410
- Update to new version 1.12.10
- Fix license
- Add Fedora patch to fix linking
- Add patch to fix building with -Werror=format-security
- Use %%{buildroot} instead of $RPM_BUILD_ROOT in SPEC file
- Disable rpath

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue Mar 04 2008 Michael Scherer <misc@mandriva.org> 1.12.8-1mdv2008.1
+ Revision: 178325
- new version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Jul 21 2007 Funda Wang <fwang@mandriva.org> 1.12.6-3mdv2008.0
+ Revision: 54312
- correct file list
- fix static devel requires

* Thu Jul 12 2007 Funda Wang <fwang@mandriva.org> 1.12.6-2mdv2008.0
+ Revision: 51616
- New devel package policy

* Wed May 02 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.12.6-1mdv2008.0
+ Revision: 20667
- Added missing BuildRequires for glib2-devel.
- Added missing BuildRequires for libopenssl-devel.
- Splitted *.a files into a new static-devel subpackage.
- Updated to 1.12.6.


* Tue Apr 25 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.11.7-2mdk
- Fix BuildRequires

* Thu Mar 23 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.11.7-1mdk
- First mandriva release