]>
Commit | Line | Data |
---|---|---|
88f8f1c9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
b0bd2350 JB |
5 | Summary: 3GPP AMR-NB Floating-point Speech Codec |
6 | Summary(pl.UTF-8): Zmiennoprzecinkowy kodek mowy 3GPP AMR-NB | |
88f8f1c9 | 7 | Name: amrnb |
bb39f0e6 | 8 | Version: 11.0.0.0 |
b0bd2350 | 9 | Release: 1 |
447e5327 | 10 | # 26104-a00.doc says: |
76c90f68 JB |
11 | # Copyright Notification |
12 | # No part may be reproduced except as authorized by written permission. | |
13 | # The copyright and the foregoing restriction extend to reproduction in all media. | |
447e5327 | 14 | # (c) 2011, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC). |
76c90f68 | 15 | # All rights reserved. |
9e49f880 | 16 | License: restricted |
88f8f1c9 | 17 | Group: Libraries |
b0bd2350 | 18 | Source0: http://ftp.penguin.cz/pub/users/utx/amr/%{name}-%{version}.tar.bz2 |
bb39f0e6 JB |
19 | # Source0-md5: 673ab645f61d1c830b6429a5ba76bb1f |
20 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-b00.zip | |
21 | # NoSource1-md5: b88fd1ca1fd23e24be1cc70f3227b3e1 | |
b0bd2350 | 22 | NoSource: 1 |
88f8f1c9 | 23 | URL: http://www.3gpp.org/ |
fc90b66c JB |
24 | BuildRequires: autoconf >= 2.50 |
25 | BuildRequires: automake | |
26 | BuildRequires: libtool | |
b0bd2350 | 27 | BuildRequires: unzip |
88f8f1c9 JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
b0bd2350 | 31 | 3GPP AMR-NB Floating-point Speech Codec. |
88f8f1c9 | 32 | |
b763978e | 33 | %description -l pl.UTF-8 |
b0bd2350 | 34 | Zmiennoprzecinkowy kodek mowy 3GPP AMR-NB. |
88f8f1c9 JB |
35 | |
36 | %package devel | |
37 | Summary: Header files for amrnb library | |
a9ee080b | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki amrnb |
88f8f1c9 JB |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for amrnb library. | |
44 | ||
b763978e JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe biblioteki amrnb. | |
88f8f1c9 JB |
47 | |
48 | %package static | |
49 | Summary: Static amrnb library | |
a9ee080b | 50 | Summary(pl.UTF-8): Statyczna biblioteka amrnb |
88f8f1c9 JB |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static amrnb library. | |
56 | ||
b763978e | 57 | %description static -l pl.UTF-8 |
88f8f1c9 JB |
58 | Statyczna biblioteka amrnb. |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | ||
032548c6 JB |
63 | ln -s %{SOURCE1} . |
64 | ||
88f8f1c9 | 65 | %build |
fc90b66c | 66 | %{__libtoolize} |
21e0a52c | 67 | %{__aclocal} -I m4 |
fc90b66c | 68 | %{__autoconf} |
fc90b66c | 69 | %{__automake} |
88f8f1c9 JB |
70 | %configure \ |
71 | %{?with_static_libs:--enable-static} | |
467a7ad0 | 72 | |
88f8f1c9 JB |
73 | %{__make} |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
bb39f0e6 | 89 | %doc 26104-b00.doc readme.txt |
b0bd2350 JB |
90 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
91 | %attr(755,root,root) %{_bindir}/amrnb-* | |
88f8f1c9 | 92 | %attr(755,root,root) %{_libdir}/libamrnb.so.*.*.* |
032548c6 | 93 | %attr(755,root,root) %ghost %{_libdir}/libamrnb.so.3 |
88f8f1c9 JB |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libamrnb.so | |
98 | %{_libdir}/libamrnb.la | |
99 | %{_includedir}/amrnb | |
100 | ||
101 | %if %{with static_libs} | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libamrnb.a | |
105 | %endif |