]>
Commit | Line | Data |
---|---|---|
5fadb22d | 1 | # |
2 | # Conditional build: | |
e389d9b2 JB |
3 | %bcond_with ladcca # ladcca sesion management support (deprecated) (GPL) |
4 | %bcond_without lash # LASH support (GPL) | |
5 | %bcond_with midishare # MidiShare support | |
6 | %bcond_without readline # readline line editing (GPL) | |
9e796385 KK |
7 | %bcond_with sse # use the SSE instructions of Pentium3+ or Athlon XP |
8 | %bcond_without static_libs # don't build static library | |
5fadb22d | 9 | # |
7e677f47 | 10 | %ifarch pentium3 pentium4 %{x8664} |
13cb656b PS |
11 | %define with_sse 1 |
12 | %endif | |
13 | # | |
a02834be | 14 | Summary: FluidSynth - a software, real-time synthesizer |
c832e2f0 | 15 | Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym |
43d51d96 | 16 | Name: fluidsynth |
c2d1ce44 JB |
17 | Version: 1.1.8 |
18 | Release: 1 | |
e389d9b2 JB |
19 | %if %{with ladcca} || %{with lash} || %{with readline} |
20 | License: GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ (fluidsynth itself) | |
21 | %else | |
c0296b5f | 22 | License: LGPL v2+ |
e389d9b2 | 23 | %endif |
43d51d96 | 24 | Group: Applications/Sound |
c2d1ce44 JB |
25 | #Source0Download: https://github.com/FluidSynth/fluidsynth/releases |
26 | Source0: https://github.com/FluidSynth/fluidsynth/archive/v%{version}/%{name}-%{version}.tar.gz | |
27 | # Source0-md5: 623bb3b8d3a3ef3c4dc0d4cdbfc311a5 | |
e389d9b2 | 28 | Patch0: %{name}-midishare.patch |
c2d1ce44 | 29 | Patch1: %{name}-soname.patch |
43d51d96 | 30 | URL: http://www.fluidsynth.org/ |
c0296b5f | 31 | BuildRequires: alsa-lib-devel >= 0.9.1 |
9e796385 | 32 | BuildRequires: autoconf >= 2.52 |
4737413f | 33 | BuildRequires: automake |
c0296b5f | 34 | BuildRequires: dbus-devel >= 1.0.0 |
2a60fc6b | 35 | BuildRequires: gettext-tools |
c0296b5f | 36 | BuildRequires: glib2-devel >= 1:2.6.5 |
43d51d96 | 37 | BuildRequires: jack-audio-connection-kit-devel |
ae169360 | 38 | %{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0} |
fde40a28 | 39 | %{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1} |
f9c8cc03 | 40 | BuildRequires: ladspa-devel |
e389d9b2 | 41 | %{?with_lash:BuildRequires: lash-devel >= 0.3} |
e690dbbd | 42 | BuildRequires: libsndfile-devel >= 1.0.18 |
9e796385 | 43 | BuildRequires: libtool |
e389d9b2 | 44 | %{?with_midishare:BuildRequires: midishare-devel} |
4737413f | 45 | BuildRequires: pkgconfig |
e690dbbd KK |
46 | BuildRequires: portaudio-devel >= 19 |
47 | BuildRequires: pulseaudio-devel >= 0.9.8 | |
ecf407a5 | 48 | %{?with_readline:BuildRequires: readline-devel} |
7e677f47 | 49 | BuildRequires: rpmbuild(macros) >= 1.213 |
c0296b5f JB |
50 | Requires: alsa-lib >= 0.9.1 |
51 | Requires: glib2 >= 1:2.6.5 | |
52 | Requires: libsndfile >= 1.0.18 | |
cbc84b11 | 53 | Suggests: soundfont-fluid |
43d51d96 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
56 | %description | |
57 | Fluid Synth is a software, real-time synthesizer based on the | |
58 | Soundfont 2 specifications. | |
59 | ||
b01c0090 JR |
60 | %description -l pl.UTF-8 |
61 | Fluid Synth to programowy, działający w czasie rzeczywistym syntezator | |
51d3a7f0 | 62 | oparty na specyfikacji Soundfont 2. |
43d51d96 | 63 | |
64 | %package devel | |
65 | Summary: Development files for the FluidSynth | |
c832e2f0 | 66 | Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth |
43d51d96 | 67 | Group: Development/Libraries |
e3ebd3aa | 68 | Requires: %{name} = %{version}-%{release} |
c0296b5f JB |
69 | Requires: alsa-lib-devel >= 0.9.1 |
70 | Requires: dbus-devel >= 1.0.0 | |
71 | Requires: glib2-devel >= 1:2.6.5 | |
e690dbbd | 72 | Requires: jack-audio-connection-kit-devel |
e389d9b2 | 73 | %{?with_lash:Requires: lash-devel >= 0.3} |
e690dbbd | 74 | Requires: libsndfile-devel >= 1.0.18 |
e389d9b2 | 75 | %{?with_midishare:Requires: midishare-devel} |
e690dbbd KK |
76 | Requires: portaudio-devel >= 19 |
77 | Requires: pulseaudio-devel >= 0.9.8 | |
ecf407a5 | 78 | %{?with_readline:Requires: readline-devel} |
43d51d96 | 79 | |
80 | %description devel | |
81 | This package contains the header files necessary to develop | |
51d3a7f0 | 82 | applications using FluidSynth. |
43d51d96 | 83 | |
b01c0090 JR |
84 | %description devel -l pl.UTF-8 |
85 | Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i | |
86 | kompilacji aplikacji korzystających z bibliotek FluidSynth. | |
43d51d96 | 87 | |
5fadb22d | 88 | %package static |
7cab7902 | 89 | Summary: Static FluidSynth library |
c832e2f0 | 90 | Summary(pl.UTF-8): Statyczna wersje biblioteki FluidSynth |
7cab7902 | 91 | Group: Development/Libraries |
e3ebd3aa | 92 | Requires: %{name}-devel = %{version}-%{release} |
5fadb22d | 93 | |
94 | %description static | |
51d3a7f0 | 95 | This package contains static version of the FluidSynth library. |
5fadb22d | 96 | |
b01c0090 JR |
97 | %description static -l pl.UTF-8 |
98 | Ten pakiet zawiera bibliotekę statyczną FluidSynth. | |
5fadb22d | 99 | |
43d51d96 | 100 | %prep |
0afc704e | 101 | %setup -q |
e389d9b2 | 102 | %patch0 -p1 |
c2d1ce44 | 103 | %patch1 -p1 |
43d51d96 | 104 | |
105 | %build | |
9e796385 KK |
106 | %{__libtoolize} |
107 | %{__aclocal} | |
108 | %{__autoconf} | |
109 | %{__autoheader} | |
110 | %{__automake} | |
5b109aa3 | 111 | |
43d51d96 | 112 | %configure \ |
ae169360 | 113 | %{!?with_ladcca:--disable-ladcca} \ |
e389d9b2 JB |
114 | %{!?with_lash:--disable-lash} \ |
115 | %{!?with_midishare:--disable-midishare} \ | |
9e796385 | 116 | %{!?with_static_libs:--disable-static} \ |
810405f4 | 117 | %{?with_sse:--enable-SSE} \ |
810405f4 | 118 | --enable-jack-support \ |
119 | --enable-ladspa \ | |
9e796385 | 120 | --enable-profiling \ |
ecf407a5 | 121 | %{!?with_readline:--without-readline} |
fde40a28 | 122 | |
c2d1ce44 JB |
123 | # define missing in autotools suite |
124 | echo '#define DEFAULT_SOUNDFONT "%{_datadir}/soundfonts/default.sf2"' >> src/config.h | |
125 | ||
43d51d96 | 126 | %{__make} |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
43d51d96 | 130 | |
9b5cb572 PG |
131 | %{__make} install \ |
132 | DESTDIR=$RPM_BUILD_ROOT | |
43d51d96 | 133 | |
1355757b | 134 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfluidsynth.la |
135 | ||
43d51d96 | 136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
51d3a7f0 JB |
139 | %post -p /sbin/ldconfig |
140 | %postun -p /sbin/ldconfig | |
141 | ||
43d51d96 | 142 | %files |
143 | %defattr(644,root,root,755) | |
c2d1ce44 | 144 | %doc AUTHORS NEWS README.md THANKS TODO |
9e796385 KK |
145 | %attr(755,root,root) %{_bindir}/fluidsynth |
146 | %attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.* | |
c3ee7f44 | 147 | %attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.1 |
9e796385 | 148 | %{_mandir}/man1/fluidsynth.1* |
5fadb22d | 149 | |
150 | %files devel | |
43d51d96 | 151 | %defattr(644,root,root,755) |
9e796385 | 152 | %attr(755,root,root) %{_libdir}/libfluidsynth.so |
9e796385 | 153 | %{_includedir}/fluidsynth.h |
51d3a7f0 | 154 | %{_includedir}/%{name} |
fde40a28 | 155 | %{_pkgconfigdir}/fluidsynth.pc |
5fadb22d | 156 | |
9e796385 | 157 | %if %{with static_libs} |
5fadb22d | 158 | %files static |
51d3a7f0 | 159 | %defattr(644,root,root,755) |
9e796385 KK |
160 | %{_libdir}/libfluidsynth.a |
161 | %endif |