File qmmp 2.3.spec of Package MrSvX81

Name:           qmmp
Version:        2.3.0
Release:        1%{?dist}
Summary:        Qt-based audio player similar to Winamp
License:        GPL-2.0-or-later
URL:            https://qmmp.ylsoftware.com/
Source0:        %{name}-%{version}.tar.bz2

BuildRequires:  cmake gcc-c++ qt6-base-devel taglib-devel libmad-devel libvorbis-devel libogg-devel \
                libflac-devel libmpg123-devel libsndfile-devel libfaad2-devel libwavpack-devel libmodplug-devel \
                libxmp-devel libqt6multimedia6-devel
Requires:       qt6-base

%description
Qmmp is a Qt-based audio player that looks similar to Winamp.

%prep
%setup -q

%build
cmake -B build -S . \
  -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel

%install
DESTDIR=%{buildroot} cmake --install build

%files
%license COPYING
%doc README.md
%{_bindir}/qmmp
%{_datadir}/applications/qmmp.desktop
%{_datadir}/icons/hicolor/*/apps/qmmp.*
%{_datadir}/qmmp
%{_libdir}/qmmp
openSUSE Build Service is sponsored by