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: http://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
13 # Source0-md5: 7eb305608256ac2a7a27b66ce52627c8
14 Patch0: %{name}-nolibs.patch
15 URL: http://www.gnu.org/software/osip/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: libtool >= 1:1.4.3
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This is "the GNU oSIP library" (for Omnibus SIP). It has been designed
25 to provide the Internet Community a simple way to support the Session
26 Initiation Protocol. SIP is described in the RFC2543 which is
27 available at http://www.ietf.org/rfc/rfc2543.txt.
29 %description -l pl.UTF-8
30 To jest biblioteka GNU oSIP (Omnibus SIP). Została zaprojektowana, aby
31 dostarczyć Społeczności Internetowej prostą obsługę protokołu SIP.
32 Protokół SIP (Session Initiation Protocol) jest opisany w RFC2543.
35 Summary: The GNU oSIP library - development files
36 Summary(pl.UTF-8): Pliki dla programistów używających GNU oSIP
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Provides: libosip-devel
40 Obsoletes: libosip-devel
43 Development files for the GNU oSIP library.
45 %description devel -l pl.UTF-8
46 Pliki dla programistów używających biblioteki GNU oSIP.
49 Summary: The GNU oSIP library - static version
50 Summary(pl.UTF-8): Statyczna biblioteka GNU oSIP
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
53 Provides: libosip-static
54 Obsoletes: libosip-static
57 Static version of the GNU oSIP library.
59 %description static -l pl.UTF-8
60 Statyczna wersja biblioteki GNU oSIP.
70 %{__aclocal} -I scripts
76 --%{?debug:en}%{!?debug:dis}able-debug \
77 %{!?with_static_libs:--disable-static}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 mv -f $RPM_BUILD_ROOT%{_mandir}/man{1,3}
88 mv -f $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3}
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc AUTHORS BUGS ChangeLog NEWS README TODO
99 %attr(755,root,root) %{_libdir}/libosip2.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libosip2.so.3
101 %attr(755,root,root) %{_libdir}/libosipparser2.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libosipparser2.so.3
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libosip2.so
107 %attr(755,root,root) %{_libdir}/libosipparser2.so
108 %{_libdir}/libosip2.la
109 %{_libdir}/libosipparser2.la
111 %{_includedir}/osipparser2
112 %{_pkgconfigdir}/libosip2.pc
113 %{_mandir}/man3/osip.3*
115 %if %{with static_libs}
117 %defattr(644,root,root,755)
118 %{_libdir}/libosip2.a
119 %{_libdir}/libosipparser2.a