Discovered when trying to build slurm on a cray, but may be of help to others. Although the ./configure will detect if libcurl-devel is installed and build jobcomp/elasticsearch automatically, there's no way of requesting this on a rpmbuild command line Trivial patch to allow --with libcurl rpmbuild option to force the BuildRequires to pull in libcurl-devel diff --git a/slurm.spec b/slurm.spec index c0ac8d626b..4943fee58d 100644 --- a/slurm.spec +++ b/slurm.spec @@ -27,6 +27,7 @@ Source: %{slurm_source_dir}.tar.bz2 # --without debug %_without_debug 1 don't compile with debugging symbols # --with hdf5 %_with_hdf5 path require hdf5 support # --with hwloc %_with_hwloc 1 require hwloc support +# --with libcurl %_with_libcurl path require libcurl support (needed for jobcomp/elasticsearch) # --with lua %_with_lua path build Slurm lua bindings # --with mysql %_with_mysql 1 require mysql/mariadb support # --with numa %_with_numa 1 require NUMA support @@ -46,6 +47,7 @@ Source: %{slurm_source_dir}.tar.bz2 # These options are only here to force there to be these on the build. # If they are not set they will still be compiled if the packages exist. %bcond_with hwloc +%bcond_with libcurl %bcond_with mysql %bcond_with hdf5 %bcond_with lua @@ -121,6 +123,10 @@ BuildRequires: pkgconfig(lua) >= 5.1.0 BuildRequires: hwloc-devel %endif +%if %{with libcurl} +BuildRequires: libcurl-devel +%endif + %if %{with numa} %if %{defined suse_version} BuildRequires: libnuma-devel