From a05438f76d2f9bc5eb39865b2ed94fb0c317729c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 22 Nov 2019 16:04:35 +0100 Subject: add sign check --- phpMyAdmin.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpMyAdmin.spec') diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec index 0e15ff3..1ad41e4 100644 --- a/phpMyAdmin.spec +++ b/phpMyAdmin.spec @@ -37,6 +37,7 @@ Source0: https://files.phpmyadmin.net/%{name}/%{upstream_version}%{?upstream_pre Source1: https://files.phpmyadmin.net/%{name}/%{upstream_version}%{?upstream_prever:-%upstream_prever}/%{name}-%{upstream_version}%{?upstream_prever:-%upstream_prever}-all-languages.tar.xz.asc Source2: phpMyAdmin.htaccess Source3: phpMyAdmin.nginx +Source4: https://files.phpmyadmin.net/phpmyadmin.keyring # Redirect to system certificates Patch0: phpMyAdmin-certs.patch @@ -44,6 +45,7 @@ Patch0: phpMyAdmin-certs.patch Patch1: https://github.com/phpmyadmin/phpmyadmin/commit/5b67d2189cd930ceb4e72da737dbd267b781daf9.patch BuildArch: noarch +BuildRequires: gnupg2 Requires(post): coreutils sed Requires: webserver @@ -186,6 +188,8 @@ is available in 50 languages %prep +%{?gpgverify:%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE1}' --data='%{SOURCE0}'} + %setup -qn phpMyAdmin-%{upstream_version}%{?upstream_prever:-%upstream_prever}-all-languages %patch0 -p1 %patch1 -p1 -- cgit