Accepting request 1072719 from home:iznogood
I'd like to get this into Factory :-) - Can be used in gstreamer-plugins-ugly. OBS-URL: https://build.opensuse.org/request/show/1072719 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/opencore-amr?expand=0&rev=1
This commit is contained in:
commit
9741fa335c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
18
_service
Normal file
18
_service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://git.code.sf.net/p/opencore-amr/code</param>
|
||||||
|
<param name="filename">opencore-amr</param>
|
||||||
|
<param name="revision">refs/tags/v0.1.6</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime"/>
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="manual" />
|
||||||
|
</services>
|
||||||
|
|
2
baselibs.conf
Normal file
2
baselibs.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
libopencore-amrwb0
|
||||||
|
libopencore-amrnb0
|
19
opencore-amr-0.1.3-fix_pc.patch
Normal file
19
opencore-amr-0.1.3-fix_pc.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
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.6.obscpio
(Stored with Git LFS)
Normal file
BIN
opencore-amr-0.1.6.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
4
opencore-amr.changes
Normal file
4
opencore-amr.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 17 17:25:23 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
- Initial packaging for openSUSE.
|
4
opencore-amr.obsinfo
Normal file
4
opencore-amr.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: opencore-amr
|
||||||
|
version: 0.1.6
|
||||||
|
mtime: 1659350203
|
||||||
|
commit: 7dba8c32238418ce0b316a852b2224df586ca896
|
99
opencore-amr.spec
Normal file
99
opencore-amr.spec
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
#
|
||||||
|
# spec file for package opencore-amr
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
%define major 0
|
||||||
|
%define libname lib%{name}
|
||||||
|
%define libname_amrnb %{libname}nb%{major}
|
||||||
|
%define libname_amrwb %{libname}wb%{major}
|
||||||
|
|
||||||
|
Name: opencore-amr
|
||||||
|
Version: 0.1.6
|
||||||
|
Release: 0
|
||||||
|
Summary: Adaptive Multi-Rate (AMR) Speech Codec
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: http://opencore-amr.sourceforge.net/
|
||||||
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Source1: baselibs.conf
|
||||||
|
# PATCH-FIX-OPENSUSE opencore-amr-0.1.3-fix_pc.patch -- Fix opencore-amr pkgconfig include
|
||||||
|
Patch0: opencore-amr-0.1.3-fix_pc.patch
|
||||||
|
|
||||||
|
BuildRequires: c_compiler
|
||||||
|
BuildRequires: c++_compiler
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
|
%description
|
||||||
|
Library of OpenCORE Framework implementation of Adaptive Multi Rate
|
||||||
|
Narrowband and Wideband speech codec.
|
||||||
|
|
||||||
|
%package -n %{libname_amrnb}
|
||||||
|
Summary: Shared library part of opencore-amr
|
||||||
|
|
||||||
|
%description -n %{libname_amrnb}
|
||||||
|
Library of OpenCORE Framework implementation of Adaptive Multi Rate
|
||||||
|
Narrowband speech codec.
|
||||||
|
|
||||||
|
%package -n %{libname_amrwb}
|
||||||
|
Summary: Shared library part of opencore-amr
|
||||||
|
|
||||||
|
%description -n %{libname_amrwb}
|
||||||
|
Library of OpenCORE Framework implementation of Adaptive Multi Rate
|
||||||
|
Wideband speech codec.
|
||||||
|
|
||||||
|
%package -n %{libname}-devel
|
||||||
|
Summary: Devel and header files for AMR
|
||||||
|
Requires: %{libname_amrnb} = %{version}
|
||||||
|
Requires: %{libname_amrwb} = %{version}
|
||||||
|
|
||||||
|
%description -n %{libname}-devel
|
||||||
|
Library of OpenCORE Framework implementation of Adaptive Multi Rate
|
||||||
|
Narrowband and Wideband speech codec.
|
||||||
|
Developer Package.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fiv
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
%{nil}
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n %{libname_amrnb}
|
||||||
|
%ldconfig_scriptlets -n %{libname_amrwb}
|
||||||
|
|
||||||
|
%files -n %{libname_amrnb}
|
||||||
|
%license LICENSE
|
||||||
|
%{_libdir}/libopencore-amrnb.so.%{major}*
|
||||||
|
|
||||||
|
%files -n %{libname_amrwb}
|
||||||
|
%license LICENSE
|
||||||
|
%{_libdir}/libopencore-amrwb.so.%{major}*
|
||||||
|
|
||||||
|
%files -n %{libname}-devel
|
||||||
|
%doc opencore/ChangeLog opencore/NOTICE opencore/README
|
||||||
|
%{_includedir}/opencore-amrnb
|
||||||
|
%{_includedir}/opencore-amrwb
|
||||||
|
%{_libdir}/libopencore-amr*.so
|
||||||
|
%{_libdir}/pkgconfig/opencore-amr*b.pc
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user