Last active
December 30, 2025 15:06
-
-
Save id/f2a2fecaa02065979a2d6304e5369c8b to your computer and use it in GitHub Desktop.
Patch for el8 and el9 RPM spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/deploy/packages/rpm/emqx.spec b/deploy/packages/rpm/emqx.spec | |
| index 9556fa10..8e59893c 100644 | |
| --- a/deploy/packages/rpm/emqx.spec | |
| +++ b/deploy/packages/rpm/emqx.spec | |
| @@ -19,15 +19,16 @@ BuildRoot: %{_tmppath}/%{_name}-%{_version}-root | |
| Provides: %{_name} | |
| AutoReq: 0 | |
| -# package name openssl11 is from epel-release, and only applicable for rhel 7 | |
| -%if "%{_arch} %{?rhel}" == "x86_64 7" | |
| -Requires: openssl11 libatomic procps which findutils | |
| +Requires: libatomic procps which findutils ncurses | |
| + | |
| +%if 0%{?rhel} == 7 && "%{_arch}" == "x86_64" | |
| +Requires: openssl11 | |
| +%elif "%{?dist}" == ".amzn2023" | |
| +Requires: util-linux shadow-utils | |
| +%elif 0%{?rhel} == 9 | |
| +Requires: openssl >= 1:3.5.1 | |
| %else | |
| -%if "%{?dist}" == ".amzn2023" | |
| -Requires: libatomic procps which findutils ncurses util-linux shadow-utils | |
| -%else | |
| -Requires: libatomic procps which findutils | |
| -%endif | |
| +Requires: openssl | |
| %endif | |
| %description |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment