]>
Commit | Line | Data |
---|---|---|
fbd20c08 JP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | ||
1f6082b2 | 5 | Summary: OpenCORE Framework implementation of Adaptive Multi Rate Narrowband and Wideband speech codec |
6 | Summary(pl.UTF-8): Szkielet OpenCORE kodeków mowy Adaptive Multi Rate Narrowband i Wideband | |
7 | Name: opencore-amr | |
ff98310c | 8 | Version: 0.1.6 |
6ce21ed4 | 9 | Release: 1 |
1f6082b2 | 10 | License: Apache v2.0 |
11 | Group: Libraries | |
ff98310c JB |
12 | Source0: https://downloads.sourceforge.net/opencore-amr/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 03de025060a4f16c4c44218f65e13e95 | |
1f6082b2 | 14 | URL: http://opencore-amr.sourceforge.net/ |
753143cf | 15 | BuildRequires: autoconf >= 2.50 |
1f6082b2 | 16 | BuildRequires: automake |
17 | BuildRequires: libstdc++-devel | |
6ce21ed4 | 18 | BuildRequires: libtool >= 2:2 |
fbd20c08 | 19 | BuildRequires: rpmbuild(macros) >= 1.527 |
1f6082b2 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | This library contains an implementation of the 3GPP TS 26.073 | |
24 | specification for the Adaptive Multi Rate (AMR) speech codec and an | |
25 | implementation for the 3GPP TS 26.173 specification for the Adaptive | |
26 | Multi-Rate - Wideband (AMR-WB) speech decoder. The implementation is | |
27 | derived from the OpenCORE framework, part of the Google Android | |
28 | project. | |
29 | ||
30 | %description -l pl.UTF-8 | |
753143cf | 31 | Biblioteka ta zawiera implementację specyfikacji 3GPP TS 26.073 kodeka |
b8fad5a2 ER |
32 | mowy Adaptive Multi Rate (AMR) oraz implementację specyfikacji 3GPP TS |
33 | 26.173 dekodera mowy Adaptive Multi-Rate - Wideband (AMR-WB). | |
1f6082b2 | 34 | Implementacja pochodzi ze szkieletu OpenCORE, części projektu Google |
35 | Android. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for opencore-amr library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki opencore-amr | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for opencore-amr library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki opencore-amr. | |
48 | ||
49 | %package static | |
50 | Summary: Static opencore-amr library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka opencore-amr | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static opencore-amr library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka opencore-amr. | |
60 | ||
61 | %prep | |
62 | %setup -q | |
63 | ||
753143cf | 64 | %{__rm} m4/libtool.m4 m4/lt*.m4 |
b8fad5a2 | 65 | |
1f6082b2 | 66 | %build |
67 | %{__libtoolize} | |
68 | %{__aclocal} -I m4 | |
69 | %{__autoconf} | |
1f6082b2 | 70 | %{__automake} |
126520f5 | 71 | %configure \ |
fbd20c08 JP |
72 | --disable-silent-rules \ |
73 | %{__enable_disable static_libs static} | |
1f6082b2 | 74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
6ce21ed4 | 90 | %doc ChangeLog README |
1f6082b2 | 91 | %attr(755,root,root) %{_libdir}/libopencore-amrnb.so.*.*.* |
92 | %attr(755,root,root) %{_libdir}/libopencore-amrwb.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libopencore-amrnb.so.0 | |
94 | %attr(755,root,root) %ghost %{_libdir}/libopencore-amrwb.so.0 | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libopencore-amrnb.so | |
99 | %attr(755,root,root) %{_libdir}/libopencore-amrwb.so | |
100 | %{_libdir}/libopencore-amrnb.la | |
101 | %{_libdir}/libopencore-amrwb.la | |
102 | %{_includedir}/opencore-amrnb | |
103 | %{_includedir}/opencore-amrwb | |
104 | %{_pkgconfigdir}/opencore-amrnb.pc | |
105 | %{_pkgconfigdir}/opencore-amrwb.pc | |
106 | ||
fbd20c08 | 107 | %if %{with static_libs} |
1f6082b2 | 108 | %files static |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libopencore-amrnb.a | |
111 | %{_libdir}/libopencore-amrwb.a | |
fbd20c08 | 112 | %endif |