3 %bcond_with ladcca # enable ladcca sesion managment support
4 %bcond_with sse # use the SSE instructions of Pentium3+ or Athlon XP
5 %bcond_without static_libs # don't build static library
7 %ifarch pentium3 pentium4 %{x8664}
11 Summary: FluidSynth - a software, real-time synthesizer
12 Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym
17 Group: Applications/Sound
18 Source0: http://savannah.nongnu.org/download/fluid/%{name}-%{version}.tar.gz
19 # Source0-md5: e2abfd2e69fd8b28d965df968d7d44ee
20 Patch0: %{name}-build.patch
21 URL: http://www.fluidsynth.org/
22 BuildRequires: alsa-lib-devel >= 0.9.0
23 BuildRequires: autoconf >= 2.52
24 BuildRequires: automake
25 BuildRequires: jack-audio-connection-kit-devel
26 %{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0}
27 %{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1}
28 BuildRequires: ladspa-devel
29 BuildRequires: libtool
30 BuildRequires: pkgconfig
31 BuildRequires: rpmbuild(macros) >= 1.213
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Fluid Synth is a software, real-time synthesizer based on the
37 Soundfont 2 specifications.
39 %description -l pl.UTF-8
40 Fluid Synth to programowy, działający w czasie rzeczywistym syntezator
41 oparty na specyfikacji Soundfont 2.
44 Summary: Development files for the FluidSynth
45 Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 This package contains the header files necessary to develop
51 applications using FluidSynth.
53 %description devel -l pl.UTF-8
54 Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i
55 kompilacji aplikacji korzystających z bibliotek FluidSynth.
58 Summary: Static FluidSynth library
59 Summary(pl.UTF-8): Statyczna wersje biblioteki FluidSynth
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 This package contains static version of the FluidSynth library.
66 %description static -l pl.UTF-8
67 Ten pakiet zawiera bibliotekę statyczną FluidSynth.
81 %{!?with_ladcca:--disable-ladcca} \
82 %{!?with_static_libs:--disable-static} \
83 %{?with_sse:--enable-SSE} \
85 --enable-jack-support \
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %doc ChangeLog README
108 %attr(755,root,root) %{_bindir}/fluidsynth
109 %attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.1
111 %{_mandir}/man1/fluidsynth.1*
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libfluidsynth.so
116 %{_libdir}/libfluidsynth.la
117 %{_includedir}/fluidsynth.h
118 %{_includedir}/%{name}
119 %{_pkgconfigdir}/fluidsynth.pc
121 %if %{with static_libs}
123 %defattr(644,root,root,755)
124 %{_libdir}/libfluidsynth.a