commit 6efab531bba6d96a0885e61d8c7b395531dedd22
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Jun 14 18:29:53 2020 +0100
Add gpg source check
gpgkey.asc | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
mpd.spec | 15 +++++++-----
2 files changed, 90 insertions(+), 6 deletions(-)
---
diff --git a/gpgkey.asc b/gpgkey.asc
new file mode 100644
index 0000000..2d45b97
--- /dev/null
+++ b/gpgkey.asc
@@ -0,0 +1,81 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: SKS 1.1.6
+Comment: Hostname: carles.tubio.sks-database_1
+
+mQINBFIF8KsBEACqe90N9wwjYw4QCPJ8HV47d4Vo8yUZ0gSgpWYIBocK9Zs0yqOJek+bA2Z+
+0sI7CxO1NYfg7xJE6GpdUL9QFOK4cbJoBlZ0YuZlKFKvRiG+rsevY9FJSZtKTwciW68pU2W5
+ixtW4g9FPq2LrqsrkGthNtSeL7uiK0SHtFGqz3k167aGfG8il/VXkLRL8Vbl5/6mzE4FUwNc
+omS+dyOgaJHg2C4V/Lio0R4MjY8Lp6PVIPfKqa1d3ZnVFX1VEx6ELZnNbWxmfFRQu7AeoiOH
+1O6rglKvOcM66hqtCvs/nH1JPqqtEcjQjHvXfQFEuY7TXfBnzg98FO7N1lacaA2QgrOBSkDz
+pgPUC1skWQSCZs2KiBU1LMC+5F5rMMNJOozqZrgfIUazmrMEPP+aDmoW/9jBjl1uJXBqKASo
+X376MGrn98i1rlQNHXoxn3s7ieA+4D5PjRB/8r+LMYOTxw78eEhJna6Ijvyew4FKWvvPgoFA
+Ol9SNyOi5lTtwEzY1nxtYOZEBU5Bh/iFrzq6afwRmXUjsHnmb9MIgbSiep4IECwosBRRhvWu
+aRMgIOTbGiawt7/9/w2XUXgeMm3ZYotAm7ApawDSuFYVYJAATDTwHnYE15eK13JhqeahCY4F
+MZXbc4WxD3anGj5ACAqdwK7nU/REU67eUGsxz/x3qrfEr5ol1QARAQABtB1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C
+BBrec+3KqT+els8oUt6lUE8IfItLru5ejT43jKzuWf/NyHbO3xNzOY5QawYa3vyiB1g+JeuY
+/bn+3oQy+SsxDah60LaEJxhjVMkTWP8ICzxx4d5LIIOSbco6x5I7jgMR4vlw0BOqedMksnIx
+4S+GW+c7R9j9RJ7axDhP/q+5XuWK+Ka5qy0RoO4GlVWtmVbYYJl3GLOtLIVAVugIofGqbCYx
+G1v4HJliP0z79q8oJ6J5Iy9/X4bklnGvzA1mSKwUa1pPSxEsxJC0iAi6oGIfkEgebBmbmH4i
+jQKM9jMyJdE/0nZfAz+lvYvF04fu+68uizKEFULnCo8U3pXWhjV9Q6YSy/MhkK86myrb6+DI
+T34ug3mLh6rxynhWFEiTXbUVgx5rLkLLwqmqKj6YIStdskmq6TJwQ3En0MvWnQi4Xz4nT1Wd
+o0F+Mjv2m2Ah5d5C56Q4mZiUn3KxHw==
+=67fQ
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/mpd.spec b/mpd.spec
index 38b5b62..447a264 100644
--- a/mpd.spec
+++ b/mpd.spec
@@ -24,13 +24,14 @@ URL:
https://www.musicpd.org
Source0: %{url}/download/mpd/0.21/mpd-%{version}.tar.xz
Source1: %{url}/download/mpd/0.21/mpd-%{version}.tar.xz.sig
+Source2:
https://pgp.key-server.io/download/0x236E8A58C6DB4512#/gpgkey.asc
# Note that the 0.18.x branch doesn't yet work with Fedora's version of
# libmpcdec which needs updating.
#
https://bugzilla.redhat.com/show_bug.cgi?id=1014468
#
http://bugs.musicpd.org/view.php?id=3814#bugnotes
-Source2: mpd.logrotate
-Source3: mpd.tmpfiles.d
-Source4: mpd.xml
+Source3: mpd.logrotate
+Source4: mpd.tmpfiles.d
+Source5: mpd.xml
Patch0: mpd-0.18-mpdconf.patch
Patch1: mpd-0.20-remove_NoNewPrivileges.patch
@@ -44,6 +45,7 @@ BuildRequires: ffmpeg-devel
BuildRequires: firewalld-filesystem
BuildRequires: flac-devel
BuildRequires: gcc
+BuildRequires: gnupg2
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: lame-devel
BuildRequires: libao-devel
@@ -116,6 +118,7 @@ This package contains FirewallD file for MPD.
%prep
+%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}'
--data='%{SOURCE0}'
%setup -q
%patch0 -p0
%patch1 -p1
@@ -145,12 +148,12 @@ sed -i -e 's@sphinx-build@sphinx-build-3@g' doc/meson.build
%install
%{meson_install}
-install -p -D -m 0644 %{SOURCE2} \
+install -p -D -m 0644 %{SOURCE3} \
%{buildroot}%{_sysconfdir}/logrotate.d/mpd
-install -p -D -m 0644 %{SOURCE3} \
- %{buildroot}%{_prefix}/lib/tmpfiles.d/mpd.conf
install -p -D -m 0644 %{SOURCE4} \
+ %{buildroot}%{_prefix}/lib/tmpfiles.d/mpd.conf
+install -p -D -m 0644 %{SOURCE5} \
%{buildroot}%{_prefix}/lib/firewalld/services/mpd.xml
mkdir -p %{buildroot}/run
install -d -m 0755 %{buildroot}/%{mpd_rundir}