##// END OF EJS Templates
packaging: introduce generic local rpm build target using python3...
Mads Kiilerich -
r43651:69f5571d stable draft
parent child Browse files
Show More
@@ -208,7 +208,8 b' packaging_targets := \\'
208 linux-wheels \
208 linux-wheels \
209 linux-wheels-x86_64 \
209 linux-wheels-x86_64 \
210 linux-wheels-i686 \
210 linux-wheels-i686 \
211 ppa
211 ppa \
212 rpm
212
213
213 # Forward packaging targets for convenience.
214 # Forward packaging targets for convenience.
214 $(packaging_targets):
215 $(packaging_targets):
@@ -56,6 +56,9 b' help:'
56 @echo 'ppa'
56 @echo 'ppa'
57 @echo ' Build a Debian source package locally targeting the current system'
57 @echo ' Build a Debian source package locally targeting the current system'
58 @echo ''
58 @echo ''
59 @echo 'rpm'
60 @echo ' Build a RPM targeting the current system using Python 3'
61 @echo ''
59 @echo 'centos{$(strip $(CENTOS_RELEASES))}'
62 @echo 'centos{$(strip $(CENTOS_RELEASES))}'
60 @echo ' Build an RPM for a specific CentOS version locally'
63 @echo ' Build an RPM for a specific CentOS version locally'
61 @echo ''
64 @echo ''
@@ -96,6 +99,14 b' endef'
96
99
97 $(foreach codename,$(UBUNTU_CODENAMES),$(eval $(call ubuntu_targets,$(codename))))
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 # Fedora targets.
110 # Fedora targets.
100 define fedora_targets
111 define fedora_targets
101 .PHONY: fedora$(1)
112 .PHONY: fedora$(1)
General Comments 0
You need to be logged in to leave comments. Login now