File opl3bankeditor.spec of Package opl3bankeditor
#
# spec file for package opl3bankeditor
#
# Copyright (c) 2023, 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 https://bugs.opensuse.org/
#
Name: opl3bankeditor
Version: 1.5.1+git20230108
Release: 0
Summary: An editor for OPL3 FM banks of different formats
License: GPL-3.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://github.com/Wohlstand/OPL3BankEditor
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-linguist-devel
BuildRequires: pkgconfig
BuildRequires: qwt6-qt5-devel
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5SerialPort)
#BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(rtmidi)
BuildRequires: pkgconfig(rtaudio)
%description
This is an editor for instruments, instrument collections
of different adlib music format files.
%prep
%setup -q
sed 's/\r$//' -i changelog.txt Specifications/*.txt
### FIXME: does not build if I remove the external libraries !!!
#rm -Rv src/audio/external
#rm -Rv src/midi/external
%build
### FIXME QWT support ist broken:
# * dependencies
# export CXXFLAGS="%{optflags} -Wno-odr"
# -DQWT_INCLUDE_DIR=%{_includedir}/qt5/qwt6 \
# * investigate build error
%cmake \
-DUSE_RTAUDIO=ON \
-DUSE_VENDORED_RTAUDIO=ON \
-DUSE_RTMIDI=ON \
-DUSE_VENDORED_RTMIDI=ON
%cmake_build
%install
%cmake_install
%files
%license LICENSE license.txt
%doc changelog.txt README.md Specifications/*
%{_bindir}/opl3_bank_editor
%{_datadir}/applications/opl3_bank_editor.desktop
%{_datadir}/icons/hicolor/*x*/apps/opl3_bank_editor.png
%{_datadir}/mime/packages/opl3-opli.xml
%{_datadir}/mime/packages/opl3-wopl.xml
%dir %{_datadir}/opl3_bank_editor/
%dir %{_datadir}/opl3_bank_editor/translations/
%{_datadir}/opl3_bank_editor/translations/opl3bankeditor_fr_FR.qm
%{_datadir}/opl3_bank_editor/translations/opl3bankeditor_pl_PL.qm
%{_datadir}/opl3_bank_editor/translations/opl3bankeditor_ru_RU.qm
%changelog