SHA256
1
0
forked from pool/whois

reference keyring URL

OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=86
This commit is contained in:
2017-11-13 10:29:42 +00:00
committed by Git OBS Bridge
parent c90a2e8039
commit 0e3b8d746d
2 changed files with 363 additions and 198 deletions

View File

@@ -24,11 +24,8 @@ License: GPL-2.0+
Group: Productivity/Networking/Other
Url: http://www.linux.it/~md/software/
Source: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
# https://db.debian.org/ - Debian login "md", md@linux.it
# https://db.debian.org/search.cgi?id=&authtoken=&cn=&sn=&uid=md&ircnick=&fingerprint=
Source2: %{name}.keyring
# rename .dsc to not build the package in OBS
Source3: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}.asc
Source2: http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}.asc
Source3: https://db.debian.org/fetchkey.cgi?fingerprint=6791403B68AE2690517C42EAE6FFF1E38DC968B0#/%{name}.keyring
Patch0: whois-nobsdsource.patch
BuildRequires: pkgconfig
BuildRequires: xz
@@ -58,9 +55,9 @@ password encryption function crypt(3).
%prep
# the signature is on the Debian .dsc. Extract the checksums and verify against source
echo "`grep -A1 "Files:" %{SOURCE3} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | md5sum -c
echo "`grep -A1 "Checksums-Sha1" %{SOURCE3} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha1sum -c
echo "`grep -A1 "Checksums-Sha256" %{SOURCE3} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha256sum -c
echo "`grep -A1 "Files:" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | md5sum -c
echo "`grep -A1 "Checksums-Sha1" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha1sum -c
echo "`grep -A1 "Checksums-Sha256" %{SOURCE2} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha256sum -c
%setup -q
%patch0 -p1