File mingw64-bcg729.spec of Package mingw64-bcg729
#
# spec file for package mingw64-bcg729
#
# 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 realname bcg729
%define libname mingw64-lib%{realname}
Name: mingw64-%{realname}
Version: 1.1.1
Release: 0
Summary: Encoder and decoder of the ITU G.729 Annex A/B speech codec
License: GPL-3.0-only
URL: https://www.linphone.org/technical-corner/bcg729
Source: https://gitlab.linphone.org/BC/public/bcg729/-/archive/%{version}/%{realname}-%{version}.tar.gz
Patch0: cmake-install-patch.patch
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-cmake
%_mingw64_package_header_debug
BuildArch: noarch
%description
Bcg729 is an implementation of both encoder and decoder of the ITU
G.729 Annex A/B speech codec. It supports concurrent channels
encoding/decoding for multi call application such as conferencing.
%package -n %{libname}
Summary: Encoder and decoder of the ITU G.729 Annex A/B speech codec
Group: System/Libraries
%description -n %{libname}
Bcg729 is an implementation of both encoder and decoder of the ITU
G.729 Annex A/B speech codec. It supports concurrent channels
encoding/decoding for multi call application such as conferencing.
%package devel
Summary: Development files for libbcg729
Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%description devel
This package includes the files necessary for compiling and linking
application which will use libbcg729.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_cmake} \
-DENABLE_TESTS=OFF \
-DENABLE_STATIC=OFF \
-DENABLE_STRICT=OFF
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files -n %{libname}
%{_mingw64_bindir}/libbcg729.dll
%files devel
%license LICENSE.txt
%doc CHANGELOG.md README.md
%{_mingw64_includedir}/bcg729
%{_mingw64_libdir}/libbcg729.dll.a
%{_mingw64_libdir}/pkgconfig/libbcg729.pc
%{_mingw64_libdir}/cmake/Bcg729
%changelog