Skip to content

Commit

Permalink
Add package for AlmaLinux EL compatible
Browse files Browse the repository at this point in the history
Should be compatible with CentOS and RHEL

Remove dependency for libcgroup, on .el9
  • Loading branch information
afbjorklund committed Aug 27, 2024
1 parent 6cea4d4 commit 3f8a3b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ The scripts will build for this list of packages types:
* DEB packages for Debian 9 Stretch
* RPM packages for Fedora 40
* RPM packages for Fedora 39
* RPM packages for AlmaLinux 8
* RPM packages for AlmaLinux 9
* TGZ and ZIP files with static binaries
12 changes: 8 additions & 4 deletions packaging/rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ SOURCES=$(addprefix rpmbuild/SOURCES/, $(SOURCE_FILES))

FEDORA_RELEASES := fedora-39 fedora-40
CENTOS_RELEASES :=
ALMALINUX_RELEASES := almalinux-8 almalinux-9

.PHONY: help
help: ## show make targets
Expand All @@ -55,16 +56,19 @@ clean: ## remove build artifacts
$(RM) -r rpmbuild/

.PHONY: rpm
rpm: fedora centos ## build all rpm packages
rpm: fedora centos almalinux ## build all rpm packages

.PHONY: fedora
fedora: $(FEDORA_RELEASES) ## build all fedora rpm packages

.PHONY: centos
centos: $(CENTOS_RELEASES) ## build all centos rpm packages
centos: $(CENTOS_RELEASES) ## build all centos stream rpm packages

.PHONY: $(FEDORA_RELEASES) $(CENTOS_RELEASES)
$(FEDORA_RELEASES) $(CENTOS_RELEASES): $(SOURCES)
.PHONY: almalinux
almalinux: $(ALMALINUX_RELEASES) ## build all almalinux rpm packages

.PHONY: $(FEDORA_RELEASES) $(CENTOS_RELEASES) $(ALMALINUX_RELEASES)
$(FEDORA_RELEASES) $(CENTOS_RELEASES) $(ALMALINUX_RELEASES): $(SOURCES)
@echo "${APP_DIR}"
@echo "${VERSION}"
@echo "$(shell ./gen-rpm-ver $(APP_DIR) $(VERSION))"
Expand Down
3 changes: 3 additions & 0 deletions packaging/rpm/SPECS/cri-dockerd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ Requires: (iptables or nftables)
Requires: iptables
%endif
%if %{undefined suse_version}
%if %{undefined rhel} || 0%{?rhel} < 9
# Libcgroup is no longer available in RHEL/CentOS >= 9 distros.
Requires: libcgroup
%endif
%endif
Requires: containerd.io >= 1.2.2-3
Requires: tar
Requires: xz
Expand Down

0 comments on commit 3f8a3b0

Please sign in to comment.