File mingw32-libinstpatch.spec of Package mingw32-libinstpatch
#
# spec file for package mingw32-libinstpatch
#
# 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 libinstpatch
Name: mingw32-%{realname}
Version: 1.1.6
Release: 0
Summary: MIDI instrument patch library
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: http://www.swamiproject.org/
Source: https://github.com/swami/libinstpatch/archive/refs/tags/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-libsndfile-devel >= 1.0.0
BuildRequires: mingw32-cross-pkg-config
%_mingw32_package_header_debug
BuildArch: noarch
%description
libInstPatch is a library for processing digital sample based MIDI
instrument "patch" files.
%package -n mingw32-%{realname}-devel
Summary: Development package for %{name}
Group: Development/Languages/C and C++
Requires: mingw32-%{realname} = %{version}
%description -n mingw32-%{realname}-devel
This package includes the header files for %{name}.
%_mingw32_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw32_cmake}
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
%files
%license COPYING
%doc README.md
%{_mingw32_bindir}/libinstpatch-2.dll
%files -n mingw32-%{realname}-devel
%{_mingw32_includedir}/libinstpatch-2
%{_mingw32_libdir}/libinstpatch-2.dll.a
%{_mingw32_libdir}/pkgconfig/libinstpatch-1.0.pc
%changelog