%undefine _debugsource_packages Name: polyphone Version: 2.5.1 Release: 2%{?dist} Summary: Soundfont Editor (SF2/SFZ) License: GPLv3+ URL: https://polyphone-soundfonts.com/ Source0: https://github.com/davy7125/polyphone/archive/refs/tags/%{version}.tar.gz#/polyphone-%{version}.tar.gz BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtsvg-devel BuildRequires: qt6-qtmultimedia-devel BuildRequires: qt6-qttools-devel BuildRequires: libogg-devel BuildRequires: libvorbis-devel BuildRequires: rtmidi-devel BuildRequires: stk-devel BuildRequires: pipewire-jack-audio-connection-kit-devel BuildRequires: alsa-lib-devel BuildRequires: portaudio-devel BuildRequires: desktop-file-utils BuildRequires: libsndfile-devel BuildRequires: openssl-devel %description Polyphone is a free, open-source soundfont editor supporting both SF2 and SFZ formats. Soundfonts contain collections of audio samples organized into instruments that can be used by software and hardware 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 and SFZ soundfonts * tools to facilitate and automate the editing of parameters, making it possible to handle large collections of samples and instruments %prep %autosetup -n polyphone-%{version} %build qmake6 sources/polyphone.pro PREFIX=%{_prefix} make %{?_smp_mflags} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} install -Dpm0755 bin/polyphone %{buildroot}%{_bindir}/polyphone mkdir -p %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/ install -m0644 sources/resources/polyphone.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/polyphone.png mkdir -p %{buildroot}%{_datadir}/applications cat > polyphone.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Polyphone GenericName=Polyphone Comment=Soundfont Editor Exec=polyphone Icon=polyphone Terminal=false Type=Application Categories=AudioVideo;Audio; EOF desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ polyphone.desktop %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc sources/readme.md %{_bindir}/polyphone %{_datadir}/applications/polyphone.desktop %{_datadir}/icons/hicolor/512x512/apps/polyphone.png %changelog * Fri Dec 26 2025 Jim Hines - 2.5.1-1 - Initial release.