From 377a58bd71b052609336120b0b8afb47a36a5308 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 11 Aug 2009 19:05:23 +0000 Subject: [PATCH] initial import of opencore-amr --- .gitignore | 1 + opencore-amr.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 opencore-amr.spec diff --git a/.gitignore b/.gitignore index e69de29..8478532 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +opencore-amr-0.1.1.tar.gz diff --git a/opencore-amr.spec b/opencore-amr.spec new file mode 100644 index 0000000..79c6b4c --- /dev/null +++ b/opencore-amr.spec @@ -0,0 +1,67 @@ +Name: opencore-amr +Version: 0.1.1 +Release: 1%{?dist} +Summary: OpenCORE Adaptive Multi Rate Narrowband and Wideband speech lib +Group: System Environment/Libraries +License: ASL 2.0 +URL: http://sourceforge.net/projects/opencore-amr/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Library of OpenCORE Framework implementation of Adaptive Multi Rate Narrowband +and Wideband speech codec. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q -n %{name} +# hack hack hack +if [ "%{_lib}" = "lib64" ]; then + sed -i -e 's|/lib/|/lib64/|g' -e 's|/lib$|/lib64|g' */Makefile +fi + + +%build +make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -x c -std=c99 -fPIC" + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} +# we don't want the static libraries +rm $RPM_BUILD_ROOT%{_libdir}/libopencore-amr??.a + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc opencore/ChangeLog opencore/NOTICE opencore/README +%{_libdir}/libopencore-amr??.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/opencore-amr?? +%{_libdir}/libopencore-amr??.so + + +%changelog +* Thu Jul 30 2009 Hans de Goede 0.1.1-1 +- First version of the RPM Fusion package diff --git a/sources b/sources index e69de29..2a9ef5a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d2e18436202fc14e03e5a254f8eb1df4 opencore-amr-0.1.1.tar.gz