From f1847fcc5712fa873124d670da2f78e2ad5e36f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Wed, 10 May 2023 17:16:48 +0200 Subject: [PATCH] Add VCS tag to package Use forgeurl0 variable to store upstream git repository URL and use that. --- dnsmasq.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dnsmasq.spec b/dnsmasq.spec index 6354beb..629f5af 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -13,7 +13,7 @@ %define _hardened_build 1 # path to upstream git repository -%global git_upstream git://thekelleys.org.uk/dnsmasq.git +%global forgeurl0 git://thekelleys.org.uk/dnsmasq.git # tag of selected version %global gittag v%{version}%{?extraversion} @@ -29,6 +29,7 @@ Summary: A lightweight DHCP/caching DNS server # SPDX identifiers already License: GPL-2.0-only or GPL-3.0-only URL: http://www.thekelleys.org.uk/dnsmasq/ +VCS: git:%{forgeurl0} Source0: %{url}%{?extrapath}%{name}-%{version}%{?extraversion}.tar.xz Source1: %{name}.service Source2: dnsmasq-systemd-sysusers.conf @@ -115,7 +116,7 @@ Translations for few languages on dnsmasq. # But using %%setup changes used directories in %%build and %%install rm -rf %{_builddir}/%{name}-%{version}%{?extraversion} cd %{_builddir} -git clone -b %{gittag} %{git_upstream} %{name}-%{version}%{?extraversion} +git clone -b %{gittag} %{forgeurl0} %{name}-%{version}%{?extraversion} cd %{name}-%{version}%{?extraversion} git checkout -b rpmbuild %else