Skip to content

Commit 79b38d8

Browse files
author
Stefano Torresi
committed
use a full source url in the spec file as requested in OBS reviews
1 parent 1bc7c44 commit 79b38d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ build/obs:
7171
git archive --format=tar HEAD | tar -x -C build/obs/$(OBS_PACKAGE)
7272
cd build/obs/$(OBS_PACKAGE); go mod vendor
7373
rm build/obs/*.tar.gz
74-
tar -cvzf build/obs/$(OBS_PACKAGE)-$(VERSION).tar.gz -C build/obs/$(OBS_PACKAGE) .
74+
tar -cvzf build/obs/$(VERSION).tar.gz -C build/obs/$(OBS_PACKAGE) .
7575
.ci/gh_release_to_obs_changeset.py $(REPOSITORY) -a $(AUTHOR) -t $(VERSION) -f build/obs/$(OBS_PACKAGE).changes || true
7676

7777
obs-commit: obs-workdir

ha_cluster_exporter.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ License: Apache-2.0
2222
Summary: Prometheus exporter for Pacemaker HA clusters metrics
2323
Group: System/Monitoring
2424
Url: https://github.com/ClusterLabs/ha_cluster_exporter
25-
Source: %{name}-%{version}.tar.gz
25+
# The GitHub tarball will not actually be used. We provide a local archive with the vendored dependencies inside.
26+
Source: https://github.com/ClusterLabs/%{name}/archive/%{version}.tar.gz
2627
ExclusiveArch: aarch64 x86_64 ppc64le s390x
2728
BuildRoot: %{_tmppath}/%{name}-%{version}-build
2829
BuildRequires: go >= 1.11

0 commit comments

Comments
 (0)