From 5f2ceed6b21400031f419d5e0ceffe7cef0abebbd7bb92d3914264ac1b2640fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 6 Dec 2013 12:17:59 +0000 Subject: [PATCH 1/3] Verify source tar ball gpg signature. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=39 --- ldb-1.1.16.tar.asc | 11 ++++++ ldb.changes | 5 +++ ldb.spec | 10 ++++++ samba-library-distribution-key.asc | 56 ++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 ldb-1.1.16.tar.asc create mode 100644 samba-library-distribution-key.asc diff --git a/ldb-1.1.16.tar.asc b/ldb-1.1.16.tar.asc new file mode 100644 index 0000000..d2cb8ee --- /dev/null +++ b/ldb-1.1.16.tar.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) + +iQEcBAABAgAGBQJRyMJzAAoJEEeTkWETCEAl35cH/R0fGIdYF0Wx2OxzBhIGEDla +j/BakyTcgALZu9FumBrtVKhU/Amos90IDGCzYee9wjxO6WHEYhiCnsU1Q8kpxPFF +XAv89bshav5t+2tiQPPUyL+LtWg82cGrhW9WMkBTAoIa3l/2v5WKsJgrwPXfqn+N +NUoUukOrEWYtu4bHOXUTMMkUySLsQzgsDVX2uUnct7bTfNOTKxIHaiL0UJoqTi3/ +05PTN2j7EckEmWxJu1rW7kDmsbTnZwF5ABqTCY/Y3ZSo4oEuj9ImeCMmWCvUXD9d +NC5GI7/f5mui+N6j7cYsDLW8n77KzARpU6pv4Q6n1d0EOs6QhaxCUjU6Ncw+UX8= +=MXWu +-----END PGP SIGNATURE----- diff --git a/ldb.changes b/ldb.changes index dc487b6..c2c8236 100644 --- a/ldb.changes +++ b/ldb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 6 11:56:46 UTC 2013 - lmuelle@suse.com + +- Verify source tar ball gpg signature. + ------------------------------------------------------------------- Thu Aug 29 10:43:09 UTC 2013 - lmuelle@suse.com diff --git a/ldb.spec b/ldb.spec index d85f1a7..8b301d9 100644 --- a/ldb.spec +++ b/ldb.spec @@ -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 diff --git a/samba-library-distribution-key.asc b/samba-library-distribution-key.asc new file mode 100644 index 0000000..6b769d6 --- /dev/null +++ b/samba-library-distribution-key.asc @@ -0,0 +1,56 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.22 (GNU/Linux) + +mQENBE0uBhsBCADIjamou8B7vf0Gnvdb8ZhJ708kXnoeGH161xffaYJg40rXhyyl +OHlc4ZLVc4OyFr+tWREgNDyBkeS5TTsJ3ul/cBMbBjpn2LOO41X1fenhlvWFkhuC +TcZJK1GNEH8iEHgHp7fjZ24p8cvHILGnHKOYFuHSK8t4Eai0vT/dwNDuU7HD4ZC0 +LZdVRIkIH5mZ+8ILmLKzzHl+Pbyoit/Utv+SuRu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i/Em6pNNeRd4G5F +7mP9oi6QBC0E3jJQs6mZ94GfSAHSZJqdDHG30i+i0iyNDNHLBPdYOGxuNkz4ACMD +yx7KdUorriW7hO+XIdytABEBAAGJASUEGAECAA8CGwwFAk8ae0MFCQPNqKIACgkQ +R5ORYRMIQCWEXAf9Hhk+M1l8bSdx0m5qgYRei3kl+iSkSoF4A/xBNL2aXlmEpmBw +Ot6YT8zGhHWBOaXKTykU2qwwDym1hxqmwJcXTVQabbllnC7ptkT2n7pvJoEh/vgG +od3zsGoG3GtAxpMDtU+SHYYVq1cT99Tp/gI5fVW84dD/tiPPo6NMg84ynpwzrY0x +tfnGQhs0JByiwMoLnGlikR+h62Q7SO36gYYuHNf3k+D/r4WctwgoiP/mv+ewdxoD +aF9M1CzLRdY1rDqKbMWiznpxI1cHGaeP45fx1If2RnpdJ6W+UYNGzJ48j7vS5ph8 +1EGe9M7unpQLMbR2d7MggFfg9wqFyaWQI41QT4kBJQQYAQIADwIbDAUCUQUaOgUJ +BbhHmwAKCRBHk5FhEwhAJQ8IB/9pJowNfed0qU2ddBG68X0EN3e92+3pmzTMB51g +sDVTbRibB23/2TRuwSptefxSSbozCX/UyEWFK+TwYmX8eE3Nas+njre/CnvX/1wM +twYOdSPF9vrtVMZrkj4jTV9RGRXRR1nReNB1A0BTFsfLKr5Wpznj0LEjNmoz7omb +3gQsuv4zEdq5mPjEAXbxkSGAM8UbcxoMM/A7EbnkL8sLzdWc1JC+z9pOSsHmhqhc +3IvCRnl9M22dnl+8FJjDwnUdBY1l1689kL6ryyebgnrVqO8+M+85h7XoB5O0pgIm +be5AIF8rela8HSphYyhWAmGnJejZpdJQUwfDK9bXhAjyBFeq +=Tw7M +-----END PGP PUBLIC KEY BLOCK----- From 85f81a43c1076807db84bd0507e570621dc82ecb13693349d0423f5efd1443bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 6 Dec 2013 12:34:41 +0000 Subject: [PATCH 2/3] Reorder BuildRequires lines. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=40 --- ldb.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldb.spec b/ldb.spec index 8b301d9..6814d56 100644 --- a/ldb.spec +++ b/ldb.spec @@ -23,6 +23,9 @@ %define tevent_version 0.9.17 Name: ldb +%if 0%{?suse_version} > 1220 +BuildRequires: gpg-offline +%endif #!BuildIgnore: libtalloc BuildRequires: libtalloc-devel >= %{talloc_version} BuildRequires: libtdb-devel >= %{tdb_version} @@ -32,9 +35,6 @@ 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 From 2d3b7aa6afaee3150dac6f7300921a0ffc2c38a3408bff087cde6a6c8b2839ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 6 Dec 2013 17:00:35 +0000 Subject: [PATCH 3/3] Rename pubkey filename to follow upstream naming convention. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=41 --- ldb.spec | 2 +- ...on-key.asc => samba-library-distribution-pubkey_13084025.asc | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename samba-library-distribution-key.asc => samba-library-distribution-pubkey_13084025.asc (100%) diff --git a/ldb.spec b/ldb.spec index 6814d56..59ecd09 100644 --- a/ldb.spec +++ b/ldb.spec @@ -48,7 +48,7 @@ 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 +Source2: samba-library-distribution-pubkey_13084025.asc Source4: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build diff --git a/samba-library-distribution-key.asc b/samba-library-distribution-pubkey_13084025.asc similarity index 100% rename from samba-library-distribution-key.asc rename to samba-library-distribution-pubkey_13084025.asc