[Rpm-maint] [rpm-software-management/rpm] Can't use `--define "_gpg_name Foo"` any more (#153)

James Sumners notifications at github.com
Thu Feb 9 20:11:59 UTC 2017


Example project -- https://github.com/jsumners/staticdhcpd-rpm

When the build script in that project is run it looks for a sibling file `gpg-env`. If found, it sources the file and generates the build command like so:

```
rpmbuild --define "_topdir ${CWD}/rpmbuild" \
      --define "_signature ${signature}" \
      --define "_gpg_path ${gpg_path}" --define "_gpg_name ${gpg_name}" \
      --sign --ba rpmbuild/SPECS/${SPEC1}
```

This works just fine in a RHEL 6 environment. But if you do it in a RHEL 7 environment it fails saying:

```
You must set "%_gpg_name" in your macro file
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170209/863e2eea/attachment.html>


More information about the Rpm-maint mailing list