Accepting request 143989 from home:sbrabec:gpg-offline-verify

Verify GPG signature: Perform build-time offline GPG verification.
Please verify that included keyring matches your needs.
For manipulation with the offline keyring, please use gpg-offline tool from openSUSE:Factory, devel-tools-building or Base:System.
See the man page and/or /usr/share/doc/packages/gpg-offline/PACKAGING.HOWTO.

If you need to build your package for older products and don't want to mess spec file with ifs, please follow PACKAGING.HOWTO:
you can link or aggregate gpg-offline from
devel:tools:building or use following trick with "osc meta prjconf":

--- Cut here ----
%if 0%{?suse_version} <= 1220
Substitute: gpg-offline
%endif

Macros:
%gpg_verify(dnf) \
%if 0%{?suse_version} > 1220\
echo "WARNING: Using %%gpg_verify macro from prjconf, not from gpg-offline package."\
gpg-offline --directory="%{-d:%{-d*}}%{!-d:%{_sourcedir}}" --package="%{-n:%{-n*}}%{!-n:%{name}}""%{-f: %{-f*}}" --verify %{**}\
%else\
echo "WARNING: Dummy prjconf macro. gpg-offline is not available, skipping %{**} GPG signature verification!"\
%endif\
%nil
-----------------

OBS-URL: https://build.opensuse.org/request/show/143989
OBS-URL: https://build.opensuse.org/package/show/games:tools/mumble?expand=0&rev=35
This commit is contained in:
Ismail Dönmez
2013-01-19 10:28:13 +00:00
committed by Git OBS Bridge
parent 50dd74cf28
commit 0fafcd47d0
3 changed files with 68 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ BuildRequires: avahi-compat-mDNSResponder-devel
%else
BuildRequires: avahi-compat-libdns_sd-devel
%endif
%if 0%{?suse_version} > 1220
BuildRequires: gpg-offline
%endif
%endif
%if %{with system_celt}
BuildRequires: libcelt-devel
@@ -107,6 +110,7 @@ Source1: http://downloads.sourceforge.net/project/mumble/Mumble/%{version
%endif
Source2: mumble-server.init
Source3: murmur.apparmor
Source4: %{name}.keyring
Patch0: 0001-fix-build-error-with-capability.h.diff
Patch1: 0001-fix-user-switching.diff
Patch2: 0001-open-log-file-early-so-log-dir-can-be-root-owned.diff
@@ -180,6 +184,9 @@ characters, and has echo cancellation so the sound from your loudspeakers
won't be audible to other players.
%prep
%if 0%{?gpg_verify:1}
%gpg_verify %{S:1}
%endif
%setup -q
%patch0 -p1
%patch1 -p1