3 %bcond_without static_libs # don't build static libraries
4 %bcond_with tests # enable tests
6 Summary: SIP (RFC3261) object-oriented implementation in C
7 Summary(pl.UTF-8): Implementacja SIP (RFC3261) w C
13 Source0: http://download-mirror.savannah.gnu.org/releases/linphone/belle-sip/%{name}-%{version}.tar.gz
14 # Source0-md5: ae9e8be12f62552a5376edd66b0265d9
15 Patch0: antlr_jar.patch
16 Patch1: use_after_free.patch
17 URL: http://www.linphone.org/
18 %{?with_tests:BuildRequires: CUnit >= 2.0}
19 BuildRequires: autoconf >= 2.63
20 BuildRequires: automake >= 1:1.11
21 BuildRequires: java-antlr3 >= 3.2
23 BuildRequires: libantlr3c-devel >= 3.2
24 BuildRequires: libstdc++-devel
25 BuildRequires: libtool >= 2:2
26 BuildRequires: polarssl-devel >= 1.2
27 BuildRequires: pkgconfig
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Belle-sip is a SIP (RFC3261) implementation written in C, with an
34 %description -l pl.UTF-8
35 Belle-sip to implementacja SIP (RFC3261) napisana w C z API
36 zorientowanym obiektowo.
39 Summary: Header files for %{name} library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Header files for %{name} library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki %{name}.
51 Summary: Static %{name} library
52 Summary(pl.UTF-8): Statyczna biblioteka %{name}
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static %{name} library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka %{name}.
74 CFLAGS="%{rpmcflags} -Wno-error=pragmas" \
75 --disable-silent-rules \
76 %{!?with_static_libs:--disable-static}
80 %{?with_tests:%{__make} test}
83 rm -rf $RPM_BUILD_ROOT
86 DESTDIR=$RPM_BUILD_ROOT
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbellesip.la
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 NEWS README
99 %attr(755,root,root) %{_libdir}/libbellesip.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libbellesip.so.0
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libbellesip.so
105 %{_includedir}/%{name}
106 %{_pkgconfigdir}/%{name}.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)
111 %{_libdir}/libbellesip.a