File mingw64-rtmidi.spec of Package mingw64-rtmidi
#
# spec file for package mingw64-rtmidi
#
# 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 rtmidi
%_mingw64_package_header_debug
Name: mingw64-%{realname}
Version: 6.0.0
Release: 0
Summary: C++ library for realtime MIDI input/ouput
License: MIT
Group: Productivity/Multimedia/Sound/Utilities
URL: https://www.music.mcgill.ca/~gary/rtmidi/index.html
Source0: https://www.music.mcgill.ca/~gary/rtmidi/release/%{realname}-%{version}.tar.gz
Patch0: rtmidi-cmake.patch
Patch1: rtmidi-6.0.0-pkgconfig.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildArch: noarch
%description
RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut and API-specific
classes) that provides a common API (Application Programming Interface) for
realtime MIDI input/output.
%package -n mingw64-%{realname}-devel
Summary: Development package for %{name}
Group: Development/Languages/C and C++
Requires: mingw64-%{realname} = %{version}
%description -n mingw64-%{realname}-devel
C++ library for realtime MIDI input/ouput.
This package includes the header files for %{name}.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files
%license LICENSE
%doc README.md
%{_mingw64_bindir}/librtmidi.dll
%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/rtmidi/
%{_mingw64_libdir}/librtmidi.dll.a
%{_mingw64_libdir}/pkgconfig/rtmidi.pc
%{_mingw64_libdir}/cmake/rtmidi
%changelog