summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-09-20 14:29:46 +0200
committerThomas Haller <thaller@redhat.com>2017-09-20 14:35:22 +0200
commit21bc54e8c91531512f236bf11a921bcfb292b22d (patch)
treeaab758db29f13107b6ff6b0f3ad7e19cf3c65bdf
parent291aa5cfa859429ea611a11f7390f97221f05a74 (diff)
contrib/rpm: update spec file with upstream source URL
This isn't useful for contrib/fedora/rpm itself because here the __SOURCE__ gets set by the build scripts. But this spec file is copied to Fedora downstream where the SOURCE URL is used. (cherry picked from commit 85e3f956adea7d065c7773891ea48f0f968a4d14)
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index efd6404cf..61f2e0a54 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -39,6 +39,8 @@
%global snap %{?snapshot_dot}%{?git_sha_dot}
+%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[1-9][0-9]*$/\\1/p')
+
%global is_devel_build %(printf '%s' '%{real_version}' | sed -n 's/^1\\.\\([0-9]*[13579]\\)\\..*/1/p')
###############################################################################
@@ -86,6 +88,7 @@ Group: System Environment/Base
License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/
+#Source: https://download.gnome.org/sources/NetworkManager/%{real_version_major}/%{name}-%{real_version}.tar.xz
Source: __SOURCE1__
Source1: NetworkManager.conf
Source2: 00-server.conf