File mingw64-alure.spec of Package mingw64-alure

#
# spec file for package mingw64-alure
#
# 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 alure
Name:           mingw64-%{realname}
Version:        1.2
Release:        0
Summary:        Audio Library Tools REloaded
# ALURE code is LGPL-2.0-or-later; note -devel subpackage has its own license tag
License:        LGPL-2.0-or-later
Group:          Development/Libraries/C and C++
URL:            https://kcat.tomasu.net/alure.html
Source:         https://kcat.tomasu.net/alure-releases/%{realname}-%{version}.tar.bz2
Patch0:         fix-missing-include.patch
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-openal-soft-devel
BuildRequires:  mingw64-flac-devel
BuildRequires:  mingw64-mpg123-devel
BuildRequires:  mingw64-libvorbis-devel
### not yet
#BuildRequires:  mingw64-libdumb-devel    // not yet packaged
#BuildRequires:  mingw64-fluidsynth-devel // broken
### // not yet
%_mingw64_package_header_debug
BuildArch:      noarch

%description
ALURE is a utility library to help manage common tasks with OpenAL
applications. This includes device enumeration and initialization,
file loading, and streaming.

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

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}
rm -Rf %{buildroot}%{_mingw64_datadir}/doc/%{realname}/html

%files
%license COPYING
%{_mingw64_bindir}/ALURE32.dll

%files -n mingw64-alure-devel
%{_mingw64_bindir}/alurecdplay.exe
%{_mingw64_bindir}/alureplay.exe
%{_mingw64_bindir}/alurestream.exe
%{_mingw64_includedir}/AL/alure.h
%{_mingw64_libdir}/libALURE32-static.a
%{_mingw64_libdir}/libALURE32.dll.a
%{_mingw64_libdir}/pkgconfig/alure-static.pc
%{_mingw64_libdir}/pkgconfig/alure.pc

%changelog
openSUSE Build Service is sponsored by