Hello community, here is the log from the commit of package fluidsynth for openSUSE:Factory checked in at 2020-10-27 18:58:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fluidsynth (Old) and /work/SRC/openSUSE:Factory/.fluidsynth.new.3463 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fluidsynth" Tue Oct 27 18:58:18 2020 rev:54 rq:843570 version:2.1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/fluidsynth/fluidsynth.changes 2020-09-24 16:13:36.856860826 +0200 +++ /work/SRC/openSUSE:Factory/.fluidsynth.new.3463/fluidsynth.changes 2020-10-27 18:58:23.250718905 +0100 @@ -1,0 +2,8 @@ +Mon Oct 19 11:05:56 UTC 2020 - Илья Индиго <i...@ilya.pp.ua> + +- Refresh spec-file via spec-cleaner and manual optimizations. +- Add Requires:fluid-soundfont-gm. +- Add user fluidsynth and group audio. +- Add files: fluidsynth.conf and fluidsynth.service. + +------------------------------------------------------------------- @@ -539 +546,0 @@ - New: ---- fluidsynth.conf fluidsynth.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fluidsynth.spec ++++++ --- /var/tmp/diff_new_pack.ozSVGn/_old 2020-10-27 18:58:24.574719868 +0100 +++ /var/tmp/diff_new_pack.ozSVGn/_new 2020-10-27 18:58:24.574719868 +0100 @@ -1,7 +1,7 @@ # # spec file for package fluidsynth # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,16 @@ # -# 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 - %define sover 2 Name: fluidsynth Version: 2.1.5 Release: 0 Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm) License: LGPL-2.1-or-later -URL: http://www.fluidsynth.org/ -Source: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +URL: http://www.fluidsynth.org +Source0: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: %{name}.conf +Source2: %{name}.service Source1000: baselibs.conf BuildRequires: cmake >= 3.1.0 BuildRequires: ladspa-devel @@ -43,8 +38,11 @@ BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sndfile) +Requires: fluid-soundfont-gm +Requires(pre): %fillup_prereq +Requires(pre): group(audio) +Requires(pre): shadow %{?systemd_requires} -PreReq: %fillup_prereq %description FluidSynth (formerly IIWU Synth) is a real-time software synthesizer @@ -82,18 +80,18 @@ # may or may not create a 'build' subdirectory %cmake # cannot call ctest as the unit tests need to be compiled yet -make check +%make_build check %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} +mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} +install -Dpm0644 %{SOURCE1} %{buildroot}%{_fillupdir}/sysconfig.%{name} +install -Dpm0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service +mkdir %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %pre +getent passwd %{name} >/dev/null || useradd -rc 'FluidSynth GM daemon' -s /bin/false -d %{_localstatedir}/lib/%{name} -g audio %{name} %service_add_pre %{name}.service %post @@ -112,6 +110,7 @@ %files %license LICENSE %doc AUTHORS ChangeLog README.md THANKS TODO +%dir %attr(-,%{name},audio) %{_localstatedir}/lib/%{name} %{_bindir}/%{name} %{_fillupdir}/sysconfig.%{name} %{_mandir}/man1/%{name}.1%{?ext_man} ++++++ fluidsynth.conf ++++++ # Mandatory parameters (uncomment and edit) SOUND_FONT=/usr/share/sounds/sf2/FluidR3_GM.sf2 # Additional optional parameters (may be useful, see 'man fluidsynth' for further info) OTHER_OPTS='-a pulseaudio -m alsa_seq -p FluidSynth\ GM -r 48000' ++++++ fluidsynth.service ++++++ [Unit] Description=FluidSynth GM daemon Documentation=man:fluidsynth(1) After=sound.target [Service] User=fluidsynth Group=audio EnvironmentFile=-/etc/sysconfig/fluidsynth ExecStart=/usr/bin/fluidsynth -is $OTHER_OPTS $SOUND_FONT LimitRTPRIO=90 [Install] WantedBy=multi-user.target