From 2999128764dd9b340f6a986709be6509007c316c Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 8 Mar 2017 10:09:29 +0100 Subject: [PATCH] Automatically set glibc_release_url based on glibcrelease --- glibc.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 4abcab9..f798aee 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 not string.match(rpm.expand("%glibcversion"), "%.*.90$") then + rpm.define("glibc_release_url http://ftp.gnu.org/gnu/glibc/") end} ############################################################################## # We support hte following options: # --with/--without,