File mingw64-sbc.spec of Package mingw64-sbc
#
# spec file for package mingw64-sbc
#
# 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 1
%define realname sbc
%define libname mingw64-lib%{realname}-%{sover}
Name: mingw64-%{realname}
Version: 2.1
Release: 0
Summary: Bluetooth Low-Complexity, Sub-Band Codec Utilities
License: GPL-2.0-or-later
Group: Hardware/Mobile
URL: https://www.kernel.org/pub/linux/bluetooth
Source: https://www.kernel.org/pub/linux/bluetooth/%{realname}-%{version}.tar.xz
# https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-sbc/0001-include-stdint-h.patch
Patch0: 0001-include-stdint-h.patch
# https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-sbc/0002-no-symbol-version.patch
Patch1: 0002-no-symbol-version.patch
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkgconf
BuildRequires: mingw64-libsndfile-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
The package contains utilities for using the SBC codec.
%package -n %{libname}
Summary: Bluetooth Low-Complexity, Sub-Band Codec Library
License: LGPL-2.1-or-later
Group: System/Libraries
%description -n %{libname}
The package contains libraries for using the SBC codec.
%package devel
Summary: Development files for libsbc
License: GPL-2.0-or-later
Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%description devel
Development files for the SBC library.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_configure} \
--disable-tools \
--disable-tester
%{_mingw64_make}
%install
%{_mingw64_make_install}
%files -n %{libname}
%license COPYING.LIB
%{_mingw64_bindir}/libsbc-%{sover}.dll
%files devel
%license COPYING COPYING.LIB
%doc ChangeLog README
%{_mingw64_includedir}/sbc
%{_mingw64_libdir}/libsbc.dll.a
%{_mingw64_libdir}/pkgconfig/sbc.pc
%changelog