File qsynth.spec of Package qsynth
#
# spec file for package qsynth
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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: qsynth
Version: 0.5.2
Release: 0
Summary: Graphical User Interface for fluidsynth
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Midi
Url: https://qsynth.sourceforge.net/qsynth-index.html
Source: https://sourceforge.net/projects/qsynth/files/qsynth/%{version}/qsynth-%{version}.tar.gz
Patch1: qsynth-fix_desktop_file.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-linguist
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(fluidsynth) >= 0.80.0
Recommends: %{name}-lang
%description
Qsynth is a fluidsynth GUI front-end application written in C++ around the Qt5
toolkit using Qt Designer.
%lang_package
%prep
%setup -q
%patch1 -p1
%build
export QT_HASH_SEED=0
%configure \
--enable-system-tray \
--enable-gradient
make %{?_smp_mflags}
%install
export QT_HASH_SEED=0
%make_install
%suse_update_desktop_file -r "%{name}" AudioVideo Midi
%find_lang %{name} --with-qt
%files
%doc ChangeLog
%license COPYING
%{_bindir}/qsynth
%{_datadir}/applications/qsynth.desktop
%{_datadir}/icons/*/*/apps/qsynth.png
%{_datadir}/metainfo
%{_datadir}/qsynth
%exclude %{_datadir}/qsynth/translations
%{_mandir}/man1/qsynth.1%{ext_man}
%{_mandir}/man1/qsynth.fr.1%{ext_man}
%files lang -f %{name}.lang
%{_datadir}/qsynth/translations
%changelog