From 40693240d43652e63ad54fd14cbb367ac8cd97e4 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Thu, 26 Jun 2008 16:20:23 +0000 Subject: [PATCH] changed spec file to check for mysql or postgres as a requirement --- slurm.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/slurm.spec b/slurm.spec index c2baee2c5e3..215f8ce4dc0 100644 --- a/slurm.spec +++ b/slurm.spec @@ -16,6 +16,8 @@ # --without pam %_without_pam 1 don't require pam-devel RPM to be installed # --without readline %_without_readline 1 don't require readline-devel RPM to be installed # --with sgijob %_with_sgijob 1 build proctrack-sgi-job RPM +# --with mysql %_with_mysql 1 require mysql support +# --with postgres %_with_postgres 1 require postgresql support # # Allow defining --with and --without build options or %_with and %without in .rpmmacors @@ -90,6 +92,14 @@ BuildRequires: readline-devel BuildRequires: openssl-devel >= 0.9.6 openssl >= 0.9.6 %endif +%if %{slurm_with mysql} +BuildRequires: mysql-devel >= 6.0 +%endif + +%if %{slurm_with postgres} +BuildRequires: postgresql-devel >= 8.0 +%endif + %description SLURM is an open source, fault-tolerant, and highly scalable cluster management and job scheduling system for Linux clusters -- GitLab