From bf8001abda0284bc8e063d38889cb30703264046f0280edb578e1b3e28637a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=98=D0=BD=D0=B4=D0=B8=D0=B3?= =?UTF-8?q?=D0=BE?= Date: Sat, 6 Nov 2021 02:13:01 +0000 Subject: [PATCH] Accepting request 929791 from home:13ilya - Updated to 0.23.3 * Add patch mpd-service.patch. * Add BuildRequires for fmt, libopenmpt, libpipewire-0.3. * Increased the minimum version for meson to 0.56.0. * Changed meson option -Dupnp from enabled to pupnp. * https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.23.3/NEWS * split permission "player" from "control" * add option "host_permissions" * protocol: * new command "getvol" * show the audio format in "playlistinfo" * support "listfiles" with arbitrary storage plugins * support relative positions in "addid" * fix relative positions in "move" and "moveid" * add "position" parameter to "findadd" and "searchadd" * add position parameter to "load" * use decimal notation instead of scientific notation * "load" supports relative positions * add optional position parameter to "add" and "playlistadd" * allow range in "playlistdelete" * database: * proxy: require MPD 0.20 or later * proxy: require libmpdclient 2.11 or later * proxy: split search into chunks to avoid exceeding the output buffer * simple: add option to hide CUE target songs * upnp: support libnpupnp instead of libupnp * fix scanning files with question mark in the name * inotify: fix use-after-free bug * archive: * zzip, iso9660: ignore file names which are invalid UTF-8 * decoder: * openmpt: new plugin * wavpack: fix WVC file support * input: nfs: fix playback bug * neighbor: mention: failed plugin name in error message * output: * emit "mixer" idle event when replay gain changes volume * alsa: add option "stop_dsd_silence" to work around DSD DAC noise * oss: support DSD over PCM * pipewire: new plugin * pipewire: emit "mixer" idle events on external volume change * pipewire: attempt to change the graph sample rate * pipewire: send artist and title to PipeWire * pipewire: DSD support * snapcast: new plugin * snapcast: fix time stamp bug which caused "Failed to get chunk" * player: * do not cross-fade songs shorter than 20 seconds * fix "albumart" timeout bug * systemd: add "RuntimeDirectory" directive * tags: * new tags "ComposerSort", "Ensemble", "Movement", "MovementNumber", and "Location" OBS-URL: https://build.opensuse.org/request/show/929791 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpd?expand=0&rev=81 --- mpd-service.patch | 22 ++++++++++++++++++++++ mpd.changes | 7 ++++--- mpd.spec | 7 ++++--- 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 mpd-service.patch diff --git a/mpd-service.patch b/mpd-service.patch new file mode 100644 index 0000000..e4b368d --- /dev/null +++ b/mpd-service.patch @@ -0,0 +1,22 @@ +diff -Pdpru mpd-0.23.3.orig/systemd/system/mpd.service.in mpd-0.23.3/systemd/system/mpd.service.in +--- mpd-0.23.3.orig/systemd/system/mpd.service.in 2021-10-31 20:13:10.000000000 +0300 ++++ mpd-0.23.3/systemd/system/mpd.service.in 2021-11-06 04:55:03.182926143 +0300 +@@ -27,7 +27,6 @@ LimitMEMLOCK=64M + ProtectSystem=yes + + # more paranoid security settings +-NoNewPrivileges=yes + ProtectKernelTunables=yes + ProtectControlGroups=yes + ProtectKernelModules=yes +diff -Pdpru mpd-0.23.3.orig/systemd/user/mpd.service.in mpd-0.23.3/systemd/user/mpd.service.in +--- mpd-0.23.3.orig/systemd/user/mpd.service.in 2021-10-31 20:13:10.000000000 +0300 ++++ mpd-0.23.3/systemd/user/mpd.service.in 2021-11-06 04:55:28.318981683 +0300 +@@ -27,7 +27,6 @@ LimitMEMLOCK=64M + ProtectSystem=yes + + # more paranoid security settings +-NoNewPrivileges=yes + ProtectKernelTunables=yes + ProtectControlGroups=yes + # AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh* diff --git a/mpd.changes b/mpd.changes index 8710f23..355b2c3 100644 --- a/mpd.changes +++ b/mpd.changes @@ -1,10 +1,11 @@ ------------------------------------------------------------------- -Fri Nov 5 23:26:09 UTC 2021 - Илья Индиго +Sat Nov 6 02:02:33 UTC 2021 - Илья Индиго - Updated to 0.23.3 - * Add BuildRequires for fmt, libnpupnp, libopenmpt, libpipewire-0.3. + * Add patch mpd-service.patch. + * Add BuildRequires for fmt, libopenmpt, libpipewire-0.3. * Increased the minimum version for meson to 0.56.0. - * Changed meson option -Dupnp from enabled to npupnp. + * Changed meson option -Dupnp from enabled to pupnp. * https://raw.githubusercontent.com/MusicPlayerDaemon/MPD/v0.23.3/NEWS * split permission "player" from "control" * add option "host_permissions" diff --git a/mpd.spec b/mpd.spec index 5fe15cb..13a02d9 100644 --- a/mpd.spec +++ b/mpd.spec @@ -32,7 +32,8 @@ Source3: %{name}-user.conf Source4: %{name}.firewalld Source5: %{name}.tmpfiles.d Patch0: %{name}-conf.patch -Patch1: %{name}-sndfile.patch +Patch1: %{name}-service.patch +Patch2: %{name}-sndfile.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ @@ -74,11 +75,11 @@ BuildRequires: pkgconfig(libmodplug) BuildRequires: pkgconfig(libmpdclient) BuildRequires: pkgconfig(libmpg123) BuildRequires: pkgconfig(libnfs) -BuildRequires: pkgconfig(libnpupnp) BuildRequires: pkgconfig(libopenmpt) BuildRequires: pkgconfig(libpipewire-0.3) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(libupnp) BuildRequires: pkgconfig(liburing) BuildRequires: pkgconfig(mad) BuildRequires: pkgconfig(ogg) @@ -183,7 +184,7 @@ This package contains optional documentation provided in addition to this packag %endif -Dzlib=enabled \ -Dbzip2=enabled \ - -Dupnp=npupnp \ + -Dupnp=pupnp \ -Dzzip=enabled \ -Dadplug=disabled \ -Daudiofile=enabled \