-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split slurm and flux backends into rpm subpackages
- Loading branch information
Showing
1 changed file
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,6 @@ URL: @PACKAGE_URL@ | |
Packager: Christopher J. Morrone <[email protected]> | ||
Source0: %{name}-%{tarball_version}.tar.gz | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | ||
%if %{with flux} | ||
BuildRequires: flux-core | ||
Requires: flux-core | ||
%endif | ||
%if %{with slurm} | ||
BuildRequires: slurm slurm-devel | ||
Requires: slurm | ||
%endif | ||
%if %{with lsf} | ||
BuildRequires: lsf-common | ||
Requires: lsf-common | ||
|
@@ -66,9 +58,43 @@ mv $RPM_BUILD_ROOT%{_sysconfdir}/yogrt.conf.example $RPM_BUILD_ROOT%{_sysconfdir | |
%{_includedir}/yogrt.h | ||
%{_libdir}/*.* | ||
%{_libdir}/libyogrt/* | ||
%if %{with_slurm} | ||
%exclude %{_libdir}/libyogrt/libyogrt-slurm* | ||
%endif | ||
%if %{with_flux} | ||
%exclude %{_libdir}/libyogrt/libyogrt-flux* | ||
%endif | ||
%{_mandir}/*/* | ||
%config(noreplace) %{_sysconfdir}/yogrt.conf | ||
|
||
%if %{with slurm} | ||
%package slurm | ||
Summary: libyogrt plugin for SLURM | ||
Group: System Environment/Base | ||
BuildRequires: slurm slurm-devel | ||
Requires: slurm | ||
Requires: libyogrt = %{version} | ||
%description slurm | ||
SLURM plugin for libyogrt | ||
%files slurm | ||
%defattr(-,root,root,-) | ||
%{_libdir}/libyogrt/libyogrt-slurm* | ||
%endif | ||
|
||
%if %{with flux} | ||
%package flux | ||
Summary: libyogrt plugin for Flux | ||
Group: System Environment/Base | ||
BuildRequires: flux-core | ||
Requires: flux-core | ||
Requires: libyogrt = %{version} | ||
%description flux | ||
Flux plugin for libyogrt | ||
%files flux | ||
%defattr(-,root,root,-) | ||
%{_libdir}/libyogrt/libyogrt-flux* | ||
%endif | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
|