3 %bcond_without static_libs # don't build static library
5 Summary: The GNU oSIP library
6 Summary(pl.UTF-8): Biblioteka GNU oSIP
12 Source0: https://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
13 # Source0-md5: 8527fb56a7414df0a04ca19f3cc6eadd
14 Patch0: %{name}-nolibs.patch
15 Patch1: %{name}-link.patch
16 Patch2: %{name}-soname.patch
17 URL: http://www.gnu.org/software/osip/
18 BuildRequires: autoconf >= 2.69
19 BuildRequires: automake
20 BuildRequires: libtool >= 2:2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This is "the GNU oSIP library" (for Omnibus SIP). It has been designed
27 to provide the Internet Community a simple way to support the Session
28 Initiation Protocol. SIP is described in the RFC2543 which is
29 available at http://www.ietf.org/rfc/rfc2543.txt.
31 %description -l pl.UTF-8
32 To jest biblioteka GNU oSIP (Omnibus SIP). Została zaprojektowana, aby
33 dostarczyć Społeczności Internetowej prostą obsługę protokołu SIP.
34 Protokół SIP (Session Initiation Protocol) jest opisany w RFC2543.
37 Summary: The GNU oSIP library - development files
38 Summary(pl.UTF-8): Pliki dla programistów używających GNU oSIP
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Provides: libosip-devel
42 Obsoletes: libosip-devel
45 Development files for the GNU oSIP library.
47 %description devel -l pl.UTF-8
48 Pliki dla programistów używających biblioteki GNU oSIP.
51 Summary: The GNU oSIP library - static version
52 Summary(pl.UTF-8): Statyczna biblioteka GNU oSIP
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
55 Provides: libosip-static
56 Obsoletes: libosip-static
59 Static version of the GNU oSIP library.
61 %description static -l pl.UTF-8
62 Statyczna wersja biblioteki GNU oSIP.
72 %{__aclocal} -I scripts
77 --enable-debug%{!?debug:=no} \
80 --disable-silent-rules \
81 %{!?with_static_libs:--disable-static}
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libosip*.la
93 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man{1,3}
94 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3}
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 %doc AUTHORS BUGS ChangeLog FEATURES HISTORY NEWS README TODO
105 %attr(755,root,root) %{_libdir}/libosip2.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libosip2.so.12
107 %attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.12
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libosip2.so
113 %attr(755,root,root) %{_libdir}/libosipparser2.so
115 %{_includedir}/osipparser2
116 %{_pkgconfigdir}/libosip2.pc
117 %{_mandir}/man3/osip.3*
119 %if %{with static_libs}
121 %defattr(644,root,root,755)
122 %{_libdir}/libosip2.a
123 %{_libdir}/libosipparser2.a