From 4ef1497ac47d1cfc1a891028e2997336f8845999 Mon Sep 17 00:00:00 2001 From: Zoltan Fridrich Date: Mon, 25 Apr 2022 13:48:23 +0200 Subject: [PATCH] Adjust macros Signed-off-by: Zoltan Fridrich --- gnutls.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnutls.spec b/gnutls.spec index 517dca7..77d7e14 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -1,6 +1,6 @@ # This spec file has been automatically updated Version: 3.7.3 -Release: %autorelease +Release: %{?autorel}%{!?autorel:1} Patch1: gnutls-3.6.7-no-now-guile.patch Patch2: gnutls-3.2.7-rpath.patch %bcond_with bootstrap @@ -54,8 +54,9 @@ BuildRequires: guile22-devel %endif BuildRequires: make URL: http://www.gnutls.org/ -Source0: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/%{name}-%{version}.tar.xz -Source1: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/%{name}-%{version}.tar.xz.sig +%define short_version %(echo %{version} | grep -m1 -o "[0-9]*\.[0-9]*" | head -1) +Source0: https://www.gnupg.org/ftp/gcrypt/gnutls/v%{short_version}/%{name}-%{version}.tar.xz +Source1: https://www.gnupg.org/ftp/gcrypt/gnutls/v%{short_version}/%{name}-%{version}.tar.xz.sig Source2: gpgkey-462225C3B46F34879FC8496CD605848ED7E69871.gpg # Wildcard bundling exception https://fedorahosted.org/fpc/ticket/174