%define major 3 %define libname %mklibname osip2_ %major %define libname_devel %mklibname -d osip2 Summary: Implementation of SIP - rfc2543 Name: libosip2 Version: 3.1.0 Release: %mkrel 3 License: LGPLv2+ Group: System/Libraries URL: http://savannah.gnu.org/projects/osip/ Source0: http://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz BuildRequires: libtool BuildRequires: autoconf2.5 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description This is the oSIP library. It has been designed to provide the Internet Community a simple way to support the Session Initiation Protocol. SIP is described in the RFC3261 which is available at http://www.ietf.org/rfc/rfc3261.txt. %package -n %{libname} Summary: Implementation of SIP - rfc2543 Group: System/Libraries Obsoletes: %{mklibname osip2} < %version %description -n %{libname} This is the oSIP library. It has been designed to provide the Internet Community a simple way to support the Session Initiation Protocol. SIP is described in the RFC3261 which is available at http://www.ietf.org/rfc/rfc3261.txt. %package -n %{libname_devel} Summary: Header file required to build programs using liboSIP Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{libname_devel} Developments files for %{libname} (oSIP Library). Needed to build apps such as linphone and siproxd. %prep %setup -q %build export CFLAGS="%{optflags} -pthread" %configure2_5x %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall mv %{buildroot}%{_mandir}/man1/osip.1 %{buildroot}%{_mandir}/man1/osip2.1 %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc AUTHORS BUGS ChangeLog NEWS README TODO %{_libdir}/*.so.%{major}* %{_mandir}/man1/* %files -n %{libname_devel} %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %{_includedir}/osip2 %{_includedir}/osipparser2 %{_libdir}/pkgconfig/*.pc %changelog * Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.1.0-3mdv2009.0 + Revision: 264852 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Wed May 28 2008 Funda Wang <fundawang@mandriva.org> 3.1.0-2mdv2009.0 + Revision: 212620 - Obsoletes old wrong package name * Wed May 28 2008 Funda Wang <fundawang@mandriva.org> 3.1.0-1mdv2009.0 + Revision: 212528 - New version 3.1. * Mon Feb 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.0.3-4mdv2008.1 + Revision: 170952 - rebuild - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake * Thu Jan 24 2008 Colin Guthrie <cguthrie@mandriva.org> 3.0.3-3mdv2008.1 + Revision: 157636 - Fix self obsoleting devel package * Thu Jan 24 2008 Colin Guthrie <cguthrie@mandriva.org> 3.0.3-2mdv2008.1 + Revision: 157486 - Bump release for buildsystem lock. - Conform to new library policy - Update to 3.0.3 + Thierry Vignaud <tvignaud@mandriva.com> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Mar 27 2007 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-3mdv2007.1 + Revision: 148965 - fix #28156 ;) * Mon Dec 11 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-2mdv2007.1 + Revision: 94967 - rebuild - fix deps * Mon Dec 11 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-1mdv2007.1 + Revision: 94759 - Import libosip2 * Sat Dec 03 2005 Austin Acton <austin@mandriva.org> 2.2.2-1mdk - New release 2.2.2 * Thu Mar 31 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.2.0-3mdk - make it lib64 friendly * Tue Mar 22 2005 Frederic Lepied <flepied@mandrakesoft.com> 2.2.0-2mdk - final 2.2.0 * Wed Feb 09 2005 Austin Acton <austin@mandrake.org> 2.2.0-1mdk - 2.2.0 - fix source URL - remove build hacks * Fri Dec 24 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.9-2mdk - fix man page file clash * Fri Dec 24 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.9-1mdk - 2.0.9 - used the libosip spec file * Tue Sep 21 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.7-5mdk - back * Fri Aug 20 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.7-4mdk - 0.9.7