2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-22 22:15:30 +00:00

Renamed rpm to xCAT-csm. Moved pkglist files to xcat-core/xCAT-csm/ directory. Added spec file

This commit is contained in:
Patrick Lundgren
2016-10-12 15:59:44 -04:00
parent d5696d6c21
commit e50ab3c0a6
6 changed files with 52 additions and 0 deletions

52
xCAT-csm/xCAT-csm.spec Normal file
View File

@ -0,0 +1,52 @@
Summary: Packages for installation of CSM nodes
Name: xCAT-csm
Version: %{?version:%{version}}%{!?version:%(cat Version)}
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
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/%{prefix}/share/xcat/install/rh/
set +x
cp csm* $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
%clean
# This step does not happen until *after* the %files packaging below
rm -rf $RPM_BUILD_ROOT
%files
%{prefix}
%defattr(-,root,root,-)
%doc
%changelog