1 # TODO: tunnel? (BR: pkgconfig(tunnel) or TunnelConfig.cmake)
4 %bcond_without dnssd # MDNS/DNSSD support
5 %bcond_without static_libs # static library
6 %bcond_with tests # enable tests
8 Summary: SIP (RFC3261) object-oriented implementation in C
9 Summary(pl.UTF-8): Implementacja SIP (RFC3261) w C
15 #Source0Download: https://gitlab.linphone.org/BC/public/belle-sip/-/tags
16 Source0: https://gitlab.linphone.org/BC/public/belle-sip/-/archive/%{version}/%{name}-%{version}.tar.bz2
17 # Source0-md5: 57b680975c7c78955bc06b5331f651bf
18 Patch0: antlr_jar.patch
19 Patch1: %{name}-pc.patch
20 URL: http://www.linphone.org/
21 %{?with_tests:BuildRequires: CUnit >= 2.0}
22 BuildRequires: bctoolbox-devel >= 0.5.0
23 BuildRequires: cmake >= 3.1
24 BuildRequires: java-antlr3 >= 3.2
26 BuildRequires: libantlr3c-devel >= 3.4
27 BuildRequires: libstdc++-devel
28 BuildRequires: pkgconfig
29 BuildRequires: rpmbuild(macros) >= 1.605
30 BuildRequires: zlib-devel >= 1.2.3
31 Requires: bctoolbox >= 0.5.0
32 Requires: libantlr3c >= 3.4
33 Requires: zlib >= 1.2.3
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Belle-sip is a SIP (RFC3261) implementation written in C, with an
40 %description -l pl.UTF-8
41 Belle-sip to implementacja SIP (RFC3261) napisana w C z API
42 zorientowanym obiektowo.
45 Summary: Header files for %{name} library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
49 Requires: bctoolbox-devel >= 0.5.0
50 Requires: libantlr3c-devel >= 3.4
53 Header files for %{name} library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki %{name}.
59 Summary: Static %{name} library
60 Summary(pl.UTF-8): Statyczna biblioteka %{name}
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static %{name} library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka %{name}.
79 %{?with_dnssd:-DENABLE_MDNS=ON} \
80 %{!?with_static_libs:-DENABLE_STATIC=OFF} \
81 %{!?with_tests:-DENABLE_TESTS=OFF}
85 %{?with_tests:%{__make} test}
88 rm -rf $RPM_BUILD_ROOT
90 %{__make} -C builddir install \
91 DESTDIR=$RPM_BUILD_ROOT
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc AUTHORS.md CHANGELOG.md README.md
102 %attr(755,root,root) %{_libdir}/libbellesip.so.1
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libbellesip.so
107 %{_includedir}/belle-sip
108 %{_pkgconfigdir}/belle-sip.pc
109 %{_libdir}/cmake/BelleSIP
111 %if %{with static_libs}
113 %defattr(644,root,root,755)
114 %{_libdir}/libbellesip.a