Initial package.

This commit is contained in:
wei dong 2021-05-08 10:06:38 +08:00
parent 5509b90b6c
commit 56b9014f30
3 changed files with 70 additions and 0 deletions

View File

@ -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

BIN
opencore-amr-0.1.5.tar.gz Normal file

Binary file not shown.

52
opencore-amr.spec Normal file
View File

@ -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 <weidong@uniontech.com> - 0.1.5-7
- Initial package.