Avoid rubygem-eventmachine build dependency in RHEL

The eventmachine interface is an optional feature, and is otherwise
unused in RHEL.  This is based on c9s:

0066899ab0
This commit is contained in:
Yaakov Selkowitz 2024-02-08 22:22:28 -05:00
parent 5c7ffda69a
commit 53f298ce31

View File

@ -31,8 +31,11 @@ BuildRequires: rubygem(rspec)
# Used in mysql_install_db
BuildRequires: %{_bindir}/hostname
BuildRequires: rubygem(bigdecimal)
# Used in spec/em/em_spec.rb
%if !0%{?rhel}
# Used in spec/em/em_spec.rb as optional dependency.
# If rubygem-eventmachine is not present, the tests in the file are skipped.
BuildRequires: rubygem(eventmachine)
%endif
# Used in spec/ssl/gen_certs.sh
BuildRequires: %{_bindir}/openssl
%endif
@ -193,6 +196,7 @@ kill "$(cat "${MYSQL_TEST_PID_FILE}")"
%changelog
* Fri Feb 09 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.5-4
- Adapt tests to mariadb 10.11
- Avoid rubygem-eventmachine build dependency in RHEL
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild