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