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