SHA256
1
0
forked from pool/ldb

Verify source tar ball gpg signature.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=39
This commit is contained in:
Lars Müller
2013-12-06 12:17:59 +00:00
committed by Git OBS Bridge
parent 7b61692713
commit 5f2ceed6b2
4 changed files with 82 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ BuildRequires: pytalloc-devel >= %{talloc_version}
BuildRequires: python-devel
BuildRequires: python-tdb >= %{tdb_version}
BuildRequires: python-tevent >= %{tevent_version}
%if 0%{?suse_version} > 1220
BuildRequires: gpg-offline
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
%define build_make_smp_mflags %{?_smp_mflags}
%else
@@ -44,6 +47,8 @@ Summary: An LDAP-like embedded database
License: GPL-3.0+
Group: System/Libraries
Source: http://download.samba.org/pub/ldb/ldb-%{version}.tar.gz
Source1: http://download.samba.org/pub/ldb/ldb-%{version}.tar.asc
Source2: samba-library-distribution-key.asc
Source4: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -108,6 +113,11 @@ LDB library.
%prep
%if 0%{?suse_version} > 1220
gzip -dc %{SOURCE0} >${RPM_SOURCE_DIR}/%{name}-%{version}.tar
%{?gpg_verify: %gpg_verify --keyring %{SOURCE2} %{SOURCE1}}
rm ${RPM_SOURCE_DIR}/%{name}-%{version}.tar
%endif
%setup -n ldb-%{version} -q
%build