Show More
@@ -208,7 +208,8 packaging_targets := \ | |||
|
208 | 208 | linux-wheels \ |
|
209 | 209 | linux-wheels-x86_64 \ |
|
210 | 210 | linux-wheels-i686 \ |
|
211 | ppa | |
|
211 | ppa \ | |
|
212 | rpm | |
|
212 | 213 | |
|
213 | 214 | # Forward packaging targets for convenience. |
|
214 | 215 | $(packaging_targets): |
@@ -56,6 +56,9 help: | |||
|
56 | 56 | @echo 'ppa' |
|
57 | 57 | @echo ' Build a Debian source package locally targeting the current system' |
|
58 | 58 | @echo '' |
|
59 | @echo 'rpm' | |
|
60 | @echo ' Build a RPM targeting the current system using Python 3' | |
|
61 | @echo '' | |
|
59 | 62 | @echo 'centos{$(strip $(CENTOS_RELEASES))}' |
|
60 | 63 | @echo ' Build an RPM for a specific CentOS version locally' |
|
61 | 64 | @echo '' |
@@ -96,6 +99,14 endef | |||
|
96 | 99 | |
|
97 | 100 | $(foreach codename,$(UBUNTU_CODENAMES),$(eval $(call ubuntu_targets,$(codename)))) |
|
98 | 101 | |
|
102 | # Generic RPM target, mainly for Fedora/CentOS/RHEL. | |
|
103 | rpm: | |
|
104 | mkdir -p $$(HGROOT)/packages/rpm | |
|
105 | ./buildrpm --python3 | |
|
106 | cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/rpm | |
|
107 | cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/rpm | |
|
108 | rm -rf $(HGROOT)/rpmbuild | |
|
109 | ||
|
99 | 110 | # Fedora targets. |
|
100 | 111 | define fedora_targets |
|
101 | 112 | .PHONY: fedora$(1) |
General Comments 0
You need to be logged in to leave comments.
Login now