File kmetronome.spec of Package kmetronome

#
# spec file for package kmetronome
#
# Copyright (c) 2019 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.0.1
Release:        0
Summary:        Qt5 MIDI Metronome using ALSA Sequencer
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Midi
URL:            http://kmetronome.sourceforge.net
Source0:        http://downloads.sourceforge.net/project/kmetronome/kmetronome/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:  alsa-devel
BuildRequires:  cmake
BuildRequires:  hicolor-icon-theme
BuildRequires:  libdrumstick-devel
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Widgets)
%if 0%{?suse_version} > 1310
BuildRequires:  libqt5-linguist-devel
%else
BuildRequires:  libqt5-qttools-devel
%endif

%description
Drumstick Metronome is a MIDI metronome with Qt5 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
%setup -q

%build
%cmake
make %{?_smp_mflags}

%install
%cmake_install
%suse_update_desktop_file %{name}

%files
%doc README ChangeLog AUTHORS TODO
%{_mandir}/man1/*
%dir %{_datadir}/%{name}/
%dir %{_datadir}/icons/hicolor/24x24/
%dir %{_datadir}/icons/hicolor/24x24/apps/
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/*/*
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by