public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/slurm] epel10: Use 0%{?rhel} rather than 0%{?epel} since that works on Koji and CBS
Date: Wed, 22 Jul 2026 07:55:43 GMT	[thread overview]
Message-ID: <178470694346.1.12915352213269260571.rpms-slurm-bb41b88be1d7@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/slurm
            Branch : epel10
            Commit : bb41b88be1d75bae75c1f88827aa16a695c6f36a
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2023-09-15T15:43:19-05:00
            Stats  : +8/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/slurm/c/bb41b88be1d75bae75c1f88827aa16a695c6f36a?branch=epel10

            Log:
            Use 0%{?rhel} rather than 0%{?epel} since that works on Koji and CBS

- Remove references to Fedora 34, which went EOL over a year ago

Signed-off-by: Michel Lind <salimma@fedoraproject.org>

---
diff --git a/slurm.spec b/slurm.spec
index 7816575..ab2d98a 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
@@ -90,8 +90,8 @@ BuildRequires:  zlib-devel
 BuildRequires:  ucx-devel
 %endif
 
-# create slurm-slurmrestd package for Fedora >= 34 and EPEL7/8/9
-%if (0%{?fedora} >= 34) || (0%{?epel} >= 7)
+# create slurm-slurmrestd package for Fedora and EPEL7/8/9
+%if 0%{?fedora} || (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} || (0%{?rhel} >= 7)
 %package slurmrestd
 Summary: Slurm REST API deamon
 Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -397,10 +397,6 @@ rm -f %{buildroot}%{_sbindir}/slurmsmwd*
 rm -f %{buildroot}%{perl_vendorarch}/auto/Slurm*/.packlist
 rm -f %{buildroot}%{perl_vendorarch}/auto/Slurm*/Slurm*.bs
 rm -f %{buildroot}%{perl_archlib}/perllocal.pod
-%if 0%{?fedora} && (0%{?fedora} < 34)
-# remove unused slurmrestd service file
-rm -f %{buildroot}%{_unitdir}/slurmrestd.service
-%endif
 
 %ldconfig_scriptlets devel
 %ldconfig_scriptlets libs
@@ -444,7 +440,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} || (0%{?rhel} >= 7)
 %{_libdir}/%{name}/auth_jwt.so
 %endif
 %{_libdir}/%{name}/auth_munge.so
@@ -558,7 +554,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 +626,7 @@ fi
 # Slurm-slurmrestd
 # ----------------
 
-%if (0%{?fedora} >= 34) || (0%{?epel} >= 7)
+%if 0%{?fedora} || (0%{?rhel} >= 7)
 %files slurmrestd
 %{_libdir}/%{name}/openapi*.so
 %{_libdir}/%{name}/rest*.so

                 reply	other threads:[~2026-07-22  7:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178470694346.1.12915352213269260571.rpms-slurm-bb41b88be1d7@fedoraproject.org \
    --to=salimma@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox