File mingw64-portaudio.spec of Package mingw64-portaudio

#
# spec file for package mingw64-portaudio
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           mingw64-portaudio
Version:        190700_20210406
Release:        0
Summary:        Portable Real-Time Audio Library
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
#Git-Clone:     https://github.com/PortAudio/portaudio
URL:            https://www.portaudio.com/
Source:         https://files.portaudio.com/archives/pa_stable_v%{version}.tgz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
#!BuildIgnore:  post-build-checks
%_mingw64_package_header_debug
BuildArch:      noarch

%description
PortAudio is a portable audio I/O library designed for cross-platform
support of audio. It uses a callback mechanism to request audio
processing. Audio can be generated in various formats, including 32 bit
floating point, and will be converted to the native format internally.

%package -n mingw64-libportaudio2
Summary:        Portable Real-Time Audio Library
Group:          System/Libraries

%description -n mingw64-libportaudio2
PortAudio is a portable audio I/O library designed for cross-platform
support of audio. It uses a callback mechanism to request audio
processing. Audio can be generated in various formats, including 32 bit
floating point, and will be converted to the native format internally.

%package devel
Summary:        Development package for the portaudio library
Group:          Development/Languages/C and C++

%description devel
This package contains the files needed to compile programs that use the
portaudio library.

%_mingw64_debug_package

%prep
%autosetup -n portaudio

%build
%{_mingw64_cmake}
%{_mingw64_cmake_build} %{?_smp_mflags}

%install
%{_mingw64_cmake_install}
rm -v %{buildroot}%{_mingw64_docdir}/portaudio/{LICENSE.txt,README.md}

%files -n mingw64-libportaudio2
%{_mingw64_bindir}/libportaudio.dll

%files devel
%license LICENSE.txt
%doc README.md
%{_mingw64_includedir}/portaudio.h
%{_mingw64_includedir}/pa_win_*.h
%{_mingw64_libdir}/libportaudio.a
%{_mingw64_libdir}/libportaudio.dll.a
%{_mingw64_libdir}/pkgconfig/portaudio-2.0.pc
%{_mingw64_libdir}/cmake/portaudio/

%changelog
openSUSE Build Service is sponsored by