contrib/rpm: Fixing the source URL format

Fixing the source URL format to confirm to more normative rpmbuild
standards and to allow for proper use of spectool/rpmspectool.  This
change now produces a proper archive with the name and version number
used.
This commit is contained in:
Brian 'Redbeard' Harrington
2017-05-09 16:28:39 -07:00
parent d4e33efb38
commit ea9042e86e
2 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View File

@@ -32,3 +32,4 @@ bin/
_output/
tools/
contrib/registry/data
contrib/rpm/*.tar.gz

View File

@@ -8,7 +8,8 @@ Release: 2%{?dist}
Summary: Network boot and provision CoreOS machines
License: ASL 2.0
URL: https://%{import_path}
Source0: https://%{import_path}/archive/v%{version}.tar.gz
Source0: https://%{import_path}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: golang
BuildRequires: systemd
@@ -28,9 +29,7 @@ ExclusiveArch: %{go_arches}
BuildRequires: compiler(golang)
%prep
%setup
# tarball has <repo>-<version> top level dir, not <name>-<version>
#%setup -q -n %{repo}-%{version}
%setup -q -n %{repo}-%{version}
%build
# create a Go workspace with a symlink to builddir source