]>
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 |
65d97f26 | 8 | Version: 7.0.0.1 |
8d094f47 | 9 | Release: 1 |
65d97f26 | 10 | # from 26204-700.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. | |
65d97f26 | 14 | # (c) 2007, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC). |
8d094f47 JB |
15 | # All rights reserved. |
16 | License: restricted | |
17 | Group: Libraries | |
65d97f26 JB |
18 | Source0: http://ftp.penguin.cz/pub/users/utx/amr/%{name}-%{version}.tar.bz2 |
19 | # Source0-md5: f823b5e055e1d85142740e225b86ac91 | |
20 | Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip | |
21 | # NoSource1-md5: 2e5098687d3007a05b7acc8298a5b072 | |
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 | |
65d97f26 | 65 | cp %{SOURCE1} . |
8d094f47 JB |
66 | |
67 | %build | |
68 | %{__libtoolize} | |
69 | %{__aclocal} | |
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) | |
65d97f26 JB |
91 | %doc 26204-700.doc readme.txt |
92 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
93 | %attr(755,root,root) %{_bindir}/amrwb-* | |
8d094f47 JB |
94 | %attr(755,root,root) %{_libdir}/libamrwb.so.*.*.* |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libamrwb.so | |
99 | %{_libdir}/libamrwb.la | |
100 | %{_includedir}/amrwb | |
101 | ||
102 | %if %{with static_libs} | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libamrwb.a | |
106 | %endif |