##// END OF EJS Templates
packaging: add Bullseye, remove Jessie...
av6 -
r43077:0a50a423 stable
parent child Browse files
Show More
@@ -1,145 +1,145 b''
1 $(eval HGROOT := $(shell cd ../..; pwd))
1 $(eval HGROOT := $(shell cd ../..; pwd))
2
2
3 DEBIAN_CODENAMES := \
3 DEBIAN_CODENAMES := \
4 jessie \
5 stretch \
4 stretch \
6 buster
5 buster \
6 bullseye
7
7
8 UBUNTU_CODENAMES := \
8 UBUNTU_CODENAMES := \
9 xenial \
9 xenial \
10 bionic \
10 bionic \
11 cosmic \
11 cosmic \
12 disco
12 disco
13
13
14 FEDORA_RELEASES := \
14 FEDORA_RELEASES := \
15 20 \
15 20 \
16 21 \
16 21 \
17 28 \
17 28 \
18 29
18 29
19
19
20 CENTOS_RELEASES := \
20 CENTOS_RELEASES := \
21 5 \
21 5 \
22 6 \
22 6 \
23 7
23 7
24
24
25 # Build a Python for these CentOS releases.
25 # Build a Python for these CentOS releases.
26 CENTOS_WITH_PYTHON_RELEASES := 5 6
26 CENTOS_WITH_PYTHON_RELEASES := 5 6
27
27
28 help:
28 help:
29 @echo 'Packaging Make Targets'
29 @echo 'Packaging Make Targets'
30 @echo ''
30 @echo ''
31 @echo 'docker-centos{$(strip $(CENTOS_RELEASES))}'
31 @echo 'docker-centos{$(strip $(CENTOS_RELEASES))}'
32 @echo ' Build an RPM for a specific CentOS version using Docker.'
32 @echo ' Build an RPM for a specific CentOS version using Docker.'
33 @echo ''
33 @echo ''
34 @echo 'docker-debian-{$(strip $(DEBIAN_CODENAMES))}'
34 @echo 'docker-debian-{$(strip $(DEBIAN_CODENAMES))}'
35 @echo ' Build Debian packages specific to a Debian distro using Docker.'
35 @echo ' Build Debian packages specific to a Debian distro using Docker.'
36 @echo ''
36 @echo ''
37 @echo 'docker-fedora{$(strip $(FEDORA_RELEASES))}'
37 @echo 'docker-fedora{$(strip $(FEDORA_RELEASES))}'
38 @echo ' Build an RPM for a specific Fedora version using Docker.'
38 @echo ' Build an RPM for a specific Fedora version using Docker.'
39 @echo ''
39 @echo ''
40 @echo 'docker-ubuntu-{$(strip $(UBUNTU_CODENAMES))}'
40 @echo 'docker-ubuntu-{$(strip $(UBUNTU_CODENAMES))}'
41 @echo ' Build Debian package specific to an Ubuntu distro using Docker.'
41 @echo ' Build Debian package specific to an Ubuntu distro using Docker.'
42 @echo ''
42 @echo ''
43 @echo 'docker-ubuntu-{$(strip $(UBUNTU_CODENAMES))}-ppa'
43 @echo 'docker-ubuntu-{$(strip $(UBUNTU_CODENAMES))}-ppa'
44 @echo ' Build a source-only Debian package specific to an Ubuntu distro'
44 @echo ' Build a source-only Debian package specific to an Ubuntu distro'
45 @echo ' using Docker.'
45 @echo ' using Docker.'
46 @echo ''
46 @echo ''
47 @echo 'linux-wheels'
47 @echo 'linux-wheels'
48 @echo ' Build Linux manylinux wheels using Docker.'
48 @echo ' Build Linux manylinux wheels using Docker.'
49 @echo ''
49 @echo ''
50 @echo 'linux-wheels-{x86_64, i686}'
50 @echo 'linux-wheels-{x86_64, i686}'
51 @echo ' Build Linux manylinux wheels for a specific architecture using Docker'
51 @echo ' Build Linux manylinux wheels for a specific architecture using Docker'
52 @echo ''
52 @echo ''
53 @echo 'deb'
53 @echo 'deb'
54 @echo ' Build a Debian package locally targeting the current system'
54 @echo ' Build a Debian package locally targeting the current system'
55 @echo ''
55 @echo ''
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 'centos{$(strip $(CENTOS_RELEASES))}'
59 @echo 'centos{$(strip $(CENTOS_RELEASES))}'
60 @echo ' Build an RPM for a specific CentOS version locally'
60 @echo ' Build an RPM for a specific CentOS version locally'
61 @echo ''
61 @echo ''
62 @echo 'fedora{$(strip $(FEDORA_RELEASES))}'
62 @echo 'fedora{$(strip $(FEDORA_RELEASES))}'
63 @echo ' Build an RPM for a specific Fedora version locally'
63 @echo ' Build an RPM for a specific Fedora version locally'
64
64
65 .PHONY: help
65 .PHONY: help
66
66
67 .PHONY: deb
67 .PHONY: deb
68 deb:
68 deb:
69 ./builddeb
69 ./builddeb
70
70
71 .PHONY: ppa
71 .PHONY: ppa
72 ppa:
72 ppa:
73 ./builddeb --source-only
73 ./builddeb --source-only
74
74
75 # Debian targets.
75 # Debian targets.
76 define debian_targets =
76 define debian_targets =
77 .PHONY: docker-debian-$(1)
77 .PHONY: docker-debian-$(1)
78 docker-debian-$(1):
78 docker-debian-$(1):
79 ./dockerdeb debian $(1)
79 ./dockerdeb debian $(1)
80
80
81 endef
81 endef
82
82
83 $(foreach codename,$(DEBIAN_CODENAMES),$(eval $(call debian_targets,$(codename))))
83 $(foreach codename,$(DEBIAN_CODENAMES),$(eval $(call debian_targets,$(codename))))
84
84
85 # Ubuntu targets.
85 # Ubuntu targets.
86 define ubuntu_targets =
86 define ubuntu_targets =
87 .PHONY: docker-ubuntu-$(1)
87 .PHONY: docker-ubuntu-$(1)
88 docker-ubuntu-$(1):
88 docker-ubuntu-$(1):
89 ./dockerdeb ubuntu $(1)
89 ./dockerdeb ubuntu $(1)
90
90
91 .PHONY: docker-ubuntu-$(1)-ppa
91 .PHONY: docker-ubuntu-$(1)-ppa
92 docker-ubuntu-$(1)-ppa:
92 docker-ubuntu-$(1)-ppa:
93 ./dockerdeb ubuntu $(1) --source-only
93 ./dockerdeb ubuntu $(1) --source-only
94
94
95 endef
95 endef
96
96
97 $(foreach codename,$(UBUNTU_CODENAMES),$(eval $(call ubuntu_targets,$(codename))))
97 $(foreach codename,$(UBUNTU_CODENAMES),$(eval $(call ubuntu_targets,$(codename))))
98
98
99 # Fedora targets.
99 # Fedora targets.
100 define fedora_targets
100 define fedora_targets
101 .PHONY: fedora$(1)
101 .PHONY: fedora$(1)
102 fedora$(1):
102 fedora$(1):
103 mkdir -p $$(HGROOT)/packages/fedora$(1)
103 mkdir -p $$(HGROOT)/packages/fedora$(1)
104 ./buildrpm
104 ./buildrpm
105 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/fedora$(1)
105 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/fedora$(1)
106 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/fedora$(1)
106 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/fedora$(1)
107 rm -rf $(HGROOT)/rpmbuild
107 rm -rf $(HGROOT)/rpmbuild
108
108
109 .PHONY: docker-fedora$(1)
109 .PHONY: docker-fedora$(1)
110 docker-fedora$(1):
110 docker-fedora$(1):
111 mkdir -p $$(HGROOT)/packages/fedora$(1)
111 mkdir -p $$(HGROOT)/packages/fedora$(1)
112 ./dockerrpm fedora$(1)
112 ./dockerrpm fedora$(1)
113
113
114 endef
114 endef
115
115
116 $(foreach release,$(FEDORA_RELEASES),$(eval $(call fedora_targets,$(release))))
116 $(foreach release,$(FEDORA_RELEASES),$(eval $(call fedora_targets,$(release))))
117
117
118 # CentOS targets.
118 # CentOS targets.
119 define centos_targets
119 define centos_targets
120 .PHONY: centos$(1)
120 .PHONY: centos$(1)
121 centos$(1):
121 centos$(1):
122 mkdir -p $$(HGROOT)/packages/centos$(1)
122 mkdir -p $$(HGROOT)/packages/centos$(1)
123 ./buildrpm $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
123 ./buildrpm $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
124 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/centos$(1)
124 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/centos$(1)
125 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/centos$(1)
125 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/centos$(1)
126
126
127 .PHONY: docker-centos$(1)
127 .PHONY: docker-centos$(1)
128 docker-centos$(1):
128 docker-centos$(1):
129 mkdir -p $$(HGROOT)/packages/centos$(1)
129 mkdir -p $$(HGROOT)/packages/centos$(1)
130 ./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
130 ./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
131
131
132 endef
132 endef
133
133
134 $(foreach release,$(CENTOS_RELEASES),$(eval $(call centos_targets,$(release))))
134 $(foreach release,$(CENTOS_RELEASES),$(eval $(call centos_targets,$(release))))
135
135
136 .PHONY: linux-wheels
136 .PHONY: linux-wheels
137 linux-wheels: linux-wheels-x86_64 linux-wheels-i686
137 linux-wheels: linux-wheels-x86_64 linux-wheels-i686
138
138
139 .PHONY: linux-wheels-x86_64
139 .PHONY: linux-wheels-x86_64
140 linux-wheels-x86_64:
140 linux-wheels-x86_64:
141 docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_x86_64 /src/contrib/packaging/build-linux-wheels.sh
141 docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_x86_64 /src/contrib/packaging/build-linux-wheels.sh
142
142
143 .PHONY: linux-wheels-i686
143 .PHONY: linux-wheels-i686
144 linux-wheels-i686:
144 linux-wheels-i686:
145 docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_i686 linux32 /src/contrib/packaging/build-linux-wheels.sh
145 docker run -e "HGTEST_JOBS=$(shell nproc)" --rm -ti -v `pwd`/../..:/src quay.io/pypa/manylinux1_i686 linux32 /src/contrib/packaging/build-linux-wheels.sh
General Comments 0
You need to be logged in to leave comments. Login now