2007-01-16 00:12:37 +01:00
|
|
|
#
|
2011-08-09 16:24:51 +02:00
|
|
|
# spec file for package fluidsynth
|
2007-01-16 00:12:37 +01:00
|
|
|
#
|
2020-01-01 10:07:10 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC
|
2007-01-16 00:12:37 +01:00
|
|
|
#
|
2009-06-18 17:24:33 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-04 10:58:46 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:12:37 +01:00
|
|
|
#
|
|
|
|
|
2018-03-06 17:54:54 +01:00
|
|
|
|
2018-02-28 20:17:01 +01:00
|
|
|
# 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
|
2008-04-14 19:33:06 +02:00
|
|
|
|
2020-01-01 10:07:10 +01:00
|
|
|
%define sover 2
|
2007-01-16 00:12:37 +01:00
|
|
|
Name: fluidsynth
|
2020-01-01 10:07:10 +01:00
|
|
|
Version: 2.1.0
|
2012-09-22 01:50:24 +02:00
|
|
|
Release: 0
|
2012-01-11 00:47:19 +01:00
|
|
|
Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm)
|
2018-10-04 10:58:46 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2020-01-01 10:07:10 +01:00
|
|
|
URL: http://www.fluidsynth.org/
|
2017-09-11 10:24:56 +02:00
|
|
|
Source: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-11-22 17:48:22 +01:00
|
|
|
Source1000: baselibs.conf
|
2018-09-18 13:05:05 +02:00
|
|
|
BuildRequires: cmake >= 3.1.0
|
2012-01-11 00:47:19 +01:00
|
|
|
BuildRequires: ladspa-devel
|
2018-02-20 16:03:18 +01:00
|
|
|
BuildRequires: pkgconfig
|
2012-01-11 00:47:19 +01:00
|
|
|
BuildRequires: readline-devel
|
2017-10-14 19:50:25 +02:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
2012-01-11 00:47:19 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2017-10-14 19:50:25 +02:00
|
|
|
BuildRequires: pkgconfig(jack)
|
2020-01-01 10:07:10 +01:00
|
|
|
BuildRequires: pkgconfig(libinstpatch-1.0)
|
2017-10-14 19:50:25 +02:00
|
|
|
BuildRequires: pkgconfig(libpulse)
|
2020-01-01 10:07:10 +01:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2017-10-14 19:50:25 +02:00
|
|
|
BuildRequires: pkgconfig(sndfile)
|
2018-02-28 20:17:01 +01:00
|
|
|
%{?systemd_requires}
|
|
|
|
PreReq: %fillup_prereq
|
2007-01-16 00:12:37 +01:00
|
|
|
|
|
|
|
%description
|
2017-10-14 19:50:25 +02:00
|
|
|
FluidSynth (formerly IIWU Synth) is a real-time software synthesizer
|
|
|
|
based on the SoundFont(tm) 2 specifications. It can read MIDI events
|
|
|
|
from the MIDI input device and render them to the audio device. It
|
|
|
|
can also play MIDI files.
|
2007-01-16 00:12:37 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for the fluidsynth library
|
2012-01-11 00:47:19 +01:00
|
|
|
Requires: glibc-devel
|
2020-01-01 10:07:10 +01:00
|
|
|
Requires: libfluidsynth%{sover} = %{version}
|
2011-01-01 04:12:52 +01:00
|
|
|
Provides: libfluidsynth-devel = %{version}
|
2007-01-16 00:12:37 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the files needed to compile programs that use the
|
|
|
|
fluidsynth library.
|
|
|
|
|
2020-01-01 10:07:10 +01:00
|
|
|
%package -n libfluidsynth%{sover}
|
2007-04-18 00:35:09 +02:00
|
|
|
Summary: Library for Fluidsynth
|
|
|
|
|
2020-01-01 10:07:10 +01:00
|
|
|
%description -n libfluidsynth%{sover}
|
2007-04-18 00:35:09 +02:00
|
|
|
This package contains the shared library for Fluidsynth.
|
|
|
|
|
2007-01-16 00:12:37 +01:00
|
|
|
%prep
|
2020-01-01 10:07:10 +01:00
|
|
|
%autosetup
|
2007-01-16 00:12:37 +01:00
|
|
|
|
|
|
|
%build
|
2018-02-20 16:03:18 +01:00
|
|
|
%cmake \
|
2018-02-28 20:17:01 +01:00
|
|
|
-DFLUID_DAEMON_ENV_FILE=%{_fillupdir}/sysconfig.%{name} \
|
2018-02-20 16:03:18 +01:00
|
|
|
-Denable-lash=0
|
2020-01-01 10:07:10 +01:00
|
|
|
%make_jobs
|
2007-01-16 00:12:37 +01:00
|
|
|
|
2018-09-18 13:05:05 +02:00
|
|
|
%check
|
|
|
|
# depending on the distribution being built for, cmake
|
|
|
|
# may or may not create a 'build' subdirectory
|
|
|
|
%cmake
|
|
|
|
# cannot call ctest as the unit tests need to be compiled yet
|
|
|
|
make check
|
|
|
|
|
2007-01-16 00:12:37 +01:00
|
|
|
%install
|
2018-02-20 16:03:18 +01:00
|
|
|
%cmake_install
|
2007-01-16 00:12:37 +01:00
|
|
|
|
2018-02-28 20:17:01 +01:00
|
|
|
# manually install systemd service files
|
2018-03-02 22:40:58 +01:00
|
|
|
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 %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
2018-02-28 20:17:01 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2020-01-01 10:07:10 +01:00
|
|
|
%post -n libfluidsynth%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libfluidsynth%{sover} -p /sbin/ldconfig
|
2018-09-18 13:05:05 +02:00
|
|
|
|
2007-01-16 00:12:37 +01:00
|
|
|
%files
|
2018-02-20 16:03:18 +01:00
|
|
|
%license LICENSE
|
2020-01-01 10:07:10 +01:00
|
|
|
%doc AUTHORS ChangeLog README.md THANKS TODO
|
|
|
|
%{_bindir}/%{name}
|
2018-02-28 20:17:01 +01:00
|
|
|
%{_fillupdir}/sysconfig.%{name}
|
2020-01-01 10:07:10 +01:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%{_sbindir}/rc%{name}
|
|
|
|
%{_unitdir}/%{name}.service
|
2007-01-16 00:12:37 +01:00
|
|
|
|
|
|
|
%files devel
|
2020-01-01 10:07:10 +01:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}.h
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2007-01-16 00:12:37 +01:00
|
|
|
|
2020-01-01 10:07:10 +01:00
|
|
|
%files -n libfluidsynth%{sover}
|
|
|
|
%{_libdir}/lib%{name}.so.%{sover}*
|
2008-04-14 19:33:06 +02:00
|
|
|
|
2007-04-18 00:35:09 +02:00
|
|
|
%changelog
|