From 907cd9eb0314518605a8451a4121344e6e6ff695 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 17 Oct 2017 12:55:38 +0200 Subject: [PATCH] Define glibc_release_url based on glibcsrcdir, not glibcversion The former is more reliable because glibcsrcdir changes in case of a release off the release/*/master branch (which does not have a tarball), but glibcversion remains the same. --- glibc.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 7ba34ae..f016adb 100644 --- a/glibc.spec +++ b/glibc.spec @@ -9,7 +9,8 @@ # gzip -9 $(git describe --match 'glibc-*').tar # # glibc_release_url is only defined when we have a release tarball. -%define glibc_release_url http://ftp.gnu.org/gnu/glibc/ +%{lua: if string.match(rpm.expand("%glibcsrcdir"), "^glibc%-[0-9.]+$") then + rpm.define("glibc_release_url https://ftp.gnu.org/gnu/glibc/") end} ############################################################################## # We support hte following options: # --with/--without,