Accepting request 580328 from home:derselbst:branches:multimedia:libs

- Update to 1.1.10
- Install systemd service files

OBS-URL: https://build.opensuse.org/request/show/580328
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/fluidsynth?expand=0&rev=42
This commit is contained in:
Takashi Iwai 2018-02-28 19:17:01 +00:00 committed by Git OBS Bridge
parent b97498185c
commit b03b665dfb
4 changed files with 52 additions and 7 deletions

3
fluidsynth-1.1.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b74801d0fdd726c4555149bf075b76dc4074658ec0a8f7a3753f4a64589e5300
size 633628

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd6321e13a7c875ef3032644bd3197e84b3d24928e2379bc8066b7cace7bd410
size 630651

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sun Feb 25 11:57:25 UTC 2018 - tom.mbrt@googlemail.com
- Update to 1.1.10:
* avoid a buffer overrun when loading malformed soundfonts
* fix synth.default-soundfont returning incomplete path
* improve reliability of fluid_is_soundfont()
* include windows version info in libfluidsynth.dll
* enable jack midi driver to support more than 16 midi channels
* minor cmake adjustments for MSVC builds to enable building fluidsynth as vcpkg package
* fix build issues against statically built fluidsynth library on all OSs
* enable fluidsynth to be set up as systemd user service
* cmake: prevent double usage of LIB_SUFFIX and LIB_INSTALL_DIR
- Install systemd service files
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 15 13:22:56 UTC 2018 - tchvatal@suse.com Thu Feb 15 13:22:56 UTC 2018 - tchvatal@suse.com

View File

@ -15,9 +15,15 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# fix build for older distros and architectures where _fillupdir is
# not yet defined by using the old path as recommended by
# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25_fillupdir
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: fluidsynth Name: fluidsynth
Version: 1.1.9 Version: 1.1.10
Release: 0 Release: 0
Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm) Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm)
License: LGPL-2.1+ License: LGPL-2.1+
@ -34,6 +40,8 @@ BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(sndfile) BuildRequires: pkgconfig(sndfile)
%{?systemd_requires}
PreReq: %fillup_prereq
%description %description
FluidSynth (formerly IIWU Synth) is a real-time software synthesizer FluidSynth (formerly IIWU Synth) is a real-time software synthesizer
@ -63,10 +71,8 @@ This package contains the shared library for Fluidsynth.
%setup -q %setup -q
%build %build
# Upstream uses both LIB_SUFFIX and LIB_INSTALL_DIR... so it gets set to
# lib6464 unless overriden
%cmake \ %cmake \
-DLIB_INSTALL_DIR:PATH=/usr/lib \ -DFLUID_DAEMON_ENV_FILE=%{_fillupdir}/sysconfig.%{name} \
-Denable-ladspa=1 \ -Denable-ladspa=1 \
-Denable-lash=0 -Denable-lash=0
make %{?_smp_mflags} make %{?_smp_mflags}
@ -74,14 +80,38 @@ make %{?_smp_mflags}
%install %install
%cmake_install %cmake_install
# manually install systemd service files
%__install -Dm 644 build/fluidsynth.conf %{buildroot}%{_fillupdir}/sysconfig.%{name}
%__install -Dm 644 build/fluidsynth.service %{buildroot}%{_unitdir}/%{name}.service
%__install -d %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
%post -n libfluidsynth1 -p /sbin/ldconfig %post -n libfluidsynth1 -p /sbin/ldconfig
%postun -n libfluidsynth1 -p /sbin/ldconfig %postun -n libfluidsynth1 -p /sbin/ldconfig
%pre
%service_add_pre %{name}.service
%post
%fillup_only
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files %files
%license LICENSE %license LICENSE
%doc AUTHORS ChangeLog NEWS README.md THANKS TODO %doc AUTHORS ChangeLog NEWS README.md THANKS TODO
%{_mandir}/man?/* %{_mandir}/man?/*
%{_bindir}/* %{_bindir}/*
%{_unitdir}/%{name}.service
%{_sbindir}/rc%{name}
%{_fillupdir}/sysconfig.%{name}
%files devel %files devel
%{_libdir}/lib*.so %{_libdir}/lib*.so