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
|
|
|
#
|
2024-01-24 10:43:58 +01:00
|
|
|
# Copyright (c) 2024 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
|
|
|
|
2021-04-07 14:52:54 +02:00
|
|
|
%define sover 3
|
2007-01-16 00:12:37 +01:00
|
|
|
Name: fluidsynth
|
2024-04-05 10:52:22 +02:00
|
|
|
Version: 2.3.5
|
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
|
2021-04-07 14:52:54 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Midi
|
2022-03-24 16:09:27 +01:00
|
|
|
URL: https://www.fluidsynth.orga/
|
2020-10-23 11:17:54 +02:00
|
|
|
Source0: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}.conf
|
2015-11-22 17:48:22 +01:00
|
|
|
Source1000: baselibs.conf
|
2022-09-26 09:00:40 +02:00
|
|
|
BuildRequires: cmake >= 3.13.0
|
2021-04-07 14:52:54 +02:00
|
|
|
BuildRequires: gcc-c++
|
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)
|
2023-03-07 14:55:24 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2020-01-01 10:07:10 +01:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2017-10-14 19:50:25 +02:00
|
|
|
BuildRequires: pkgconfig(sndfile)
|
2021-04-07 14:52:54 +02:00
|
|
|
Recommends: fluid-soundfont-gm
|
2022-12-29 12:54:41 +01:00
|
|
|
%{?systemd_ordering}
|
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
|
2021-04-07 14:52:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
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
|
2021-04-07 14:52:54 +02:00
|
|
|
Group: System/Libraries
|
2007-04-18 00:35:09 +02:00
|
|
|
|
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
|
2021-09-14 16:21:34 +02:00
|
|
|
%autosetup -p1
|
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} \
|
2022-09-26 09:00:40 +02:00
|
|
|
-DDEFAULT_SOUNDFONT=/usr/share/sounds/sf2/FluidR3_GM.sf2 \
|
2018-02-20 16:03:18 +01:00
|
|
|
-Denable-lash=0
|
2021-05-10 17:17:00 +02:00
|
|
|
%cmake_build
|
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
|
2021-05-10 17:17:00 +02:00
|
|
|
%cmake_build check
|
2018-09-18 13:05:05 +02:00
|
|
|
|
2007-01-16 00:12:37 +01:00
|
|
|
%install
|
2018-02-20 16:03:18 +01:00
|
|
|
%cmake_install
|
2020-10-23 11:17:54 +02:00
|
|
|
install -Dpm0644 %{SOURCE1} %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
2022-12-29 12:54:41 +01:00
|
|
|
install -Dpm0644 build/fluidsynth.service %{buildroot}%{_userunitdir}/%{name}.service
|
2020-10-23 11:17:54 +02:00
|
|
|
mkdir %{buildroot}%{_sbindir}
|
2018-03-02 22:40:58 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
2018-02-28 20:17:01 +01:00
|
|
|
|
|
|
|
%pre
|
2022-12-29 12:54:41 +01:00
|
|
|
%systemd_user_pre %{name}.service
|
2018-02-28 20:17:01 +01:00
|
|
|
|
|
|
|
%post
|
2022-12-29 12:54:41 +01:00
|
|
|
%systemd_user_post %{name}.service
|
2018-02-28 20:17:01 +01:00
|
|
|
|
|
|
|
%preun
|
2022-12-29 12:54:41 +01:00
|
|
|
%systemd_user_preun %{name}.service
|
2018-02-28 20:17:01 +01:00
|
|
|
|
|
|
|
%postun
|
2022-12-29 12:54:41 +01:00
|
|
|
%systemd_user_postun %{name}.service
|
2018-02-28 20:17:01 +01:00
|
|
|
|
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}
|
2022-12-29 12:54:41 +01:00
|
|
|
%{_userunitdir}/%{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
|
2022-09-26 09:00:40 +02:00
|
|
|
%dir %{_libdir}/cmake/%{name}/
|
|
|
|
%{_libdir}/cmake/%{name}/*.cmake
|
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
|