]> git.pld-linux.org Git - packages/libosip2.git/blobdiff - libosip2.spec
- updated to 5.2.0 (new sonames)
[packages/libosip2.git] / libosip2.spec
index 3381a0b67898b5ee5ed1549c348afc11a6bee9b5..018d763db263c6a3b234d65fb86f55abac2f445d 100644 (file)
@@ -1,23 +1,25 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       The GNU oSIP library
-Summary(pl):   Biblioteka GNU oSIP
+Summary(pl.UTF-8):     Biblioteka GNU oSIP
 Name:          libosip2
-Version:       2.0.1
-Release:       2
-License:       LGPL
+Version:       5.2.0
+Release:       1
+License:       LGPL v2.1+
 Group:         Libraries
-Source0:       ftp://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
-# Source0-md5: 8d635913658b40df2bef70070128884a
-Patch0:                %{name}-configure.patch
-Patch1:                %{name}-automake.patch
-Patch2:                %{name}-nolibs.patch
-URL:           http://www.fsf.org/software/osip/osip.html
-BuildRequires: autoconf
+Source0:       https://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
+# Source0-md5: 1b31f1cafd358c7d57e058cc36341bcf
+Patch0:                %{name}-nolibs.patch
+Patch1:                %{name}-link.patch
+URL:           http://www.gnu.org/software/osip/
+BuildRequires: autoconf >= 2.69
 BuildRequires: automake
-BuildRequires: libtool >= 1:1.4.3
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes:     libosip
+BuildRequires: libtool >= 2:2
 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
@@ -25,55 +27,56 @@ 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
-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.
+%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):   Pliki dla programistów u¿ywaj±cych GNU oSIP
+Summary(pl.UTF-8):     Pliki dla programistów używających GNU oSIP
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
-Obsoletes:      libosip-devel
-Provides:       libosip-devel
+Requires:      %{name} = %{version}-%{release}
+Provides:      libosip-devel
+Obsoletes:     libosip-devel
 
 %description devel
 Development files for the GNU oSIP library.
 
-%description devel -l pl
-Pliki dla programistów u¿ywaj±cych biblioteki GNU oSIP.
+%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):   Statyczna biblioteka GNU oSIP
+Summary(pl.UTF-8):     Statyczna biblioteka GNU oSIP
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
-Obsoletes:      libosip-static
-Provides:       libosip-static
+Requires:      %{name}-devel = %{version}-%{release}
+Provides:      libosip-static
+Obsoletes:     libosip-static
 
 %description static
 Static version of the GNU oSIP library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna wersja biblioteki GNU oSIP.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
-rm -f scripts/missing
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I scripts
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-       --enable-semaphore \
+       --enable-debug%{!?debug:=no} \
        --enable-pthread \
-       --%{?debug:en}%{!?debug:dis}able-debug
+       --enable-semaphore \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -83,8 +86,10 @@ 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}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libosip*.la
+
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man{1,3}
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -94,16 +99,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%doc AUTHORS BUGS ChangeLog FEATURES HISTORY NEWS README TODO
+%attr(755,root,root) %{_libdir}/libosip2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libosip2.so.14
+%attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.14
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*
-%{_mandir}/man3/*.3*
-
+%attr(755,root,root) %{_libdir}/libosip2.so
+%attr(755,root,root) %{_libdir}/libosipparser2.so
+%{_includedir}/osip2
+%{_includedir}/osipparser2
+%{_pkgconfigdir}/libosip2.pc
+%{_mandir}/man3/osip.3*
+
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libosip2.a
+%{_libdir}/libosipparser2.a
+%endif
This page took 0.089126 seconds and 4 git commands to generate.