]>
Commit | Line | Data |
---|---|---|
5fadb22d | 1 | # |
2 | # Conditional build: | |
e389d9b2 JB |
3 | %bcond_without lash # LASH support (GPL) |
4 | %bcond_with midishare # MidiShare support | |
f3eb153f | 5 | %bcond_without pipewire # pipewire support |
2566f65e | 6 | %bcond_without portaudio # portaudio support |
e389d9b2 | 7 | %bcond_without readline # readline line editing (GPL) |
c26a125b | 8 | %bcond_without systemd # systemd notify support |
13cb656b | 9 | # |
a02834be | 10 | Summary: FluidSynth - a software, real-time synthesizer |
c832e2f0 | 11 | Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym |
43d51d96 | 12 | Name: fluidsynth |
f3eb153f | 13 | Version: 2.3.1 |
c26a125b | 14 | Release: 1 |
e2b99d1e JB |
15 | %if %{with lash} || %{with readline} |
16 | License: GPL v2+ (enforced by lash/readline), LGPL v2+ (fluidsynth itself) | |
e389d9b2 | 17 | %else |
c0296b5f | 18 | License: LGPL v2+ |
e389d9b2 | 19 | %endif |
43d51d96 | 20 | Group: Applications/Sound |
c2d1ce44 JB |
21 | #Source0Download: https://github.com/FluidSynth/fluidsynth/releases |
22 | Source0: https://github.com/FluidSynth/fluidsynth/archive/v%{version}/%{name}-%{version}.tar.gz | |
f3eb153f | 23 | # Source0-md5: 7025da39fde375854bfb19ed38b7ee79 |
e71a1b9b | 24 | URL: https://www.fluidsynth.org/ |
f6e767e3 | 25 | BuildRequires: SDL2-devel >= 2 |
c0296b5f | 26 | BuildRequires: alsa-lib-devel >= 0.9.1 |
f3eb153f | 27 | BuildRequires: cmake >= 3.13 |
c0296b5f | 28 | BuildRequires: dbus-devel >= 1.0.0 |
2a60fc6b | 29 | BuildRequires: gettext-tools |
e2696d34 | 30 | BuildRequires: glib2-devel >= 1:2.26.0 |
43d51d96 | 31 | BuildRequires: jack-audio-connection-kit-devel |
f9c8cc03 | 32 | BuildRequires: ladspa-devel |
e389d9b2 | 33 | %{?with_lash:BuildRequires: lash-devel >= 0.3} |
e2b99d1e JB |
34 | # OpenMP 4.0 |
35 | BuildRequires: libgomp-devel >= 6:4.9 | |
e71a1b9b | 36 | BuildRequires: libinstpatch-devel >= 1.1.0 |
e690dbbd | 37 | BuildRequires: libsndfile-devel >= 1.0.18 |
e389d9b2 | 38 | %{?with_midishare:BuildRequires: midishare-devel} |
4737413f | 39 | BuildRequires: pkgconfig |
f3eb153f | 40 | %{?with_pipewire:BuildRequires: pipewire-devel >= 0.3} |
2566f65e | 41 | %{?with_portaudio:BuildRequires: portaudio-devel >= 19} |
e690dbbd | 42 | BuildRequires: pulseaudio-devel >= 0.9.8 |
ecf407a5 | 43 | %{?with_readline:BuildRequires: readline-devel} |
7e677f47 | 44 | BuildRequires: rpmbuild(macros) >= 1.213 |
c26a125b | 45 | %{?with_systemd:BuildRequires: systemd-devel >= 1:209} |
c0296b5f | 46 | Requires: alsa-lib >= 0.9.1 |
e2696d34 | 47 | Requires: glib2 >= 1:2.26.0 |
c0296b5f | 48 | Requires: libsndfile >= 1.0.18 |
cbc84b11 | 49 | Suggests: soundfont-fluid |
43d51d96 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %description | |
53 | Fluid Synth is a software, real-time synthesizer based on the | |
54 | Soundfont 2 specifications. | |
55 | ||
b01c0090 JR |
56 | %description -l pl.UTF-8 |
57 | Fluid Synth to programowy, działający w czasie rzeczywistym syntezator | |
51d3a7f0 | 58 | oparty na specyfikacji Soundfont 2. |
43d51d96 | 59 | |
60 | %package devel | |
61 | Summary: Development files for the FluidSynth | |
c832e2f0 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth |
43d51d96 | 63 | Group: Development/Libraries |
e3ebd3aa | 64 | Requires: %{name} = %{version}-%{release} |
c0296b5f JB |
65 | Requires: alsa-lib-devel >= 0.9.1 |
66 | Requires: dbus-devel >= 1.0.0 | |
e2696d34 | 67 | Requires: glib2-devel >= 1:2.26.0 |
e690dbbd | 68 | Requires: jack-audio-connection-kit-devel |
e389d9b2 | 69 | %{?with_lash:Requires: lash-devel >= 0.3} |
e690dbbd | 70 | Requires: libsndfile-devel >= 1.0.18 |
2566f65e | 71 | %{?with_midishare:Requires: midishare-devel} |
f3eb153f | 72 | %{?with_pipewire:Requires: pipewire-devel >= 0.3} |
c18887e9 | 73 | %{?with_portaudio:Requires: portaudio-devel >= 19} |
e690dbbd | 74 | Requires: pulseaudio-devel >= 0.9.8 |
2566f65e | 75 | %{?with_readline:Requires: readline-devel} |
08a54b0d | 76 | Obsoletes: fluidsynth-static < 2 |
43d51d96 | 77 | |
78 | %description devel | |
79 | This package contains the header files necessary to develop | |
51d3a7f0 | 80 | applications using FluidSynth. |
43d51d96 | 81 | |
b01c0090 JR |
82 | %description devel -l pl.UTF-8 |
83 | Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i | |
84 | kompilacji aplikacji korzystających z bibliotek FluidSynth. | |
43d51d96 | 85 | |
43d51d96 | 86 | %prep |
0afc704e | 87 | %setup -q |
43d51d96 | 88 | |
89 | %build | |
f3eb153f | 90 | %cmake -B build \ |
2566f65e JK |
91 | -Denable-midishare=%{with midishare} \ |
92 | -Denable-lash=%{with lash} \ | |
f3eb153f | 93 | %{!?with_pipewire:-Denable-pipewire=OFF} \ |
2566f65e | 94 | -Denable-portaudio=%{with portaudio} \ |
c26a125b JB |
95 | -Denable-readline=%{with readline} \ |
96 | %{!?with_systemd:-Denable-systemd=OFF} | |
fde40a28 | 97 | |
f3eb153f | 98 | %{__make} -C build |
43d51d96 | 99 | |
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
43d51d96 | 102 | |
f3eb153f | 103 | %{__make} -C build install \ |
9b5cb572 | 104 | DESTDIR=$RPM_BUILD_ROOT |
43d51d96 | 105 | |
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
51d3a7f0 JB |
109 | %post -p /sbin/ldconfig |
110 | %postun -p /sbin/ldconfig | |
111 | ||
43d51d96 | 112 | %files |
113 | %defattr(644,root,root,755) | |
c26a125b | 114 | %doc AUTHORS README.md THANKS TODO |
9e796385 KK |
115 | %attr(755,root,root) %{_bindir}/fluidsynth |
116 | %attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.* | |
e2696d34 | 117 | %attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.3 |
9e796385 | 118 | %{_mandir}/man1/fluidsynth.1* |
5fadb22d | 119 | |
120 | %files devel | |
43d51d96 | 121 | %defattr(644,root,root,755) |
9e796385 | 122 | %attr(755,root,root) %{_libdir}/libfluidsynth.so |
9e796385 | 123 | %{_includedir}/fluidsynth.h |
ef862a88 | 124 | %{_includedir}/fluidsynth |
fde40a28 | 125 | %{_pkgconfigdir}/fluidsynth.pc |
f3eb153f | 126 | %{_libdir}/cmake/fluidsynth |