]> git.pld-linux.org Git - packages/fluidsynth.git/blobdiff - fluidsynth.spec
- updated to 1.1.6
[packages/fluidsynth.git] / fluidsynth.spec
index fcf5d5dd20a013a9b3f39ef30a226881ce89e579..5104cef6ce3f53993ee47736fbbd44ce8e355055 100644 (file)
@@ -1,7 +1,9 @@
 #
 # Conditional build:
-%bcond_with    ladcca          # enable ladcca sesion managment support
-%bcond_with    readline        # build with readline lib line editing
+%bcond_with    ladcca          # ladcca sesion management support (deprecated) (GPL)
+%bcond_without lash            # LASH support (GPL)
+%bcond_with    midishare       # MidiShare support
+%bcond_without readline        # readline line editing (GPL)
 %bcond_with    sse             # use the SSE instructions of Pentium3+ or Athlon XP
 %bcond_without static_libs     # don't build static library
 #
 Summary:       FluidSynth - a software, real-time synthesizer
 Summary(pl.UTF-8):     FluidSynth - programowy syntezator działający w czasie rzeczywistym
 Name:          fluidsynth
-Version:       1.1.1
-Release:       2
-License:       LGPL
+Version:       1.1.6
+Release:       1
+%if %{with ladcca} || %{with lash} || %{with readline}
+License:       GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ (fluidsynth itself)
+%else
+License:       LGPL v2+
+%endif
 Group:         Applications/Sound
-Source0:       http://savannah.nongnu.org/download/fluid/%{name}-%{version}.tar.gz
-# Source0-md5: 0db3da78028d255026230809c6e21b44
+Source0:       http://downloads.sourceforge.net/fluidsynth/%{name}-%{version}.tar.bz2
+# Source0-md5: f6e696690e989098f70641364fdffad7
+Patch0:                %{name}-midishare.patch
 URL:           http://www.fluidsynth.org/
-BuildRequires: alsa-lib-devel >= 0.9.0
+BuildRequires: alsa-lib-devel >= 0.9.1
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
-BuildRequires: gettext-devel
-BuildRequires: glib2-devel
+BuildRequires: dbus-devel >= 1.0.0
+BuildRequires: gettext-tools
+BuildRequires: glib2-devel >= 1:2.6.5
 BuildRequires: jack-audio-connection-kit-devel
 %{?with_ladcca:BuildRequires:  ladcca-devel < 0.4.0}
 %{?with_ladcca:BuildRequires:  ladcca-devel >= 0.3.1}
 BuildRequires: ladspa-devel
+%{?with_lash:BuildRequires:    lash-devel >= 0.3}
+BuildRequires: libsndfile-devel >= 1.0.18
 BuildRequires: libtool
+%{?with_midishare:BuildRequires:       midishare-devel}
 BuildRequires: pkgconfig
+BuildRequires: portaudio-devel >= 19
+BuildRequires: pulseaudio-devel >= 0.9.8
 %{?with_readline:BuildRequires:        readline-devel}
 BuildRequires: rpmbuild(macros) >= 1.213
-Requires:      alsa-lib
+Requires:      alsa-lib >= 0.9.1
+Requires:      glib2 >= 1:2.6.5
+Requires:      libsndfile >= 1.0.18
 Suggests:      soundfont-fluid
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,6 +64,15 @@ Summary:     Development files for the FluidSynth
 Summary(pl.UTF-8):     Pliki nagłówkowe dla FluidSynth
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Requires:      alsa-lib-devel >= 0.9.1
+Requires:      dbus-devel >= 1.0.0
+Requires:      glib2-devel >= 1:2.6.5
+Requires:      jack-audio-connection-kit-devel
+%{?with_lash:Requires: lash-devel >= 0.3}
+Requires:      libsndfile-devel >= 1.0.18
+%{?with_midishare:Requires:    midishare-devel}
+Requires:      portaudio-devel >= 19
+Requires:      pulseaudio-devel >= 0.9.8
 %{?with_readline:Requires:     readline-devel}
 
 %description devel
@@ -73,6 +97,7 @@ Ten pakiet zawiera bibliotekę statyczną FluidSynth.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -83,9 +108,10 @@ Ten pakiet zawiera bibliotekę statyczną FluidSynth.
 
 %configure \
        %{!?with_ladcca:--disable-ladcca} \
+       %{!?with_lash:--disable-lash} \
+       %{!?with_midishare:--disable-midishare} \
        %{!?with_static_libs:--disable-static} \
        %{?with_sse:--enable-SSE} \
-       --enable-coreaudio \
        --enable-jack-support \
        --enable-ladspa \
        --enable-profiling \
@@ -95,11 +121,12 @@ Ten pakiet zawiera bibliotekę statyczną FluidSynth.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfluidsynth.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -117,7 +144,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libfluidsynth.so
-%{_libdir}/libfluidsynth.la
 %{_includedir}/fluidsynth.h
 %{_includedir}/%{name}
 %{_pkgconfigdir}/fluidsynth.pc
This page took 0.029492 seconds and 4 git commands to generate.