File mingw64-opencore-amr.spec of Package mingw64-opencore-amr
#
# spec file for package mingw64-opencore-amr
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#
%define sover 0
%define realname opencore-amr
%define libname mingw64-lib%{realname}
%define libname_amrnb %{libname}nb%{sover}
%define libname_amrwb %{libname}wb%{sover}
Name: mingw64-%{realname}
Version: 0.1.6
Release: 0
Summary: Adaptive Multi-Rate (AMR) Speech Codec
License: Apache-2.0
URL: http://opencore-amr.sourceforge.net/
Source0: %{realname}-%{version}.tar.xz
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%_mingw64_package_header_debug
BuildArch: noarch
%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 devel
Summary: Devel and header files for AMR
Requires: %{libname_amrnb} = %{version}
Requires: %{libname_amrwb} = %{version}
%description devel
Library of OpenCORE Framework implementation of Adaptive Multi Rate
Narrowband and Wideband speech codec.
Developer Package.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
autoreconf -fiv
%{_mingw64_configure} --disable-static
%{_mingw64_make} V=1 %{?_smp_mflags}
%install
%{_mingw64_make_install}
%files -n %{libname_amrnb}
%license LICENSE
%{_mingw64_bindir}/libopencore-amrnb-0.dll
%files -n %{libname_amrwb}
%license LICENSE
%{_mingw64_bindir}/libopencore-amrwb-0.dll
%files devel
%doc opencore/ChangeLog opencore/NOTICE opencore/README
%{_mingw64_includedir}/opencore-amrnb
%{_mingw64_includedir}/opencore-amrwb
%{_mingw64_libdir}/libopencore-amrnb.dll.a
%{_mingw64_libdir}/libopencore-amrwb.dll.a
%{_mingw64_libdir}/pkgconfig/opencore-amrnb.pc
%{_mingw64_libdir}/pkgconfig/opencore-amrwb.pc
%changelog