File kmetronome.spec of Package kmetronome

#
# spec file for package kmetronome
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           kmetronome
Version:        1.4.0
Release:        0
Summary:        MIDI Metronome using ALSA Sequencer
License:        GPL-2.0-or-later
URL:            https://kmetronome.sourceforge.io/kmetronome.shtml
Source0:        https://downloads.sourceforge.net/project/kmetronome/kmetronome/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:  hicolor-icon-theme
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Svg)
BuildRequires:  cmake(Qt6SvgWidgets)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(drumstick-alsa) >= 2.9

%description
Drumstick Metronome is a MIDI metronome with Qt6 interface, based on the ALSA
sequencer. Intended for musicians and music students,  it is a tool to keep
the rhythm while playing musical instruments. It uses MIDI for sound generation
instead of digital audio, allowing low CPU usage, and very accurate timing
thanks to the ALSA sequencer.

%prep
%autosetup -p1

%build
# Disabling BUILD_DOCS still installs docs but doesn't need pandoc.
%cmake_qt6 -DCMAKE_INSTALL_DOCDIR:STRING=%{_docdir} \
           -DBUILD_DOCS:BOOL=FALSE

%qt6_build

%install
%qt6_install

%files
%license COPYING
%doc readme.md ChangeLog AUTHORS
%{_bindir}/kmetronome
%{_docdir}/kmetronome/
%{_mandir}/man1/kmetronome.1%{?ext_man}
%{_qt6_sharedir}/applications/net.sourceforge.kmetronome.desktop
%{_qt6_sharedir}/dbus-1/interfaces/net.sourceforge.kmetronome.xml
%{_qt6_sharedir}/dbus-1/services/net.sourceforge.kmetronome.service
%{_qt6_sharedir}/icons/hicolor/*/*/*
%{_qt6_sharedir}/kmetronome/
%{_qt6_sharedir}/metainfo/net.sourceforge.kmetronome.metainfo.xml

%changelog
openSUSE Build Service is sponsored by