1 # NOTE: it's (almost?) API- (but not ABI-) compatible with RFC 3591 libilbc,
2 # but it uses single header file; thus only Obsoletes, not Provides
5 %bcond_without static_libs # don't build static library
7 Summary: iLBC speech codec from the WebRTC project
8 Summary(pl.UTF-8): Kodek mowy iLBC z projektu WebRTC
14 Source0: https://github.com/TimothyGu/libilbc/archive/v%{version}/libilbc-%{version}.tar.gz
15 # Source0-md5: 026e157955685cc7165d7896a12fc5d3
16 URL: https://github.com/TimothyGu/libilbc
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 BuildRequires: libtool >= 2:2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package contains the iLBC codec from the WebRTC project. It can
25 be used as drop-in replacement for the non-free code from RFC 3591.
27 %description -l pl.UTF-8
28 Ten pakiet zawiera kodek iLBC z projektu WebRTC. Może być używany jako
29 zamiennik kodu z RFC 3591, który jest na bardziej restrykcyjnej
33 Summary: Header files for iLBC library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki iLBC
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Obsoletes: libilbc-devel
40 Header files for iLBC library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki iLBC.
46 Summary: Static iLBC library
47 Summary(pl.UTF-8): Statyczna biblioteka iLBC
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
50 Obsoletes: libilbc-static
55 %description static -l pl.UTF-8
56 Statyczna biblioteka iLBC.
59 %setup -q -n libilbc-%{version}
68 --disable-silent-rules
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libilbc.la
81 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libilbc
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %doc COPYING NEWS.md README.md
92 %attr(755,root,root) %{_libdir}/libilbc.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libilbc.so.2
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libilbc.so
99 %{_pkgconfigdir}/libilbc.pc
101 %if %{with static_libs}
103 %defattr(644,root,root,755)