]> git.pld-linux.org Git - packages/webrtc-libilbc.git/blob - webrtc-libilbc.spec
5a6736f9d670530fd6d0ca0296fae39bd42116e5
[packages/webrtc-libilbc.git] / webrtc-libilbc.spec
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
3 #
4 # Conditional build:
5 %bcond_without  static_libs     # don't build static library
6 #
7 Summary:        iLBC speech codec from the WebRTC project
8 Summary(pl.UTF-8):      Kodek mowy iLBC z projektu WebRTC
9 Name:           webrtc-libilbc
10 Version:        2.0.2
11 Release:        1
12 License:        BSD
13 Group:          Libraries
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
20 Obsoletes:      libilbc
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
26
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
30 licencji.
31
32 %package devel
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
38
39 %description devel
40 Header files for iLBC library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki iLBC.
44
45 %package static
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
51
52 %description static
53 Static iLBC library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka iLBC.
57
58 %prep
59 %setup -q -n libilbc-%{version}
60
61 %build
62 %{__libtoolize}
63 %{__aclocal} -I m4
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure \
68         --disable-silent-rules
69
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libilbc.la
80 # packaged as %doc
81 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libilbc
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
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
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libilbc.so
98 %{_includedir}/ilbc.h
99 %{_pkgconfigdir}/libilbc.pc
100
101 %if %{with static_libs}
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libilbc.a
105 %endif
This page took 0.047194 seconds and 2 git commands to generate.