3 %bcond_without static_libs # don't build static library
5 Summary: 3GPP AMR Floating-point Speech Codec
6 Summary(pl): Zmiennoprzecinkowy kodek mowy 3GPP AMR
12 Source0: http://ronald.bitfreak.net/priv/%{name}-%{version}.tar.gz
13 # Source0-md5: c4546d2920cf287847a7286b4dea7472
14 Patch0: %{name}-inttypes.patch
15 URL: http://www.3gpp.org/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: libtool
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define specflags -fno-strict-aliasing
24 3GPP AMR Floating-point Speech Codec.
27 Zmiennoprzecinkowy kodek mowy 3GPP AMR.
30 Summary: Header files for amrnb library
31 Summary(pl): Pliki nag³ówkowe biblioteki amrnb
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Header files for amrnb library.
38 %description devel -l pl
39 Pliki nag³ówkowe biblioteki amrnb.
42 Summary: Static amrnb library
43 Summary(pl): Statyczna biblioteka amrnb
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
50 %description static -l pl
51 Statyczna biblioteka amrnb.
64 %{?with_static_libs:--enable-static}
69 rm -rf $RPM_BUILD_ROOT
72 DESTDIR=$RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
77 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_libdir}/libamrnb.so.*.*.*
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_libdir}/libamrnb.so
88 %{_libdir}/libamrnb.la
91 %if %{with static_libs}
93 %defattr(644,root,root,755)