Put the GitHub URL in its own macro

[skip changelog]
This commit is contained in:
Benjamin A. Beasley 2024-02-27 08:35:47 -05:00
parent a4f5818966
commit f4e32bbb92

View File

@ -14,13 +14,14 @@ Summary: Xalan XSLT processor for C/C++
# libtiff, but is a build-system file that does not contribute to the licenses # libtiff, but is a build-system file that does not contribute to the licenses
# of the binary RPMs. # of the binary RPMs.
License: Apache-2.0 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 tag Xalan-C_%(echo '%{version}' | tr . _)
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2) %global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
%global release_url https://github.com/apache/xalan-c/releases/download/%{tag} %global forgeurl https://github.com/apache/xalan-c/
Source0: %{release_url}/%{tar_name}.tar.gz %global releaseurl %{forgeurl}/releases/download/%{tag}
Source1: %{release_url}/%{tar_name}.tar.gz.asc Source0: %{releaseurl}/%{tar_name}.tar.gz
Source2: %{release_url}/KEYS Source1: %{releaseurl}/%{tar_name}.tar.gz.asc
Source2: %{releaseurl}/KEYS
BuildRequires: gnupg2 BuildRequires: gnupg2
BuildRequires: cmake BuildRequires: cmake