[packages/fluidsynth] Version: 2.0.2 (soname change)

jajcus jajcus at pld-linux.org
Mon Nov 19 09:43:37 CET 2018


commit 2566f65ef019dbfc1839db09deaff828ff67057b
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Nov 19 09:06:49 2018 +0100

    Version: 2.0.2 (soname change)

 fluidsynth-midishare.patch | 31 -------------------
 fluidsynth-soname.patch    | 11 -------
 fluidsynth.spec            | 74 +++++++++++-----------------------------------
 3 files changed, 18 insertions(+), 98 deletions(-)
---
diff --git a/fluidsynth.spec b/fluidsynth.spec
index 92f6189..8619ed7 100644
--- a/fluidsynth.spec
+++ b/fluidsynth.spec
@@ -1,20 +1,14 @@
 #
 # Conditional build:
-%bcond_with	ladcca		# ladcca sesion management support (deprecated) (GPL)
 %bcond_without	lash		# LASH support (GPL)
 %bcond_with	midishare	# MidiShare support
+%bcond_without	portaudio	# portaudio 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
-#
-%ifarch pentium3 pentium4 %{x8664}
-%define		with_sse	1
-%endif
 #
 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.8
+Version:	2.0.2
 Release:	1
 %if %{with ladcca} || %{with lash} || %{with readline}
 License:	GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ (fluidsynth itself)
@@ -24,13 +18,10 @@ License:	LGPL v2+
 Group:		Applications/Sound
 #Source0Download: https://github.com/FluidSynth/fluidsynth/releases
 Source0:	https://github.com/FluidSynth/fluidsynth/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	623bb3b8d3a3ef3c4dc0d4cdbfc311a5
-Patch0:		%{name}-midishare.patch
-Patch1:		%{name}-soname.patch
+# Source0-md5:	fdc3c131786d5a93136f6fbfde787bf1
 URL:		http://www.fluidsynth.org/
 BuildRequires:	alsa-lib-devel >= 0.9.1
-BuildRequires:	autoconf >= 2.52
-BuildRequires:	automake
+BuildRequires:	cmake >= 3.1.0
 BuildRequires:	dbus-devel >= 1.0.0
 BuildRequires:	gettext-tools
 BuildRequires:	glib2-devel >= 1:2.6.5
@@ -39,11 +30,11 @@ BuildRequires:	jack-audio-connection-kit-devel
 %{?with_ladcca:BuildRequires:	ladcca-devel >= 0.3.1}
 BuildRequires:	ladspa-devel
 %{?with_lash:BuildRequires:	lash-devel >= 0.3}
+BuildRequires:	libgomp-devel
 BuildRequires:	libsndfile-devel >= 1.0.18
-BuildRequires:	libtool
 %{?with_midishare:BuildRequires:	midishare-devel}
 BuildRequires:	pkgconfig
-BuildRequires:	portaudio-devel >= 19
+%{?with_portaudio:BuildRequires:	portaudio-devel >= 19}
 BuildRequires:	pulseaudio-devel >= 0.9.8
 %{?with_readline:BuildRequires:	readline-devel}
 BuildRequires:	rpmbuild(macros) >= 1.213
@@ -72,10 +63,10 @@ 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}
+%{?with_midishare:Requires: midishare-devel}
 Requires:	portaudio-devel >= 19
 Requires:	pulseaudio-devel >= 0.9.8
-%{?with_readline:Requires:	readline-devel}
+%{?with_readline:Requires: readline-devel}
 
 %description devel
 This package contains the header files necessary to develop
@@ -85,40 +76,18 @@ applications using FluidSynth.
 Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i
 kompilacji aplikacji korzystających z bibliotek FluidSynth.
 
