From 9741fa335ca75036f6072f896cebcc1906569e6125833c983a0fb61accaaba4a Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Sat, 18 Mar 2023 07:53:20 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 18 ++++++ baselibs.conf | 2 + opencore-amr-0.1.3-fix_pc.patch | 19 +++++++ opencore-amr-0.1.6.obscpio | 3 + opencore-amr.changes | 4 ++ opencore-amr.obsinfo | 4 ++ opencore-amr.spec | 99 +++++++++++++++++++++++++++++++++ 9 files changed, 173 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 baselibs.conf create mode 100644 opencore-amr-0.1.3-fix_pc.patch create mode 100644 opencore-amr-0.1.6.obscpio create mode 100644 opencore-amr.changes create mode 100644 opencore-amr.obsinfo create mode 100644 opencore-amr.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..952c50a --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + git + https://git.code.sf.net/p/opencore-amr/code + opencore-amr + refs/tags/v0.1.6 + @PARENT_TAG@ + v(.*) + + + + *.tar + xz + + + + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..e7d94ec --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,2 @@ +libopencore-amrwb0 +libopencore-amrnb0 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..16ff30b --- /dev/null +++ b/opencore-amr-0.1.3-fix_pc.patch @@ -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 + diff --git a/opencore-amr-0.1.6.obscpio b/opencore-amr-0.1.6.obscpio new file mode 100644 index 0000000..0b37e8d --- /dev/null +++ b/opencore-amr-0.1.6.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8f5d1de44b3898d1f4695a58454b54e205bc9b95c58c43240fb0c8c3e9c405d +size 3807244 diff --git a/opencore-amr.changes b/opencore-amr.changes new file mode 100644 index 0000000..6432293 --- /dev/null +++ b/opencore-amr.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Mar 17 17:25:23 UTC 2023 - Bjørn Lie + +- Initial packaging for openSUSE. diff --git a/opencore-amr.obsinfo b/opencore-amr.obsinfo new file mode 100644 index 0000000..d8ce778 --- /dev/null +++ b/opencore-amr.obsinfo @@ -0,0 +1,4 @@ +name: opencore-amr +version: 0.1.6 +mtime: 1659350203 +commit: 7dba8c32238418ce0b316a852b2224df586ca896 diff --git a/opencore-amr.spec b/opencore-amr.spec new file mode 100644 index 0000000..566f339 --- /dev/null +++ b/opencore-amr.spec @@ -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