Whamcloud - gitweb
LU-15521 spec: fix bare words error with rpm 4.16 10/47710/2
authorJian Yu <yujian@whamcloud.com>
Thu, 23 Jun 2022 07:14:19 +0000 (00:14 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 5 Jul 2022 22:13:52 +0000 (22:13 +0000)
commitea45daebe0b03d449f99ca4ae949638b7e7d07a7
tree7f9796a91d8d0ab1b7f2ff7e4ba8e368342c5516
parent2fd2a6fb7f6935624d327e8bfe25dd3955066429
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}

Lustre-change: https://review.whamcloud.com/46471
Lustre-commit: 597a6bf9e085150dd57eb727859b114deb8979cb

Test-Parameters: trivial

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