Fix monitor-helm* specfiles for new tarballs

Newer tarballs generated from github contain a different top-level
directory than what are currently contained in the CENGN mirror cache.
By parsing the first entry in the tarball we can figure out the
proper directory.

Tested by building both the new and old tarballs and verifing the
RPM builds correctly and the log file has correct directory.

Change-Id: Ie484cb2f5c615917afd320749ab3e68c8f7a8daa
Closes-Bug: 1857049
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2020-01-15 20:52:42 -08:00
parent c6147a836a
commit 3d8669b6e9
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ BuildRequires: helm
Monitor Helm elasticsearch charts
%prep
%setup -n helm-charts-elastic
%setup -n %(tar tf %SOURCE0 | head -1)
%patch01 -p1
%patch02 -p1
%patch03 -p1

View File

@ -42,7 +42,7 @@ BuildRequires: helm
Monitor Helm charts
%prep
%setup -n helm-charts
%setup -n %(tar tf %SOURCE0 | head -1)
%patch01 -p1
%patch02 -p1
%patch03 -p1