Skip to content

Commit

Permalink
Add build LSF-related rules to the spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
morrone committed Oct 31, 2018
1 parent aa11e75 commit 75f3f44
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion libyogrt.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Declare rpmbuild --with/--without parameters
%bcond_without slurm
%bcond_with lsf

Summary: @PACKAGE_NAME@
Name: @PACKAGE_TARNAME@
Expand All @@ -17,6 +18,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: slurm slurm-devel
Requires: slurm
%endif
%if %{with lsf}
BuildRequires: lsf-common
Requires: lsf-common
# The LSF RPM packages are poorly built. lsf-common contains two libraries
# that we use, libbat.so and liblsf.so. However the lsf-common package
# neither declares that it provides them, nor installs them in sane
# locations. We need to prevent the internal dependency generator
# from including rpm requires for those two libraries to work around
# lsf-common's packaging deficiencies.
%global __requires_exclude ^lib\(bat|lsf\)\.so.*$
%endif

%description
A simple wrapper library that provides a unified get-remaining-time
Expand All @@ -26,7 +38,9 @@ interface for multiple parallel job scheduling systems.
%setup -q

%build
%configure LDFLAGS=-Wl,--build-id
%configure LDFLAGS=-Wl,--build-id \
%{?with_lsf:--with-lsf LSF_LIBDIR=/opt/ibm/spectrumcomputing/lsf/10.1/linux3.10-glibc2.17-ppc64le-csm/lib LSF_ENVDIR=/opt/ibm/spectrumcomputing/lsf/conf LSF_INCLUDEDIR=/opt/ibm/spectrumcomputing/lsf/10.1/include} \
%{!?with_lsf:--without-lsf}
make

%install
Expand Down

0 comments on commit 75f3f44

Please sign in to comment.