]>
Commit | Line | Data |
---|---|---|
88f8f1c9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: 3GPP AMR Floating-point Speech Codec | |
a9ee080b | 6 | Summary(pl.UTF-8): Zmiennoprzecinkowy kodek mowy 3GPP AMR |
88f8f1c9 JB |
7 | Name: amrnb |
8 | Version: 0.0.1 | |
5173b056 | 9 | Release: 2 |
9e49f880 | 10 | # AUTHORS specifies "License unknown", 26104-610.doc in original sources 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. | |
14 | # (c) 2004, 3GPP Organizational Partners (ARIB, CCSA, ETSI, T1, TTA, TTC). | |
15 | # All rights reserved. | |
9e49f880 | 16 | License: restricted |
88f8f1c9 | 17 | Group: Libraries |
76c90f68 | 18 | # autotooled version of http://www.3gpp.org/ftp/Specs/latest/Rel-6/26_series/26104-610.zip |
88f8f1c9 | 19 | Source0: http://ronald.bitfreak.net/priv/%{name}-%{version}.tar.gz |
824c1381 | 20 | # NoSource0-md5: c4546d2920cf287847a7286b4dea7472 |
d980598c | 21 | NoSource: 0 |
467a7ad0 | 22 | Patch0: %{name}-inttypes.patch |
88f8f1c9 | 23 | URL: http://www.3gpp.org/ |
fc90b66c JB |
24 | BuildRequires: autoconf >= 2.50 |
25 | BuildRequires: automake | |
26 | BuildRequires: libtool | |
88f8f1c9 JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
467a7ad0 PS |
29 | %define specflags -fno-strict-aliasing |
30 | ||
88f8f1c9 JB |
31 | %description |
32 | 3GPP AMR Floating-point Speech Codec. | |
33 | ||
b763978e | 34 | %description -l pl.UTF-8 |
88f8f1c9 JB |
35 | Zmiennoprzecinkowy kodek mowy 3GPP AMR. |
36 | ||
37 | %package devel | |
38 | Summary: Header files for amrnb library | |
a9ee080b | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki amrnb |
88f8f1c9 JB |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for amrnb library. | |
45 | ||
b763978e JR |
46 | %description devel -l pl.UTF-8 |
47 | Pliki nagłówkowe biblioteki amrnb. | |
88f8f1c9 JB |
48 | |
49 | %package static | |
50 | Summary: Static amrnb library | |
a9ee080b | 51 | Summary(pl.UTF-8): Statyczna biblioteka amrnb |
88f8f1c9 JB |
52 | Group: Development/Libraries |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static amrnb library. | |
57 | ||
b763978e | 58 | %description static -l pl.UTF-8 |
88f8f1c9 JB |
59 | Statyczna biblioteka amrnb. |
60 | ||
61 | %prep | |
62 | %setup -q | |
467a7ad0 | 63 | %patch0 -p1 |
88f8f1c9 JB |
64 | |
65 | %build | |
fc90b66c JB |
66 | %{__libtoolize} |
67 | %{__aclocal} | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
88f8f1c9 JB |
71 | %configure \ |
72 | %{?with_static_libs:--enable-static} | |
467a7ad0 | 73 | |
88f8f1c9 JB |
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) | |
90 | %doc AUTHORS README | |
91 | %attr(755,root,root) %{_libdir}/libamrnb.so.*.*.* | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libamrnb.so | |
96 | %{_libdir}/libamrnb.la | |
97 | %{_includedir}/amrnb | |
98 | ||
99 | %if %{with static_libs} | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
102 | %{_libdir}/libamrnb.a | |
103 | %endif |