]>
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 |
2566f65e | 11 | Version: 2.0.2 |
c2d1ce44 | 12 | Release: 1 |
e389d9b2 JB |
13 | %if %{with ladcca} || %{with lash} || %{with readline} |
14 | License: GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ (fluidsynth itself) | |
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 | |
2566f65e | 21 | # Source0-md5: fdc3c131786d5a93136f6fbfde787bf1 |
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 |
ae169360 | 29 | %{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0} |
fde40a28 | 30 | %{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1} |
f9c8cc03 | 31 | BuildRequires: ladspa-devel |
e389d9b2 | 32 | %{?with_lash:BuildRequires: lash-devel >= 0.3} |
2566f65e | 33 | BuildRequires: libgomp-devel |
e690dbbd | 34 | BuildRequires: libsndfile-devel >= 1.0.18 |
e389d9b2 | 35 | %{?with_midishare:BuildRequires: midishare-devel} |
4737413f | 36 | BuildRequires: pkgconfig |
2566f65e | 37 | %{?with_portaudio:BuildRequires: portaudio-devel >= 19} |
e690dbbd | 38 | BuildRequires: pulseaudio-devel >= 0.9.8 |
ecf407a5 | 39 | %{?with_readline:BuildRequires: readline-devel} |
7e677f47 | 40 | BuildRequires: rpmbuild(macros) >= 1.213 |
c0296b5f JB |
41 | Requires: alsa-lib >= 0.9.1 |
42 | Requires: glib2 >= 1:2.6.5 | |
43 | Requires: libsndfile >= 1.0.18 | |
cbc84b11 | 44 | Suggests: soundfont-fluid |
43d51d96 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Fluid Synth is a software, real-time synthesizer based on the | |
49 | Soundfont 2 specifications. | |
50 | ||
b01c0090 JR |
51 | %description -l pl.UTF-8 |
52 | Fluid Synth to programowy, działający w czasie rzeczywistym syntezator | |
51d3a7f0 | 53 | oparty na specyfikacji Soundfont 2. |
43d51d96 | 54 | |
55 | %package devel | |
56 | Summary: Development files for the FluidSynth | |
c832e2f0 | 57 | Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth |
43d51d96 | 58 | Group: Development/Libraries |
e3ebd3aa | 59 | Requires: %{name} = %{version}-%{release} |
c0296b5f JB |
60 | Requires: alsa-lib-devel >= 0.9.1 |
61 | Requires: dbus-devel >= 1.0.0 | |
62 | Requires: glib2-devel >= 1:2.6.5 | |
e690dbbd | 63 | Requires: jack-audio-connection-kit-devel |
e389d9b2 | 64 | %{?with_lash:Requires: lash-devel >= 0.3} |
e690dbbd | 65 | Requires: libsndfile-devel >= 1.0.18 |
2566f65e | 66 | %{?with_midishare:Requires: midishare-devel} |
e690dbbd KK |
67 | Requires: portaudio-devel >= 19 |
68 | Requires: pulseaudio-devel >= 0.9.8 | |
2566f65e | 69 | %{?with_readline:Requires: readline-devel} |
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 | |
85 | %cmake \ | |
86 | -Denable-midishare=%{with midishare} \ | |
87 | -Denable-lash=%{with lash} \ | |
88 | -Denable-portaudio=%{with portaudio} \ | |
89 | -Denable-readline=%{with readline} \ | |
90 | .. | |
fde40a28 | 91 | |
c2d1ce44 JB |
92 | # define missing in autotools suite |
93 | echo '#define DEFAULT_SOUNDFONT "%{_datadir}/soundfonts/default.sf2"' >> src/config.h | |
94 | ||
43d51d96 | 95 | %{__make} |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
43d51d96 | 99 | |
2566f65e | 100 | cd build |
9b5cb572 PG |
101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
43d51d96 | 103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
51d3a7f0 JB |
107 | %post -p /sbin/ldconfig |
108 | %postun -p /sbin/ldconfig | |
109 | ||
43d51d96 | 110 | %files |
111 | %defattr(644,root,root,755) | |
c2d1ce44 | 112 | %doc AUTHORS NEWS README.md THANKS TODO |
9e796385 KK |
113 | %attr(755,root,root) %{_bindir}/fluidsynth |
114 | %attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.* | |
2566f65e | 115 | %attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.2 |
9e796385 | 116 | %{_mandir}/man1/fluidsynth.1* |
5fadb22d | 117 | |
118 | %files devel | |
43d51d96 | 119 | %defattr(644,root,root,755) |
9e796385 | 120 | %attr(755,root,root) %{_libdir}/libfluidsynth.so |
9e796385 | 121 | %{_includedir}/fluidsynth.h |
51d3a7f0 | 122 | %{_includedir}/%{name} |
fde40a28 | 123 | %{_pkgconfigdir}/fluidsynth.pc |