From e6a89aacd4e3608e382252ae496b88d9bb4ac99d Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 27 Feb 2024 08:35:47 -0500 Subject: [PATCH] Put the GitHub URL in its own macro [skip changelog] --- xalan-c.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xalan-c.spec b/xalan-c.spec index 4f35c72..0bdfdc3 100644 --- a/xalan-c.spec +++ b/xalan-c.spec @@ -15,13 +15,14 @@ Summary: Xalan XSLT processor for C/C++ # libtiff, but is a build-system file that does not contribute to the licenses # of the binary RPMs. License: Apache-2.0 -URL: http://xalan.apache.org/xalan-c/ +URL: http://apache.github.io/xalan-c/ %global tag Xalan-C_%(echo '%{version}' | tr . _) %global tar_name xalan_c-%(echo %{version} | cut -d . -f -2) -%global release_url https://github.com/apache/xalan-c/releases/download/%{tag} -Source0: %{release_url}/%{tar_name}.tar.gz -Source1: %{release_url}/%{tar_name}.tar.gz.asc -Source2: %{release_url}/KEYS +%global forgeurl https://github.com/apache/xalan-c/ +%global releaseurl %{forgeurl}/releases/download/%{tag} +Source0: %{releaseurl}/%{tar_name}.tar.gz +Source1: %{releaseurl}/%{tar_name}.tar.gz.asc +Source2: %{releaseurl}/KEYS BuildRequires: gnupg2 BuildRequires: cmake