From: Jakub Bogusz Date: Sat, 14 Jan 2006 23:57:18 +0000 (+0000) Subject: - new X-Git-Tag: auto/ac/amrnb-0_0_1-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Famrnb.git;a=commitdiff_plain;h=88f8f1c94876814096719c0a63adafa6523d2cf0 - new Changed files: amrnb.spec -> 1.1 --- 88f8f1c94876814096719c0a63adafa6523d2cf0 diff --git a/amrnb.spec b/amrnb.spec new file mode 100644 index 0000000..cf8c462 --- /dev/null +++ b/amrnb.spec @@ -0,0 +1,82 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static library +# +Summary: 3GPP AMR Floating-point Speech Codec +Summary(pl): Zmiennoprzecinkowy kodek mowy 3GPP AMR +Name: amrnb +Version: 0.0.1 +Release: 1 +License: unknown +Group: Libraries +Source0: http://ronald.bitfreak.net/priv/%{name}-%{version}.tar.gz +# Source0-md5: c4546d2920cf287847a7286b4dea7472 +URL: http://www.3gpp.org/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +3GPP AMR Floating-point Speech Codec. + +%description -l pl +Zmiennoprzecinkowy kodek mowy 3GPP AMR. + +%package devel +Summary: Header files for amrnb library +Summary(pl): Pliki nag³ówkowe biblioteki amrnb +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for amrnb library. + +%description devel -l pl +Pliki nag³ówkowe biblioteki amrnb. + +%package static +Summary: Static amrnb library +Summary(pl): Statyczna biblioteka amrnb +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static amrnb library. + +%description static -l pl +Statyczna biblioteka amrnb. + +%prep +%setup -q + +%build +%configure \ + %{?with_static_libs:--enable-static} +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS README +%attr(755,root,root) %{_libdir}/libamrnb.so.*.*.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libamrnb.so +%{_libdir}/libamrnb.la +%{_includedir}/amrnb + +%if %{with static_libs} +%files static +%defattr(644,root,root,755) +%{_libdir}/libamrnb.a +%endif