From 38f43955527736c8046d3c19b3191c44431343f5 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Mon, 29 Jan 2024 14:37:27 +0000 Subject: [PATCH] Add version macros --- icu.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/icu.spec b/icu.spec index 541c083..f7e7849 100644 --- a/icu.spec +++ b/icu.spec @@ -4,6 +4,9 @@ # (or update the timezone data update..). %global use_tzdata_update 0 +%define version_dash %{gsub %{version} %. -} +%define version_underscore %{gsub %{version} %. _} + Name: icu Version: 73.2 Release: 5%{?dist} @@ -11,9 +14,9 @@ Summary: International Components for Unicode License: Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain URL: http://site.icu-project.org/ -Source0: https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-src.tgz +Source0: https://github.com/unicode-org/icu/releases/download/release-%{version_dash}/icu4c-%{version_underscore}-src.tgz %if 0%{?use_tzdata_update} -Source1: https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-data.zip +Source1: https://github.com/unicode-org/icu/releases/download/release-%{version_dash}/icu4c-%{version_underscore}-data.zip Source2: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/metaZones.txt Source3: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/timezoneTypes.txt Source4: https://raw.githubusercontent.com/unicode-org/icu-data/main/tzdata/icunew/2022b/44/windowsZones.txt