File mingw64-soxr.spec of Package mingw64-soxr

#
# spec file for package mingw64-soxr
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#


%{_mingw64_package_header_debug}
Name:           mingw64-soxr
Version:        0.1.3
Release:        0
Summary:        The SoX resampler library
License:        LGPL-2.1-or-later
URL:            http://soxr.sourceforge.net/
#Git-Clone:     https://git.code.sf.net/p/soxr/code
Source:         https://downloads.sourceforge.net/project/soxr/soxr-%{version}-Source.tar.xz
Patch0:         soxr-always-generate-pc.patch
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-cmake
BuildArch:      noarch
BuildSystem:    mingw64cmake
BuildOption:    -DCMAKE_POLICY_VERSION_MINIMUM=3.5

%description
The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
conversion -- it may be used, for example, to resample PCM-encoded audio.

%{_mingw64_debug_package}

%install -a
rm -r %{buildroot}%{_mingw64_prefix}/doc

%files
%license COPYING.LGPL
%{_mingw64_includedir}/soxr*.h
%{_mingw64_libdir}/libsoxr.a
%{_mingw64_libdir}/libsoxr-lsr.a
%{_mingw64_libdir}/pkgconfig/soxr.pc
%{_mingw64_libdir}/pkgconfig/soxr-lsr.pc

%changelog
openSUSE Build Service is sponsored by