Blob Blame History Raw
# This file is used _only_ to override macros which exist in RHEL.
# It should be used very sparingly.

# Override %nodejs_arches.
# EPEL is providing nodejs on 64-bit ARM now, so the existing Red Hat provided
# macro needs to be extended to include aarch64.
# Requested by pbrobinson and sgallagh on IRC, 2016-09-16.
%nodejs_arches      %{ix86} x86_64 %{arm} aarch64

# Fix _pkgdocdir definition
# https://bugzilla.redhat.com/show_bug.cgi?id=1392354
%_pkgdocdir             %{_docdir}/%{name}-%{version}

# This was defined in EPEL's python-srpm-macros
# But RHEL 7.7+ redefined it to 3
%python3_pkgversion 36

# There is a mistake in this macro in RHEL 7 and the RHEL Python maintainers asked EPEL to override it as a workaround
# See https://bugzilla.redhat.com/show_bug.cgi?id=1757834
%py_build() %{expand:\\\
  CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python} %{py_shbang_opts}" %{?*}
  sleep 1
}