-
Notifications
You must be signed in to change notification settings - Fork 1
/
hpc-goodies.spec
159 lines (110 loc) · 3.38 KB
/
hpc-goodies.spec
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
Summary: HPC Goodies
Name: hpc-goodies
Version: 4.10
Release: 1%{?dist}
License: EPL
Group: Applications/System
URL: https://github.com/finley/HPC-Goodies
Source: %{name}-%{version}-%{release}.tar.xz
Packager: Brian Finley <[email protected]>
Vendor: Brian Finley <[email protected]>
Prefix: %{_prefix}
BuildRoot: %{?_tmppath}%{!?_tmppath:/tmp}/%{name}-root
Requires: %{name}-cpu = %{version}-%{release}
Requires: %{name}-gpfs = %{version}-%{release}
Requires: %{name}-uefi = %{version}-%{release}
Requires: %{name}-xcat = %{version}-%{release}
Requires: %{name}-ib = %{version}-%{release}
Requires: %{name}-misc = %{version}-%{release}
%description
ALL of Brian Finley's HPC Goodies (installs all the other goodie bags).
%package cpu
Summary: HPC Goodies for CPUs
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
%description cpu
Brian Finley's HPC Goodies for CPUs
%package gpfs
Summary: HPC Goodies for GPFS
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
%description gpfs
Brian Finley's HPC Goodies for GPFS
%package ib
Summary: HPC Goodies for InfiniBand
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
%description ib
Brian Finley's HPC Goodies for InfiniBand
%package misc
Summary: Miscellaneous HPC Goodies
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
%description misc
Brian Finley's HPC Goodies (miscellaneous)
- Includes the "half-baked" section. Buyer beware...
%package uefi
Summary: HPC Goodies for UEFI
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
%description uefi
Brian Finley's HPC Goodies for UEFI
%package xcat
Summary: HPC Goodies for xCAT
Group: Applications/System
Requires: %{name}-libs = %{version}-%{release}
%description xcat
Brian Finley's HPC Goodies for xCAT
%package libs
Summary: HPC Goodies shared library files
Group: Applications/System
%description libs
Brian Finley's HPC Goodies library files
%prep
%setup -q
%build
%install
echo RPM_BUILD_ROOT: $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/
make install DESTDIR=$RPM_BUILD_ROOT \
sbindir=%{_sbindir} \
initdir=%{_initrddir} \
datadir=%{_datadir}
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc CREDITS LICENSE README TODO
%files cpu
%defattr(-, root, root)
%{_initrddir}/set-cpu-state
# Find variable to use for
#/lib/systemd/system/set-cpu-state.service
%(grep -w ^cpu README.bin-files-by-package | perl -pe 's|^\S+\s+|%{_sbindir}/|')
%files gpfs
%defattr(-, root, root)
%{_initrddir}/gpfs_syslogging
%(grep -w ^gpfs README.bin-files-by-package | perl -pe 's|^\S+\s+|%{_sbindir}/|')
%files ib
%defattr(-, root, root)
%doc usr/share/doc/ib_arch_diags/*.pdf
%(grep -w ^ib README.bin-files-by-package | perl -pe 's|^\S+\s+|%{_sbindir}/|')
%files misc
%defattr(-, root, root)
%doc half-baked
%(grep -w ^misc README.bin-files-by-package | perl -pe 's|^\S+\s+|%{_sbindir}/|')
%files uefi
%defattr(-, root, root)
%(grep -w ^uefi README.bin-files-by-package | perl -pe 's|^\S+\s+|%{_sbindir}/|')
%files xcat
%defattr(-, root, root)
%(grep -w ^xcat README.bin-files-by-package | perl -pe 's|^\S+\s+|%{_sbindir}/|')
%files libs
%defattr(-, root, root)
%{_prefix}/lib/%{name}/
%changelog
* Fri Sep 20 2013 Brian Elliott Finley <[email protected]>
- created this spec file
# vim:set tw=0 et ai ts=4: