Add VCS tag to package
Use forgeurl0 variable to store upstream git repository URL and use that.
This commit is contained in:
parent
656cd1120e
commit
f1847fcc57
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user