-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshasta_wrapper.spec.in
78 lines (64 loc) · 2.23 KB
/
shasta_wrapper.spec.in
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
74
75
76
77
78
# © 2023. Triad National Security, LLC. All rights reserved.
# This program was produced under U.S. Government contract 89233218CNA000001 for Los Alamos
# National Laboratory (LANL), which is operated by Triad National Security, LLC for the U.S.
# Department of Energy/National Nuclear Security Administration. All rights in the program are
# reserved by Triad National Security, LLC, and the U.S. Department of Energy/National Nuclear
# Security Administration. The Government is granted for itself and others acting on its behalf a
# nonexclusive, paid-up, irrevocable worldwide license in this material to reproduce, prepare
# derivative works, distribute copies to the public, perform publicly and display publicly, and to permit
# others to do so.
%define _source_filedigest_algorithm md5
%define _binary_filedigest_algorithm md5
%define _binary_payload w9.gzdio
# Create a variable that can be used to monkey with the release name with
# --define This is an attempt to support the Fedora distro rpm naming
# nightmare.
%{!?release_extras:%define release_extras %{nil}}
Summary: Provides a more streamlimed interface for managing the shasta cluster.
Name: %NAME%
Epoch: 0
Version: %VERSION%
Release: %RELEASE%
License: None
Group: System Environment/Base
Source0: %{name}.tar.gz
BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}
BuildArch: noarch
Requires: craycli >= 0.46.0
Requires: curl
Requires: jq
Requires: gawk
Requires: sed
Requires: kubectl
Requires: bash
Requires: grep
Requires: ncurses-utils
Requires: util-linux
%description
Provides a more streamlimed interface for managing the shasta cluster.
%prep
%setup -q
%build
make
make test
%install
make install DESTDIR=%{buildroot}
%clean
rm -r %{buildroot} || true
%files
%defattr(-,root,root)
%attr(0750,root,root) %SBINDIR%/shasta
%attr(0750,root,root) %SBINDIR%/xnamepower
%attr(0750,root,root) %SBINDIR%/conman
%attr(0750,root,root) %SBINDIR%/nid2xname
%attr(0750,root,root) %SBINDIR%/xname2nid
%config(noreplace) %attr(0640,root,root) %CONFDIR%/cluster_defaults.conf
%config(noreplace) %attr(0640,root,root) %CONFDIR%/cfs_defaults.conf
%attr(0640,root,root) %LIBDIR%/*
%post
%preun
%postun
%changelog
* Tue May 25 2021 Graham Van Heule <grahamvh@lanl.gov>
- v0.4.0
- Hacked into being