]>
Commit | Line | Data |
---|---|---|
8d094f47 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: 3GPP AMR-WB Floating-point Speech Codec | |
3696d6a6 | 6 | Summary(pl.UTF-8): Zmiennoprzecinkowy kodek mowy 3GPP AMR-WB |
8d094f47 JB |
7 | Name: amrwb |
8 | Version: 6.0.0 | |
9 | Release: 1 | |
10 | # from 26204-600.doc: | |
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. | |
14 | # (c) 2004, 3GPP Organizational Partners (ARIB, CCSA, ETSI, T1, TTA, TTC). | |
15 | # All rights reserved. | |
16 | License: restricted | |
17 | Group: Libraries | |
18 | Source0: http://www.3gpp.org/ftp/Specs/latest/Rel-6/26_series/26204-600.zip | |
19 | # NoSource0-md5: e78e35eabe09eea50198f1a27b81eb60 | |
20 | NoSource: 0 | |
21 | Patch0: %{name}-inttypes.patch | |
22 | Patch1: %{name}-acam.patch | |
23 | URL: http://www.3gpp.org/ | |
24 | BuildRequires: autoconf >= 2.50 | |
25 | BuildRequires: automake | |
26 | BuildRequires: libtool | |
27 | BuildRequires: unzip | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %define specflags -fno-strict-aliasing | |
31 | ||
32 | %description | |
33 | 3GPP AMR-WB Floating-point Speech Codec. | |
34 | ||
3696d6a6 | 35 | %description -l pl.UTF-8 |
8d094f47 JB |
36 | Zmiennoprzecinkowy kodek mowy 3GPP AMR-WB. |
37 | ||
38 | %package devel | |
39 | Summary: Header files for amrwb library | |
3696d6a6 | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki amrwb |
8d094f47 JB |
41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for amrwb library. | |
46 | ||
3696d6a6 JR |
47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe biblioteki amrwb. | |
8d094f47 JB |
49 | |
50 | %package static | |
51 | Summary: Static amrwb library | |
3696d6a6 | 52 | Summary(pl.UTF-8): Statyczna biblioteka amrwb |
8d094f47 JB |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static amrwb library. | |
58 | ||
3696d6a6 | 59 | %description static -l pl.UTF-8 |
8d094f47 JB |
60 | Statyczna biblioteka amrwb. |
61 | ||
62 | %prep | |
63 | %setup -q -c | |
64 | ||
65 | unzip -q 26204-600_ANSI-C_source_code.zip | |
66 | mv -f c-code/*.[ch] . | |
67 | ||
68 | %patch0 -p1 | |
69 | %patch1 -p1 | |
70 | ||
71 | %build | |
72 | %{__libtoolize} | |
73 | %{__aclocal} | |
74 | %{__autoconf} | |
75 | %{__automake} | |
76 | %configure \ | |
77 | %{!?with_static_libs:--disable-static} | |
78 | ||
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc 26204-600.doc | |
96 | %attr(755,root,root) %{_libdir}/libamrwb.so.*.*.* | |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_libdir}/libamrwb.so | |
101 | %{_libdir}/libamrwb.la | |
102 | %{_includedir}/amrwb | |
103 | ||
104 | %if %{with static_libs} | |
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libamrwb.a | |
108 | %endif |