3 %bcond_with ladcca # enable ladcca sesion managment support
4 %bcond_with readline # build with readline lib line editing
5 %bcond_with sse # use the SSE instructions of Pentium3+ or Athlon XP
6 %bcond_without static_libs # don't build static library
8 %ifarch pentium3 pentium4 %{x8664}
12 Summary: FluidSynth - a software, real-time synthesizer
13 Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym
18 Group: Applications/Sound
19 Source0: http://downloads.sourceforge.net/fluidsynth/%{name}-%{version}.tar.bz2
20 # Source0-md5: b5fd2f8df79f31b68f06770dccb67956
21 URL: http://www.fluidsynth.org/
22 BuildRequires: alsa-lib-devel >= 0.9.0
23 BuildRequires: autoconf >= 2.52
24 BuildRequires: automake
25 BuildRequires: gettext-devel
26 BuildRequires: glib2-devel
27 BuildRequires: jack-audio-connection-kit-devel
28 %{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0}
29 %{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1}
30 BuildRequires: ladspa-devel
31 BuildRequires: lash-devel
32 BuildRequires: libsndfile-devel >= 1.0.18
33 BuildRequires: libtool
34 BuildRequires: pkgconfig
35 BuildRequires: portaudio-devel >= 19
36 BuildRequires: pulseaudio-devel >= 0.9.8
37 %{?with_readline:BuildRequires: readline-devel}
38 BuildRequires: rpmbuild(macros) >= 1.213
40 Suggests: soundfont-fluid
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Fluid Synth is a software, real-time synthesizer based on the
45 Soundfont 2 specifications.
47 %description -l pl.UTF-8
48 Fluid Synth to programowy, działający w czasie rzeczywistym syntezator
49 oparty na specyfikacji Soundfont 2.
52 Summary: Development files for the FluidSynth
53 Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
56 Requires: alsa-lib-devel >= 0.9.0
57 Requires: jack-audio-connection-kit-devel
59 Requires: libsndfile-devel >= 1.0.18
60 Requires: portaudio-devel >= 19
61 Requires: pulseaudio-devel >= 0.9.8
62 %{?with_readline:Requires: readline-devel}
65 This package contains the header files necessary to develop
66 applications using FluidSynth.
68 %description devel -l pl.UTF-8
69 Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i
70 kompilacji aplikacji korzystających z bibliotek FluidSynth.
73 Summary: Static FluidSynth library
74 Summary(pl.UTF-8): Statyczna wersje biblioteki FluidSynth
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
79 This package contains static version of the FluidSynth library.
81 %description static -l pl.UTF-8
82 Ten pakiet zawiera bibliotekę statyczną FluidSynth.
95 %{!?with_ladcca:--disable-ladcca} \
96 %{!?with_static_libs:--disable-static} \
97 %{?with_sse:--enable-SSE} \
99 --enable-jack-support \
102 %{!?with_readline:--without-readline}
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
113 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfluidsynth.la
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
123 %doc ChangeLog README
124 %attr(755,root,root) %{_bindir}/fluidsynth
125 %attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.0
127 %{_mandir}/man1/fluidsynth.1*
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libfluidsynth.so
132 %{_includedir}/fluidsynth.h
133 %{_includedir}/%{name}
134 %{_pkgconfigdir}/fluidsynth.pc
136 %if %{with static_libs}
138 %defattr(644,root,root,755)
139 %{_libdir}/libfluidsynth.a