diff --git a/opencore-amr-0.1.3-fix_pc.patch b/opencore-amr-0.1.3-fix_pc.patch new file mode 100644 index 0000000..e009ff6 --- /dev/null +++ b/opencore-amr-0.1.3-fix_pc.patch @@ -0,0 +1,18 @@ +diff -up opencore-amr-0.1.3/amrnb/opencore-amrnb.pc.in.fix opencore-amr-0.1.3/amrnb/opencore-amrnb.pc.in +--- opencore-amr-0.1.3/amrnb/opencore-amrnb.pc.in.fix 2011-04-06 22:30:37.000000000 +0200 ++++ opencore-amr-0.1.3/amrnb/opencore-amrnb.pc.in 2012-05-18 13:05:36.469324787 +0200 +@@ -7,4 +7,4 @@ Name: OpenCORE AMR-NB + Description: Adaptive Multi-Rate speech codec library + Version: @PACKAGE_VERSION@ + Libs: -L${libdir} -lopencore-amrnb +-Cflags: -I${includedir} ++Cflags: -I${includedir}/opencore-amrnb +diff -up opencore-amr-0.1.3/amrwb/opencore-amrwb.pc.in.fix opencore-amr-0.1.3/amrwb/opencore-amrwb.pc.in +--- opencore-amr-0.1.3/amrwb/opencore-amrwb.pc.in.fix 2011-04-06 22:30:37.000000000 +0200 ++++ opencore-amr-0.1.3/amrwb/opencore-amrwb.pc.in 2012-05-18 13:06:01.901435760 +0200 +@@ -7,4 +7,4 @@ Name: OpenCORE AMR-WB + Description: Adaptive Multi-Rate Wideband speech codec library + Version: @PACKAGE_VERSION@ + Libs: -L${libdir} -lopencore-amrwb +-Cflags: -I${includedir} ++Cflags: -I${includedir}/opencore-amrwb diff --git a/opencore-amr-0.1.5.tar.gz b/opencore-amr-0.1.5.tar.gz new file mode 100644 index 0000000..6c2aeaa Binary files /dev/null and b/opencore-amr-0.1.5.tar.gz differ diff --git a/opencore-amr.spec b/opencore-amr.spec new file mode 100644 index 0000000..0761def --- /dev/null +++ b/opencore-amr.spec @@ -0,0 +1,52 @@ +Name: opencore-amr +Version: 0.1.5 +Release: 7 +Summary: OpenCORE Adaptive Multi Rate Narrowband and Wideband speech lib +License: ASL 2.0 +URL: http://sourceforge.net/projects/opencore-amr/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: opencore-amr-0.1.3-fix_pc.patch + +BuildRequires: gcc +BuildRequires: gcc-c++ + +%description +Library of OpenCORE Framework implementation of Adaptive Multi Rate Narrowband +and Wideband speech codec. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +%patch0 -p1 -b .fix +mv opencore/README opencore/README.opencore + +%build +%configure --disable-static +%make_build V=1 + +%install +%make_install +rm $RPM_BUILD_ROOT%{_libdir}/libopencore-amr??.la + +%ldconfig_scriptlets + +%files +%doc README opencore/ChangeLog opencore/NOTICE opencore/README.opencore +%license LICENSE +%{_libdir}/libopencore-amr??.so.* + +%files devel +%{_includedir}/opencore-amr?? +%{_libdir}/libopencore-amr??.so +%{_libdir}/pkgconfig/opencore-amr??.pc + +%changelog +* Fri May 07 2021 weidong - 0.1.5-7 +- Initial package.