# Status: active # Tag: Sf2 # Type: Standalone # Category: Audio, Tool # GUIToolkit: Qt5 Name: polyphone Version: 2.4.1 Release: 3%{?dist} Summary: A SF2 sound font editor URL: https://polyphone-soundfonts.com/ ExclusiveArch: x86_64 aarch64 License: GPL-2.0-or-later Vendor: Audinux Distribution: Audinux Source0: https://github.com/davy7125/polyphone/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-gui BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-linguist BuildRequires: alsa-lib-devel BuildRequires: pkgconfig(jack) BuildRequires: portaudio-devel BuildRequires: rtmidi-devel BuildRequires: stk-devel BuildRequires: libvorbis-devel BuildRequires: libogg-devel BuildRequires: zlib-devel BuildRequires: glib2-devel BuildRequires: openssl-devel BuildRequires: flac-devel BuildRequires: desktop-file-utils %description Polyphone is a free software for editing soundfonts in format sf2. These files contain a multitude of audio samples put together and configured so as to form musical instruments that can be used by synthesizers such as fluidsynth and played using a MIDI keyboard. The goal of Polyphone is to provide: * a simple and efficient interface for creating and editing .sf2 files, available on Windows, Mac OS X and Linux, tools to facilitate and automate the editing of different parameters, making it possible to handle a large amount of data. * Polyphone is licensed under GNU General Public License. Anyone may thus access the source code, and is welcome to help in the development of the program. %prep %autosetup -n %{name}-%{version} sed -i -e "s/usr\/local/usr\//g" sources/polyphone.pro %build cd sources %qmake_qt5 "DEFINES+=USE_LOCAL_RTMIDI USE_LOCAL_QCUSTOMPLOT" polyphone.pro %make_build %install cd sources install -m 755 -d %{buildroot}/%{_bindir}/ install -m 755 bin/polyphone %{buildroot}%{_bindir}/ install -m 755 -d %{buildroot}/%{_datadir}/applications/ install -m 644 contrib/io.polyphone.polyphone.desktop %{buildroot}%{_datadir}/applications/ install -m 755 -d %{buildroot}/%{_datadir}/mime/packages/ install -m 644 contrib/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml install -m 755 -d %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/ install -m 644 resources/polyphone.png %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/%{name}.svg # TODO: install man pages # install polyphon.desktop properly. desktop-file-install --vendor '' \ --add-category=X-Drumming \ --add-category=X-Sound \ --add-category=Midi \ --add-category=Sequencer \ --add-category=X-Jack \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop # appstream-util validate-relax --nonet %{buildroot}%{_datadir}/mime/packages/%{name}.xml # polyphone-2.3.0-3.fc33.x86_64/usr/share/mime/packages/polyphone.xml: No valid root node specified %files %doc sources/changelog README.md sources/README %license LICENSE.txt %{_bindir}/polyphone %{_datadir}/applications/*.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/icons/hicolor/* %changelog * Thu Oct 17 2024 Yann Collette - 2.4.1-3 - update to 2.4.1-3 * Thu Sep 12 2024 Yann Collette - 2.4.0-3 - update to 2.4.0-3 * Sun Mar 13 2022 Yann Collette - 2.3.0-3 - update to 2.3.0-3 * Tue Oct 13 2020 Yann Collette - 2.2.0-3 - fix debug build * Fri Oct 2 2020 Yann Collette - 2.2.0-2 - fix for fedora 33 * Sat Nov 16 2019 Yann Collette - 2.2.0-1 - update to 2.2.0 * Wed Oct 23 2019 Yann Collette - 2.1.3-1 - update to 2.1.3 * Mon Sep 16 2019 Yann Collette - 2.1.1-1 - update to 2.1.1 * Fri Sep 6 2019 Yann Collette - 2.1.0-1 - update to 2.1.0 * Thu Jan 24 2019 Yann Collette - 2.0.1-2 - fix permission - update to 2.0.1 * Mon Oct 15 2018 Yann Collette - 1.9.0-1 - update for Fedora 29 * Wed Nov 15 2017 Yann Collette - 1.9.0-1 - update to 1.9.0 * Tue Oct 24 2017 Yann Collette - 1.8.0-1 - Update to 1.8.0 * Mon Jun 01 2015 Yann Collette - 1.6.0-1 - Initial spec file 1.6.0