# # Conditional build: %bcond_without static_libs # don't build static library # Summary: The GNU oSIP library Summary(pl.UTF-8): Biblioteka GNU oSIP Name: libosip2 Version: 3.2.0 Release: 1 License: LGPL v2.1+ Group: Libraries Source0: http://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz # Source0-md5: 459c21f11066be46fe6ea24de438bd40 Patch0: %{name}-nolibs.patch URL: http://www.gnu.org/software/osip/ BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: libtool >= 1:1.4.3 Provides: libosip Obsoletes: libosip BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This is "the GNU oSIP library" (for Omnibus SIP). It has been designed to provide the Internet Community a simple way to support the Session Initiation Protocol. SIP is described in the RFC2543 which is available at http://www.ietf.org/rfc/rfc2543.txt. %description -l pl.UTF-8 To jest biblioteka GNU oSIP (Omnibus SIP). Została zaprojektowana, aby dostarczyć Społeczności Internetowej prostą obsługę protokołu SIP. Protokół SIP (Session Initiation Protocol) jest opisany w RFC2543. %package devel Summary: The GNU oSIP library - development files Summary(pl.UTF-8): Pliki dla programistów używających GNU oSIP Group: Development/Libraries Requires: %{name} = %{version}-%{release} Provides: libosip-devel Obsoletes: libosip-devel %description devel Development files for the GNU oSIP library. %description devel -l pl.UTF-8 Pliki dla programistów używających biblioteki GNU oSIP. %package static Summary: The GNU oSIP library - static version Summary(pl.UTF-8): Statyczna biblioteka GNU oSIP Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} Provides: libosip-static Obsoletes: libosip-static %description static Static version of the GNU oSIP library. %description static -l pl.UTF-8 Statyczna wersja biblioteki GNU oSIP. %prep %setup -q %patch0 -p1 rm -f acinclude.m4 %build %{__libtoolize} %{__aclocal} -I scripts %{__autoconf} %{__automake} %configure \ --enable-semaphore \ --enable-pthread \ --%{?debug:en}%{!?debug:dis}able-debug \ %{!?with_static_libs:--disable-static} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT mv -f $RPM_BUILD_ROOT%{_mandir}/man{1,3} mv -f $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS BUGS ChangeLog NEWS README TODO %attr(755,root,root) %{_libdir}/libosip2.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libosip2.so.4 %attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.4 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libosip2.so %attr(755,root,root) %{_libdir}/libosipparser2.so %{_libdir}/libosip2.la %{_libdir}/libosipparser2.la %{_includedir}/osip2 %{_includedir}/osipparser2 %{_pkgconfigdir}/libosip2.pc %{_mandir}/man3/osip.3* %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libosip2.a %{_libdir}/libosipparser2.a %endif