diff options
author | Matt Davis <mrd@redhat.com> | 2018-03-09 17:52:54 -0800 |
---|---|---|
committer | Matt Davis <mrd@redhat.com> | 2018-03-09 17:52:54 -0800 |
commit | 482e204afa111663515c3d92b6d31630af66abf3 (patch) | |
tree | bb004ede3f01b270ef90d5a0066d9add943b547b | |
parent | d6127361d3eab64a634762fe7d28ccbac9ff4087 (diff) | |
download | ansible-482e204afa111663515c3d92b6d31630af66abf3.tar.gz |
fix RPM dist/repotag labeling
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | packaging/rpm/ansible.spec | 2 |
2 files changed, 8 insertions, 4 deletions
@@ -105,7 +105,7 @@ endif RPMVERSION ?= $(shell $(PYTHON) packaging/release/versionhelper/version_helper.py --baseversion) RPMRELEASE ?= $(shell $(PYTHON) packaging/release/versionhelper/version_helper.py --rpmrelease) -RPMNVR = "$(NAME)-$(RPMVERSION)-$(RPMRELEASE)$(RPMDIST)" +RPMNVR = "$(NAME)-$(RPMVERSION)-$(RPMRELEASE)$(RPMDIST)$(REPOTAG)" # MOCK build parameters MOCK_BIN ?= mock @@ -248,7 +248,8 @@ mock-srpm: /etc/mock/$(MOCK_CFG).cfg rpmcommon $(MOCK_BIN) -r $(MOCK_CFG) $(MOCK_ARGS) --resultdir rpm-build/ --bootstrap-chroot --old-chroot --buildsrpm --spec rpm-build/$(NAME).spec --sources rpm-build/ \ --define "rpmversion $(RPMVERSION)" \ --define "upstream_version $(VERSION)" \ - --define "rpmrelease $(RPMRELEASE)" + --define "rpmrelease $(RPMRELEASE)" \ + --define "repotag $(REPOTAG)" @echo "#############################################" @echo "Ansible SRPM is built:" @echo rpm-build/*.src.rpm @@ -259,7 +260,8 @@ mock-rpm: /etc/mock/$(MOCK_CFG).cfg mock-srpm $(MOCK_BIN) -r $(MOCK_CFG) $(MOCK_ARGS) --resultdir rpm-build/ --bootstrap-chroot --old-chroot --rebuild rpm-build/$(NAME)-*.src.rpm \ --define "rpmversion $(RPMVERSION)" \ --define "upstream_version $(VERSION)" \ - --define "rpmrelease $(RPMRELEASE)" + --define "rpmrelease $(RPMRELEASE)" \ + --define "repotag $(REPOTAG)" @echo "#############################################" @echo "Ansible RPM is built:" @echo rpm-build/*.noarch.rpm @@ -276,6 +278,7 @@ srpm: rpmcommon --define "upstream_version $(VERSION)" \ --define "rpmversion $(RPMVERSION)" \ --define "rpmrelease $(RPMRELEASE)" \ + --define "repotag $(REPOTAG)" \ -bs rpm-build/$(NAME).spec @rm -f rpm-build/$(NAME).spec @echo "#############################################" @@ -296,6 +299,7 @@ rpm: rpmcommon --define "upstream_version $(VERSION)" \ --define "rpmversion $(RPMVERSION)" \ --define "rpmrelease $(RPMRELEASE)" \ + --define "repotag $(REPOTAG)" \ -ba rpm-build/$(NAME).spec @rm -f rpm-build/$(NAME).spec @echo "#############################################" diff --git a/packaging/rpm/ansible.spec b/packaging/rpm/ansible.spec index 8d941edec8..75ac67dbb7 100644 --- a/packaging/rpm/ansible.spec +++ b/packaging/rpm/ansible.spec @@ -6,7 +6,7 @@ Name: %{name} Version: %{rpmversion} -Release: %{rpmrelease} +Release: %{rpmrelease}%{?dist}%{?repotag} Url: https://www.ansible.com Summary: SSH-based application deployment, configuration management, and IT orchestration platform License: GPLv3+ |