[Rpm-maint] [rpm] Permit dynamic selection of SCM. (#56)
Andreas Scherer
notifications at github.com
Wed Jan 27 18:03:20 UTC 2016
Invoking `%__scm_setup_$__scm` _without_ looking at option `-S` in the specfile, but taking the current definition of `%__scm` into account, permits dynamic selection of the SCM on the commandline
```
rpmbuild --define="__scm SCM"
```
Default SCM `patch` already has a convenient `%__scm_setup_patch %{nil}` definition.
Tested with rpmbuild 4.13, git, svn, ... on Linux Mint 17.2.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/56
-- Commit Summary --
* Permit dynamic selection of SCM.
-- File Changes --
M macros.in (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/56.patch
https://github.com/rpm-software-management/rpm/pull/56.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/56
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20160127/10308876/attachment.html>
More information about the Rpm-maint
mailing list