##// END OF EJS Templates
contrib: refer to RHEL and derivatives instead of CentOS specifically...
Mathias De Mare -
r49613:6387562e stable
parent child Browse files
Show More
@@ -204,11 +204,11 b' i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n'
204 # Packaging targets
204 # Packaging targets
205
205
206 packaging_targets := \
206 packaging_targets := \
207 centos7 \
207 rhel7 \
208 centos8 \
208 rhel8 \
209 deb \
209 deb \
210 docker-centos7 \
210 docker-rhel7 \
211 docker-centos8 \
211 docker-rhel8 \
212 docker-debian-bullseye \
212 docker-debian-bullseye \
213 docker-debian-buster \
213 docker-debian-buster \
214 docker-debian-stretch \
214 docker-debian-stretch \
@@ -13,20 +13,20 b' UBUNTU_CODENAMES := \\'
13
13
14 FEDORA_RELEASE := 31
14 FEDORA_RELEASE := 31
15
15
16 CENTOS_RELEASES := \
16 RHEL_RELEASES := \
17 7 \
17 7 \
18 8
18 8
19
19
20 # Build a Python for these CentOS releases.
20 # Build a Python for these RHEL (and derivatives) releases.
21 CENTOS_WITH_PYTHON_RELEASES :=
21 RHEL_WITH_PYTHON_RELEASES :=
22 CENTOS_WITH_NONVERSIONED_PYTHON :=
22 RHEL_WITH_NONVERSIONED_PYTHON :=
23 CENTOS_WITH_36_DOCUTILS := 7
23 RHEL_WITH_36_DOCUTILS := 7
24
24
25 help:
25 help:
26 @echo 'Packaging Make Targets'
26 @echo 'Packaging Make Targets'
27 @echo ''
27 @echo ''
28 @echo 'docker-centos{$(strip $(CENTOS_RELEASES))}'
28 @echo 'docker-rhel{$(strip $(RHEL_RELEASES))}'
29 @echo ' Build an RPM for a specific CentOS version using Docker.'
29 @echo ' Build an RPM for a specific RHEL/derivative version using Docker.'
30 @echo ''
30 @echo ''
31 @echo 'docker-debian-{$(strip $(DEBIAN_CODENAMES))}'
31 @echo 'docker-debian-{$(strip $(DEBIAN_CODENAMES))}'
32 @echo ' Build Debian packages specific to a Debian distro using Docker.'
32 @echo ' Build Debian packages specific to a Debian distro using Docker.'
@@ -53,8 +53,8 b' help:'
53 @echo 'ppa'
53 @echo 'ppa'
54 @echo ' Build a Debian source package locally targeting the current system'
54 @echo ' Build a Debian source package locally targeting the current system'
55 @echo ''
55 @echo ''
56 @echo 'centos{$(strip $(CENTOS_RELEASES))}'
56 @echo 'rhel{$(strip $(RHEL_RELEASES))}'
57 @echo ' Build an RPM for a specific CentOS version locally'
57 @echo ' Build an RPM for a specific RHEL/derivative version locally'
58 @echo ''
58 @echo ''
59 @echo 'fedora'
59 @echo 'fedora'
60 @echo ' Build an RPM for Fedora $(FEDORA_RELEASE) locally'
60 @echo ' Build an RPM for Fedora $(FEDORA_RELEASE) locally'
@@ -106,22 +106,22 b' fedora:'
106 docker-fedora:
106 docker-fedora:
107 ./dockerrpm fedora$(FEDORA_RELEASE)
107 ./dockerrpm fedora$(FEDORA_RELEASE)
108
108
109 # CentOS targets.
109 # RHEL targets.
110 define centos_targets
110 define rhel_targets
111 .PHONY: centos$(1)
111 .PHONY: rhel$(1)
112 centos$(1):
112 rhel$(1):
113 mkdir -p $$(HGROOT)/packages/centos$(1)
113 mkdir -p $$(HGROOT)/packages/rhel$(1)
114 ./buildrpm $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython,$$(if $$(filter $(1),$$(CENTOS_WITH_NONVERSIONED_PYTHON)),--python python,))$$(if $$(filter $(1),$$(CENTOS_WITH_36_DOCUTILS)), --docutilspackage python36-docutils,)
114 ./buildrpm $$(if $$(filter $(1),$$(RHEL_WITH_PYTHON_RELEASES)),--withpython,$$(if $$(filter $(1),$$(RHEL_WITH_NONVERSIONED_PYTHON)),--python python,))$$(if $$(filter $(1),$$(RHEL_WITH_36_DOCUTILS)), --docutilspackage python36-docutils,)
115 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/centos$(1)
115 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/rhel$(1)
116 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/centos$(1)
116 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/rhel$(1)
117
117
118 .PHONY: docker-centos$(1)
118 .PHONY: docker-rhel$(1)
119 docker-centos$(1):
119 docker-rhel$(1):
120 ./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython,$$(if $$(filter $(1),$$(CENTOS_WITH_NONVERSIONED_PYTHON)),--python python,))$$(if $$(filter $(1),$$(CENTOS_WITH_36_DOCUTILS)), --docutilspackage python36-docutils,)
120 ./dockerrpm rhel$(1) $$(if $$(filter $(1),$$(RHEL_WITH_PYTHON_RELEASES)),--withpython,$$(if $$(filter $(1),$$(RHEL_WITH_NONVERSIONED_PYTHON)),--python python,))$$(if $$(filter $(1),$$(RHEL_WITH_36_DOCUTILS)), --docutilspackage python36-docutils,)
121
121
122 endef
122 endef
123
123
124 $(foreach release,$(CENTOS_RELEASES),$(eval $(call centos_targets,$(release))))
124 $(foreach release,$(RHEL_RELEASES),$(eval $(call rhel_targets,$(release))))
125
125
126 .PHONY: linux-wheels
126 .PHONY: linux-wheels
127 linux-wheels: linux-wheels-x86_64 linux-wheels-i686
127 linux-wheels: linux-wheels-x86_64 linux-wheels-i686
1 NO CONTENT: file renamed from contrib/packaging/docker/centos7 to contrib/packaging/docker/rhel7
NO CONTENT: file renamed from contrib/packaging/docker/centos7 to contrib/packaging/docker/rhel7
1 NO CONTENT: file renamed from contrib/packaging/docker/centos8 to contrib/packaging/docker/rhel8
NO CONTENT: file renamed from contrib/packaging/docker/centos8 to contrib/packaging/docker/rhel8
General Comments 0
You need to be logged in to leave comments. Login now