Whamcloud - gitweb
LU-15521 spec: fix bare words error with rpm 4.16 71/46471/3
authorJian Yu <yujian@whamcloud.com>
Mon, 7 Feb 2022 18:21:47 +0000 (10:21 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:34:46 +0000 (05:34 +0000)
commit597a6bf9e085150dd57eb727859b114deb8979cb
tree2c5a27f76c55b71a81b71c1906347b0b6021010b
parent739b098793c6f86929005f63eba422ebd250e38f
LU-15521 spec: fix bare words error with rpm 4.16

RPM 4.16 removed support for bare words in expressions
(eg a == b needs to be "a" == "b" now). The change is
backward compatible. More changes are in:
https://rpm.org/wiki/Releases/4.16.0

This patch accommodates the above change and fixes more
errors/warnings:
- E: specfile-error error: bare words are no longer supported,
     please use "...":  redhat=="redhat" || redhat=="fedora"
- E: specfile-error warning: extra tokens at the end of %else
     directive in line 140:  %else #for Suse
- W: macro-in-comment %optflags
- W: macro-in-comment %{name}

Test-Parameters: trivial

Change-Id: I725c47f62be7762a89e5919fd2865e2fb2ced407
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46471
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre-dkms.spec.in
lustre.spec.in