From f6ce428b56e7dc44f6736d80dc79fc7761781ebc Mon Sep 17 00:00:00 2001 From: Mark Grondona <mgrondona@llnl.gov> Date: Fri, 7 Mar 2003 22:37:00 +0000 Subject: [PATCH] o fix tests for subpackage builds --- slurm.spec.in | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/slurm.spec.in b/slurm.spec.in index faae3bf5fd4..0d50616eefc 100644 --- a/slurm.spec.in +++ b/slurm.spec.in @@ -20,10 +20,6 @@ Summary: Development package for SLURM. Group: System Environment/Base Requires: slurm - -# Authentication plugin sub-packages: -# XXX: How to conditionally build these? -# %package auth-none Summary: SLURM auth NULL implementation (no authentication) Group: System Environment/Base @@ -111,19 +107,19 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libslurm.la %{_mandir}/man3/* -%if %(test -f %{_libdir}/slurm/auth_none.so) +%if %(test -f %{_libdir}/slurm/auth_none.so && echo 1 || echo 0) %files auth-none %defattr(-,root,root) %{_libdir}/slurm/auth_none.so %endif -%if %(test -f %{_libdir}/slurm/auth_munge.so) +%if %(test -f %{_libdir}/slurm/auth_munge.so && echo 1 || echo 0) %files auth-munge %defattr(-,root,root) %{_libdir}/slurm/auth_munge.so %endif -%if %(test -f %{_libdir}/slurm/auth_authd.so) +%if %(test -f %{_libdir}/slurm/auth_authd.so && echo 1 || echo 0) %files auth-authd %defattr(-,root,root) %{_libdir}/slurm/auth_authd.so -- GitLab