3 %bcond_without static_libs # static library
5 Summary: Belledonne Communications' language recognition library
6 Summary(pl.UTF-8): Biblioteka rozpoznawania języków Belledonne Communications
12 Source0: https://linphone.org/releases/sources/belr/%{name}-%{version}.tar.gz
13 # Source0-md5: 91dc921d48db2b8337bab56996fe8800
14 Patch0: %{name}-pc.patch
15 URL: https://linphone.org/
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake
18 BuildRequires: bctoolbox-devel >= 0.0.3
19 BuildRequires: libstdc++-devel >= 6:4.7
20 BuildRequires: libtool >= 2:2
21 BuildRequires: pkgconfig
22 Requires: bctoolbox >= 0.0.3
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Belr is Belledonne Communications' language recognition library. It
27 aims at parsing any input formatted according to a language defined by
28 an ABNF grammar, such as the protocols standardized at IETF.
30 It is based on finite state machine theory and heavily relies on
31 recursivity from an implementation standpoint.
33 %description -l pl.UTF-8
34 Belr to biblioteka do rozpoznawania języków Belledonne Communications.
35 Jej celem jest analiza dowolnego wejścia sformatowanego zgodnie z
36 językiem zdefiniowanym przez gramatykę ABNF, np. protokołów
37 standaryzowanych przez IETF.
39 Biblioteka jest oparta na teorii automatów skończonych, implementacja
40 znacząco wykorzystuje rekusywność.
43 Summary: Header files for belr library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki belr
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: libstdc++-devel >= 6:4.7
50 Header files for belr library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki belr.
56 Summary: Static belr library
57 Summary(pl.UTF-8): Statyczna biblioteka belr
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
64 %description static -l pl.UTF-8
65 Statyczna biblioteka belr.
68 %setup -q -n %{name}-%{version}-0
78 --disable-silent-rules \
79 %{?with_static_libs:--enable-static}
84 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
89 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbelr.la
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_bindir}/belr-parse
101 %attr(755,root,root) %{_libdir}/libbelr.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libbelr.so.0
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libbelr.so
108 %{_pkgconfigdir}/belr.pc
110 %if %{with static_libs}
112 %defattr(644,root,root,755)