xCAT-buildkit - remove file checked in by mistake
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14203 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d24431934e
commit
6cdb1cfdec
@ -1,86 +0,0 @@
|
||||
Summary: xCAT buildkit tools and sample kit
|
||||
Name: xCAT-buildkit
|
||||
Version: %(cat Version)
|
||||
Release: snap%(date +"%Y%m%d%H%M")
|
||||
Epoch: 4
|
||||
License: EPL
|
||||
Group: Applications/System
|
||||
Source: xCAT-buildkit-%(cat Version).tar.gz
|
||||
Packager: IBM Corp.
|
||||
Vendor: IBM Corp.
|
||||
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
||||
Prefix: /opt/xcat
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
||||
|
||||
%ifnos linux
|
||||
AutoReqProv: no
|
||||
%endif
|
||||
|
||||
# AIX will build with an arch of "ppc"
|
||||
# also need to fix Requires for AIX
|
||||
%ifos linux
|
||||
BuildArch: noarch
|
||||
#Requires:
|
||||
%endif
|
||||
|
||||
# No dependencies on any other xCAT rpms
|
||||
# so that this rpm can be installed in a separate build server
|
||||
Requires: rpm-build
|
||||
|
||||
Provides: xCAT-buildkit = %{epoch}:%{version}
|
||||
|
||||
%description
|
||||
xCAT-buildkit provides the buildkit tool and sample kit files to build an xCAT kit.
|
||||
|
||||
%prep
|
||||
%setup -q -n xCAT-buildkit
|
||||
%build
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/kits
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin
|
||||
|
||||
%ifos linux
|
||||
cp -aR share/xcat/kits/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/kits/
|
||||
chmod -R 644 $RPM_BUILD_ROOT/%{prefix}/share/xcat/kits/*
|
||||
cp -a bin/* $RPM_BUILD_ROOT/%{prefix}/bin/
|
||||
chmod -R 755 $RPM_BUILD_ROOT/%{prefix}/bin/*
|
||||
%else
|
||||
cp -hpR share/xcat/kits/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/kits/
|
||||
chmod -R 755 $RPM_BUILD_ROOT/%{prefix}/share/xcat/kits/*
|
||||
%endif
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-buildkit
|
||||
cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-buildkit
|
||||
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-buildkit/*
|
||||
echo $RPM_BUILD_ROOT %{prefix}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
#%doc LICENSE.html
|
||||
%{prefix}
|
||||
|
||||
%changelog
|
||||
|
||||
%pre
|
||||
# only need to check on AIX
|
||||
%ifnos linux
|
||||
if [ -x /usr/sbin/emgr ]; then # Check for emgr cmd
|
||||
/usr/sbin/emgr -l 2>&1 | grep -i xCAT # Test for any xcat ifixes - msg and exit if found
|
||||
if [ $? = 0 ]; then
|
||||
echo "Error: One or more xCAT emgr ifixes are installed. You must use the /usr/sbin/emgr command to uninstall each xCAT emgr ifix prior to RPM installation."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
||||
%preun
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user