forked from pool/vsftpd
Accepting request 143938 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/143938 OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=49
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
Name: vsftpd
|
||||
BuildRequires: gpg-offline
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: pam-devel
|
||||
%if 0%{?suse_version} < 1001
|
||||
@@ -41,6 +42,7 @@ Source4: README.SUSE
|
||||
Source5: %name.xml
|
||||
Source6: %name.firewall
|
||||
Source7: vsftpd.service
|
||||
Source9: %name.keyring
|
||||
Source1000: https://security.appspot.com/downloads/%{name}-%{version}.tar.gz.asc
|
||||
Patch1: vsftpd-2.0.4-lib64.diff
|
||||
Patch3: vsftpd-2.0.4-xinetd.diff
|
||||
@@ -70,6 +72,7 @@ vsftpd was always faster, supporting over twice as many users in some
|
||||
tests.
|
||||
|
||||
%prep
|
||||
%gpg_verify %{S:1000}
|
||||
%setup -q
|
||||
%patch1
|
||||
%patch3
|
||||
|
Reference in New Issue
Block a user