[root@centos-7-4 ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
rpmbuild --rebuild nginx-1.13.7-1.el7_4.ngx.src.rpm
sh: lsb_release: command not found
error: /root/rpmbuild/SPECS/nginx.spec:28: bad %if condition
CentOS Linux release 7.4.1708 (Core)
rpmbuild --rebuild nginx-1.13.7-1.el7_4.ngx.src.rpm
sh: lsb_release: command not found
error: /root/rpmbuild/SPECS/nginx.spec:28: bad %if condition