-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathxCAT-csm.spec
55 lines (40 loc) · 1.2 KB
/
xCAT-csm.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
Summary: Packages for installation of CSM nodes
Name: xCAT-csm
Version: %{?version:%{version}}%{!?version:%(cat Version)}
Release: %{?release:%{release}}%{!?release:%(cat Release)}
Epoch: 4
License: IBM
Group: Applications/System
Source: xCAT-csm-%{version}.tar.gz
Packager: IBM Corp.
Vendor: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: /opt/xcat
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
%ifos linux
BuildArch: noarch
%endif
Provides: xCAT-csm = %{epoch}:%{version}
Requires: xCAT
%description
xCAT-csm provides Packages for installation of CSM nodes
%prep
%setup -q -n xCAT-csm
%build
%install
rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT/install/postscripts/
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/rh/
cp install.rh/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
cp netboot.rh/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/rh/
cp install/postscripts/* $RPM_BUILD_ROOT/install/postscripts/
%clean
# This step does not happen until *after* the %files packaging below
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{prefix}
/install/postscripts
%doc
%changelog