-%package static
-Summary:	Static FluidSynth library
-Summary(pl.UTF-8):	Statyczna wersje biblioteki FluidSynth
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
-
-%description static
-This package contains static version of the FluidSynth library.
-
-%description static -l pl.UTF-8
-Ten pakiet zawiera bibliotekę statyczną FluidSynth.
-
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-
-%configure \
-	%{!?with_ladcca:--disable-ladcca} \
-	%{!?with_lash:--disable-lash} \
-	%{!?with_midishare:--disable-midishare} \
-	%{!?with_static_libs:--disable-static} \
-	%{?with_sse:--enable-SSE} \
-	--enable-jack-support \
-	--enable-ladspa \
-	--enable-profiling \
-	%{!?with_readline:--without-readline}
+mkdir -p build
+cd build
+%cmake \
+	-Denable-midishare=%{with midishare} \
+	-Denable-lash=%{with lash} \
+	-Denable-portaudio=%{with portaudio} \
+	-Denable-readline=%{with readline} \
+	..
 
 # define missing in autotools suite
 echo '#define DEFAULT_SOUNDFONT "%{_datadir}/soundfonts/default.sf2"' >> src/config.h
@@ -128,11 +97,10 @@ echo '#define DEFAULT_SOUNDFONT "%{_datadir}/soundfonts/default.sf2"' >> src/con
 %install
 rm -rf $RPM_BUILD_ROOT
 
+cd build
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfluidsynth.la
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -144,7 +112,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS NEWS README.md THANKS TODO
 %attr(755,root,root) %{_bindir}/fluidsynth
 %attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.1
+%attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.2
 %{_mandir}/man1/fluidsynth.1*
 
 %files devel
@@ -153,9 +121,3 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/fluidsynth.h
 %{_includedir}/%{name}
 %{_pkgconfigdir}/fluidsynth.pc
-
-%if %{with static_libs}
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libfluidsynth.a
-%endif
diff --git a/fluidsynth-midishare.patch b/fluidsynth-midishare.patch
deleted file mode 100644
index aa090db..0000000
--- a/fluidsynth-midishare.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- fluidsynth-1.1.5/src/Makefile.am.orig	2011-09-04 09:38:58.000000000 +0200
-+++ fluidsynth-1.1.5/src/Makefile.am	2011-12-18 16:12:19.962675709 +0100
-@@ -40,6 +40,9 @@ if OSS_SUPPORT
- fluid_oss = drivers/fluid_oss.c
- endif
- 
-+if MIDISHARE_SUPPORT
-+fluid_midishare = drivers/fluid_midishare.c
-+endif
- 
- # if LASH_SUPPORT || LADCCA_SUPPORT (Makefile supports OR?)
- if LASH_SUPPORT
-@@ -90,6 +93,7 @@ libfluidsynth_la_SOURCES = \
- 	$(fluid_jack) \
- 	$(fluid_ladspa) \
- 	$(fluid_lash) \
-+	$(fluid_midishare) \
- 	$(fluid_oss) \
- 	$(fluid_portaudio) \
- 	$(fluid_pulse) \
---- fluidsynth-1.1.5/acinclude.m4.orig	2011-09-04 09:38:58.000000000 +0200
-+++ fluidsynth-1.1.5/acinclude.m4	2011-12-18 16:10:42.556005782 +0100
-@@ -32,6 +32,8 @@ AC_DEFUN([AC_MIDISHARE],
-          AC_MSG_WARN([ *** Could not find MidiShare.h, disabling MidiShare driver])
-      fi	dnl  midishare.h header test
-    fi	dnl  enable_midishare != no?
-+
-+   AM_CONDITIONAL([MIDISHARE_SUPPORT], [test $MIDISHARE_SUPPORT = 1])
- ])
- 
- AC_DEFUN([AC_OSS_AUDIO],
diff --git a/fluidsynth-soname.patch b/fluidsynth-soname.patch
deleted file mode 100644
index ccf4b4d..0000000
--- a/fluidsynth-soname.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- fluidsynth-1.1.8/configure.ac.orig	2017-10-12 17:32:26.000000000 +0200
-+++ fluidsynth-1.1.8/configure.ac	2017-12-17 12:31:42.766731300 +0100
-@@ -28,7 +28,7 @@
- dnl if any interfaces have been added: lt_age++
- dnl if any interfaces have been removed/changed (compatibility broken): lt_age=0
- 
--m4_define([lt_current], [6])
-+m4_define([lt_current], [7])
- m4_define([lt_revision], [1])
- m4_define([lt_age], [6])
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fluidsynth.git/commitdiff/2566f65ef019dbfc1839db09deaff828ff67057b



More information about the pld-cvs-commit mailing list