SHA256
1
0
forked from pool/ldb

Remove dependency on gpg-offline as signature checking is implemented in the

source validator.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=54
This commit is contained in:
Lars Müller
2014-10-28 15:41:45 +00:00
committed by Git OBS Bridge
parent e9039b2745
commit a123d39e8d
6 changed files with 20 additions and 13 deletions

View File

@@ -24,9 +24,6 @@
Name: ldb
BuildRequires: docbook-xsl-stylesheets
%if 0%{?suse_version} > 1220
BuildRequires: gpg-offline
%endif
#!BuildIgnore: libtalloc
BuildRequires: libtalloc-devel >= %{talloc_version}
BuildRequires: libtdb-devel >= %{tdb_version}
@@ -48,9 +45,16 @@ Release: 0
Summary: An LDAP-like embedded database
License: GPL-3.0+
Group: System/Libraries
Source: http://download.samba.org/pub/ldb/ldb-%{version}.tar.gz
# Unfortunately upstream is mindboggingly stupid here by gpg signing the
# uncompressed tarball, but not publishing the uncompressed tarball but
# only a compressed one. so we need to unpack it manually so that
# gpg verification works, but then we can't have download verification
# http://download.samba.org/pub/ldb/ldb-%{version}.tar.gz
Source: ldb-%{version}.tar
Source1: http://download.samba.org/pub/ldb/ldb-%{version}.tar.asc
Source2: samba-library-distribution-pubkey_13084025.asc
Source2: ldb.keyring
#Source2: samba-library-distribution-pubkey_13084025.asc
Source4: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -120,11 +124,6 @@ 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