| 1 | Summary: Real-time software synthesizer
|
|---|
| 2 | Name: fluidsynth
|
|---|
| 3 | Version: 2.1.1
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | URL: http://www.fluidsynth.org/
|
|---|
| 6 | #Source0: https://github.com/Fluidsynth/fluidsynth/archive/v%{version}/fluidsynth-%{version}.tar.gz
|
|---|
| 7 | License: LGPLv2+
|
|---|
| 8 | Requires: fluidsynth-libs%{?_isa} = %{version}-%{release}
|
|---|
| 9 |
|
|---|
| 10 | %scm_source github http://github.com/komh/fluidsynth-os2 master
|
|---|
| 11 |
|
|---|
| 12 | # Re-fix multi-lib conflict RHBZ#528240
|
|---|
| 13 | #Patch0: fluidsynth-no_date_footer.patch
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: libogg-devel
|
|---|
| 16 | BuildRequires: flac-devel
|
|---|
| 17 | BuildRequires: libvorbis-devel
|
|---|
| 18 | #BuildRequires: alsa-lib-devel
|
|---|
| 19 | BuildRequires: cmake
|
|---|
| 20 | #BuildRequires: dbus-devel
|
|---|
| 21 | BuildRequires: gcc
|
|---|
| 22 | #%if !0%{?flatpak}
|
|---|
| 23 | #BuildRequires: jack-audio-connection-kit-devel
|
|---|
| 24 | #%endif
|
|---|
| 25 | #BuildRequires: ladspa-devel
|
|---|
| 26 | BuildRequires: libsndfile-devel
|
|---|
| 27 | BuildRequires: ncurses-devel
|
|---|
| 28 | BuildRequires: pkgconfig
|
|---|
| 29 | # Disabled for now:
|
|---|
| 30 | # http://sourceforge.net/apps/trac/fluidsynth/ticket/51
|
|---|
| 31 | # To enable portaudio support one also has to pass
|
|---|
| 32 | # -Denable-portaudio=on to cmake
|
|---|
| 33 | # BuildRequires: portaudio-devel
|
|---|
| 34 | #BuildRequires: pulseaudio-libs-devel
|
|---|
| 35 | BuildRequires: readline-devel
|
|---|
| 36 |
|
|---|
| 37 | # For documentation:
|
|---|
| 38 | BuildRequires: doxygen
|
|---|
| 39 |
|
|---|
| 40 | %description
|
|---|
| 41 | FluidSynth is a real-time software synthesizer based on the SoundFont 2
|
|---|
| 42 | specifications. It is a "software synthesizer". FluidSynth can read MIDI events
|
|---|
| 43 | from the MIDI input device and render them to the audio device. It features
|
|---|
| 44 | real-time effect modulation using SoundFont 2.01 modulators, and a built-in
|
|---|
| 45 | command line shell. It can also play MIDI files (note: FluidSynth was previously
|
|---|
| 46 | called IIWU Synth).
|
|---|
| 47 |
|
|---|
| 48 | %package libs
|
|---|
| 49 | Summary: Real-time software synthesizer run-time libraries
|
|---|
| 50 |
|
|---|
| 51 | %description libs
|
|---|
| 52 | FluidSynth is a real-time software synthesizer based on the SoundFont 2
|
|---|
| 53 | specifications. It is a "software synthesizer". This package holds the run-time
|
|---|
| 54 | shared libraries.
|
|---|
| 55 |
|
|---|
| 56 | %package devel
|
|---|
| 57 | Summary: Real-time software synthesizer development files
|
|---|
| 58 | Requires: fluidsynth-libs%{?_isa} = %{version}-%{release}
|
|---|
| 59 |
|
|---|
| 60 | %description devel
|
|---|
| 61 | FluidSynth is a real-time software synthesizer based on the SoundFont 2
|
|---|
| 62 | specifications. It is a "software synthesizer". This package holds header files
|
|---|
| 63 | for building programs that link against fluidsynth.
|
|---|
| 64 |
|
|---|
| 65 | %prep
|
|---|
| 66 | %scm_setup
|
|---|
| 67 |
|
|---|
| 68 | %build
|
|---|
| 69 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 70 | export LIBS="-lcx"
|
|---|
| 71 | mkdir -p build
|
|---|
| 72 | cd build
|
|---|
| 73 |
|
|---|
| 74 | #%if 0%{?flatpak}
|
|---|
| 75 | #%define enable_jack off
|
|---|
| 76 | #%else
|
|---|
| 77 | #%define enable_jack on
|
|---|
| 78 | #%endif
|
|---|
| 79 |
|
|---|
| 80 | #%{cmake} -Denable-ladspa=on -Denable-jack=%{enable_jack} ..
|
|---|
| 81 | %{cmake} ..
|
|---|
| 82 | #popd
|
|---|
| 83 | cd ..
|
|---|
| 84 |
|
|---|
| 85 | # build fluidsynth
|
|---|
| 86 | make %{?_smp_mflags} -C build
|
|---|
| 87 |
|
|---|
| 88 | # build docs
|
|---|
| 89 | doxygen ./doc
|
|---|
| 90 |
|
|---|
| 91 | %install
|
|---|
| 92 | make DESTDIR=$RPM_BUILD_ROOT -C build install
|
|---|
| 93 | install -p -m0755 build/src/fluidsy2.dll $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 94 |
|
|---|
| 95 | %files
|
|---|
| 96 | %{_bindir}/fluid*
|
|---|
| 97 | %{_mandir}/man1/fluidsynth*
|
|---|
| 98 | #%exclude %{_bindir}/fluidsy2.dll
|
|---|
| 99 | #%exclude %{_bindir}/fluidsynth.dbg
|
|---|
| 100 | #%exclude %{_bindir}/fluidsy2.dbg
|
|---|
| 101 |
|
|---|
| 102 | %files libs
|
|---|
| 103 | %license LICENSE
|
|---|
| 104 | %doc AUTHORS README.md THANKS TODO doc/*.pdf
|
|---|
| 105 | %{_libdir}/fluidsy2.dll
|
|---|
| 106 |
|
|---|
| 107 | %files devel
|
|---|
| 108 | %doc html/*.html
|
|---|
| 109 | %doc doc/*.c
|
|---|
| 110 | %doc doc/*fluid*.txt
|
|---|
| 111 | %doc doc/*.odt
|
|---|
| 112 | %doc ChangeLog
|
|---|
| 113 | %{_includedir}/fluidsynth.h
|
|---|
| 114 | %{_includedir}/fluidsynth/
|
|---|
| 115 | %{_libdir}/*.a
|
|---|
| 116 | %{_libdir}/pkgconfig/*
|
|---|
| 117 |
|
|---|
| 118 | %changelog
|
|---|
| 119 | * Mon Mar 02 2020 Elbert Pol <elbert.pol@gmail.com> - 2.1.1-1
|
|---|
| 120 | - Updated to latest source
|
|---|
| 121 |
|
|---|
| 122 | * Fri Dec 06 2019 Elbert Pol <elbert.pol@gmail.com> - 2.1.0-1
|
|---|
| 123 | - Updated to latest source
|
|---|
| 124 |
|
|---|
| 125 | * Mon Nov 18 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.9-1
|
|---|
| 126 | - Updated to latest source
|
|---|
| 127 |
|
|---|
| 128 | * Mon Oct 28 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.8-1
|
|---|
| 129 | - Updated to latest source
|
|---|
| 130 |
|
|---|
| 131 | * Thu Oct 03 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.7-1
|
|---|
| 132 | - Updated to latest source
|
|---|
| 133 |
|
|---|
| 134 | * Mon Aug 26 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.6-1
|
|---|
| 135 | - Updated to latest source
|
|---|
| 136 |
|
|---|
| 137 | * Mon May 06 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.5-2
|
|---|
| 138 | - The right version ported
|
|---|
| 139 |
|
|---|
| 140 | * Sun May 05 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.5-1
|
|---|
| 141 | - Updated to latest source
|
|---|
| 142 |
|
|---|
| 143 | * Mon Mar 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.2-2
|
|---|
| 144 | - Use spec file from fedora
|
|---|
| 145 | - Add debug to specfile
|
|---|
| 146 |
|
|---|
| 147 | * Thu Feb 28 2019 Elbert Pol <elbert.pol@gmail.com>
|
|---|
| 148 | - First OS2 RPM release
|
|---|
| 149 | - OS/2 port done by KO Myung-Hun
|
|---|
| 150 | - https://github.com/komh/fluidsynth-os2 KO Myung-Hun
|
|---|