diff --git a/openscap.spec b/openscap.spec index e62c684..bc1fab0 100644 --- a/openscap.spec +++ b/openscap.spec @@ -155,7 +155,7 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} %{?python_provide:%python_provide python%{python3_pkgversion}-openscap } BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} >= 10 BuildRequires: python-rpm-macros %endif @@ -269,7 +269,7 @@ ctest -V -E sce/test_sce_in_ds.sh find %{buildroot} -name '*.la' -exec rm -f {} ';' # fix python shebangs -%if 0%{?fedora} || 0%{?rhel} >= 9 +%if 0%{?fedora} || 0%{?rhel} >= 10 %{__python3} %{_rpmconfigdir}/redhat/pathfix.py -i %{__python3} -p -n %{buildroot}%{_bindir}/scap-as-rpm %else pathfix.py -i %{__python3} -p -n %{buildroot}%{_bindir}/scap-as-rpm