File mingw32-libsidplayfp.spec of Package mingw32-libsidplayfp

#
# spec file for package mingw32-libsidplayfp
#
# Copyright (c) 2024, 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/
#


Name:           mingw32-libsidplayfp
Version:        2.12.0
Release:        0
Summary:        A library to play Commodore 64 music
License:        GPL-2.0-or-later
Group:          System/Libraries
#Git-Clone:     https://github.com/libsidplayfp/libsidplayfp.git
URL:            https://sourceforge.net/projects/sidplay-residfp/
Source0:        https://sourceforge.net/projects/sidplay-residfp/files/libsidplayfp/2.12/libsidplayfp-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  libtool
BuildRequires:  mingw32-cross-gcc-c++
%_mingw32_package_header_debug
BuildArch:      noarch

%description
A library to play Commodore 64 music based on libsidplay2.

%package -n mingw32-libsidplayfp6
Summary:        A library to play Commodore 64 music
Group:          System/Libraries

%description -n mingw32-libsidplayfp6
A library to play Commodore 64 music based on libsidplay2.

%package -n mingw32-libsidplayfp-devel
Summary:        Development files for libsidplayfp
Group:          Development/Libraries/C and C++
Requires:       mingw32-libsidplayfp6 = %{version}

%description -n mingw32-libsidplayfp-devel
A library to play Commodore 64 music based on libsidplay2.

This package contains development tools and libraries for use when
cross-compiling Windows software.

%package -n mingw32-libstilview0
Summary:        A library to play Commodore 64 music
Group:          System/Libraries

%description -n mingw32-libstilview0
A library to play Commodore 64 music based on libsidplay2.

%package -n mingw32-libstilview-devel
Summary:        Development files for libstilview
Group:          Development/Libraries/C and C++
Requires:       mingw32-libstilview0 = %{version}

%description -n mingw32-libstilview-devel
A library to play Commodore 64 music based on libsidplay2.

This package contains development tools and libraries for use when
cross-compiling Windows software.

%_mingw32_debug_package

%prep
%setup -q -n libsidplayfp-%{version}

%build
%{_mingw32_configure} --disable-static
%{_mingw32_make} %{?_smp_mflags}

%install
%{_mingw32_make_install}

%files -n mingw32-libsidplayfp6
%license COPYING
%{_mingw32_bindir}/libsidplayfp-6.dll

%files -n mingw32-libstilview0
%license COPYING
%{_mingw32_bindir}/libstilview-0.dll

%files -n mingw32-libsidplayfp-devel
%doc AUTHORS NEWS README TODO
%{_mingw32_includedir}/sidplayfp
%{_mingw32_libdir}/libsidplayfp.dll.a
%{_mingw32_libdir}/pkgconfig/libsidplayfp.pc

%files -n mingw32-libstilview-devel
%doc AUTHORS NEWS README TODO
%{_mingw32_includedir}/stilview/
%{_mingw32_libdir}/libstilview.dll.a
%{_mingw32_libdir}/pkgconfig/libstilview.pc

%changelog
openSUSE Build Service is sponsored by