]>
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 | |
66d24f54 | 6 | Summary(pl.UTF-8): Zmiennoprzecinkowy kodek mowy 3GPP AMR-WB |
8d094f47 | 7 | Name: amrwb |
b3598c38 | 8 | Version: 11.0.0.0 |
8d094f47 | 9 | Release: 1 |
b3598c38 | 10 | # from 26204-b00.doc: |
8d094f47 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. | |
b3598c38 | 14 | # (c) 2012, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC). |
8d094f47 JB |
15 | # All rights reserved. |
16 | License: restricted | |
17 | Group: Libraries | |
65d97f26 | 18 | Source0: http://ftp.penguin.cz/pub/users/utx/amr/%{name}-%{version}.tar.bz2 |
b3598c38 JB |
19 | # Source0-md5: f9ea63e6f8b778fe1040f73891ba3720 |
20 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-b00.zip | |
21 | # NoSource1-md5: 9fd5a681beb11277ce370deafa4a494d | |
65d97f26 | 22 | NoSource: 1 |
8d094f47 JB |
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 | |
66d24f54 | 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 | |
66d24f54 | 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 | |
65d97f26 | 63 | %setup -q |
8d094f47 | 64 | |
1c044fb4 | 65 | ln -s %{SOURCE1} . |
8d094f47 JB |
66 | |
67 | %build | |
68 | %{__libtoolize} | |
acb90de6 | 69 | %{__aclocal} -I m4 |
8d094f47 JB |
70 | %{__autoconf} |
71 | %{__automake} | |
72 | %configure \ | |
73 | %{!?with_static_libs:--disable-static} | |
74 | ||
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
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) | |
b3598c38 | 91 | %doc 26204-b00.doc readme.txt |
65d97f26 JB |
92 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
93 | %attr(755,root,root) %{_bindir}/amrwb-* | |
8d094f47 | 94 | %attr(755,root,root) %{_libdir}/libamrwb.so.*.*.* |
1c044fb4 | 95 | %attr(755,root,root) %ghost %{_libdir}/libamrwb.so.3 |
8d094f47 JB |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libamrwb.so | |
100 | %{_libdir}/libamrwb.la | |
101 | %{_includedir}/amrwb | |
102 | ||
103 | %if %{with static_libs} | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/libamrwb.a | |
107 | %endif |