From 40702f7b8f3889d69cacdf4b7e750cd8520a66a1 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Sep 15 2023 19:59:54 +0000 Subject: Use rhel rather than epel macro Signed-off-by: Michel Lind --- diff --git a/slurm.spec b/slurm.spec index 368bf89..3c26a8f 100644 --- a/slurm.spec +++ b/slurm.spec @@ -55,7 +55,7 @@ BuildRequires: perl-ExtUtils-MakeMaker BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl-podlators -%if (0%{?epel} != 7) +%if (0%{?rhel} != 7) BuildRequires: pkgconf %else BuildRequires: pkgconfig @@ -76,7 +76,7 @@ BuildRequires: mariadb-devel BuildRequires: munge-devel # numctl-devel not available in el9 for arch s390x (#2099483); # task/affinity plugin won't be available in el9 for arch s390x -%if (0%{?epel} != 9) || ("%{_arch}" != "s390x") +%if (0%{?rhel} != 9) || ("%{_arch}" != "s390x") BuildRequires: numactl-devel %endif BuildRequires: pam-devel @@ -91,7 +91,7 @@ BuildRequires: ucx-devel %endif # create slurm-slurmrestd package for Fedora >= 34 and EPEL7/8/9 -%if (0%{?fedora} >= 34) || (0%{?epel} >= 7) +%if (0%{?fedora} >= 34) || (0%{?rhel} >= 7) BuildRequires: http-parser-devel BuildRequires: json-c-devel BuildRequires: libjwt-devel @@ -174,7 +174,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Slurm database daemon. Used to accept and process database RPCs and upload database changes to slurmctld daemons on each cluster. -%if (0%{?fedora} >= 34) || (0%{?epel} >= 7) +%if (0%{?fedora} >= 34) || (0%{?rhel} >= 7) %package slurmrestd Summary: Slurm REST API deamon Requires: %{name}%{?_isa} = %{version}-%{release} @@ -444,7 +444,7 @@ rm -f %{buildroot}%{_unitdir}/slurmrestd.service %{_bindir}/%{name}-setuser %{_libdir}/%{name}/accounting_storage_*.so %{_libdir}/%{name}/acct_gather_*.so -%if (0%{?fedora} >= 34) || (0%{?epel} >= 7) +%if (0%{?fedora} >= 34) || (0%{?rhel} >= 7) %{_libdir}/%{name}/auth_jwt.so %endif %{_libdir}/%{name}/auth_munge.so @@ -558,7 +558,7 @@ rm -f %{buildroot}%{_unitdir}/slurmrestd.service %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_mandir}/man1/sview.1* -%if (0%{?epel} == 7) +%if (0%{?rhel} == 7) %post gui /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : @@ -630,7 +630,7 @@ fi # Slurm-slurmrestd # ---------------- -%if (0%{?fedora} >= 34) || (0%{?epel} >= 7) +%if (0%{?fedora} >= 34) || (0%{?rhel} >= 7) %files slurmrestd %{_libdir}/%{name}/openapi*.so %{_libdir}/%{name}/rest*.so