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