-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflux-wrappers.spec
More file actions
73 lines (57 loc) · 1.79 KB
/
flux-wrappers.spec
File metadata and controls
73 lines (57 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%define realname flux-wrappers
%define realversion 0.1
Name: %{realname}
Version: %{realversion}
Release: 1%{?dist}
Summary: Slurm commands translated to Flux
License: LGPL-3.0
Group: System Environment/Base
URL: https://github.com/LLNL/flux-wrappers
Source0: %{realname}-%{realversion}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
Packager: Ryan Day <day36@llnl.gov>
Requires: flux-core
Conflicts: slurm
######################################################################
%prep
%setup -n %{name}-%{version}
%build
%description
The flux-wrappers are a set of wrapper scripts that translate
Slurm and other resource manager commands and flags into their
equivalent Flux commands.
%local_options
%install
rm -rf "$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
#mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install src/slurm2flux.pl $RPM_BUILD_ROOT%{_bindir}/slurm2flux
install src/fsqueue.py $RPM_BUILD_ROOT%{_bindir}/squeue
install src/fshowq.py $RPM_BUILD_ROOT%{_bindir}/showq
install src/fscancel.py $RPM_BUILD_ROOT%{_bindir}/scancel
install src/fsinfo.pl $RPM_BUILD_ROOT%{_bindir}/sinfo
ln $RPM_BUILD_ROOT%{_bindir}/slurm2flux $RPM_BUILD_ROOT%{_bindir}/srun
ln $RPM_BUILD_ROOT%{_bindir}/slurm2flux $RPM_BUILD_ROOT%{_bindir}/sbatch
ln $RPM_BUILD_ROOT%{_bindir}/slurm2flux $RPM_BUILD_ROOT%{_bindir}/salloc
#######################################################################
%clean
rm -rf $RPM_BUILD_ROOT
#######################################################################
%post
%files
%{_bindir}/slurm2flux
%{_bindir}/squeue
%{_bindir}/showq
%{_bindir}/scancel
%{_bindir}/sinfo
%{_bindir}/srun
%{_bindir}/sbatch
%{_bindir}/salloc
#%{_mandir}/man1/*
##
## vim: set ts=4 sw=4:
####
%changelog
* Tue Dec 20 2022 Ryan Day <day36@llnl.gov> -
- Initial build.