mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-24 05:11:12 +00:00
- Edit the makerpm to replace version of xCAT-genesis-base.spec file so there's no need to manually set the VERSION. We do need a better way for the RELEASE variable - Require xCAT-genesis-base >= 2.13.0 for the rebuild of genesis-base - Clean up the builder rpm to include directories to clean up correctly on rpm removal
50 lines
1.4 KiB
RPMSpec
50 lines
1.4 KiB
RPMSpec
BuildArch: noarch
|
|
%define name xCAT-genesis-builder
|
|
Version: %{?version:%{version}}%{!?version:%(cat Version)}
|
|
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
|
|
Epoch: 1
|
|
AutoReq: false
|
|
Requires: ipmitool screen btrfs-progs lldpad rpm-build compat-libstdc++-33 mstflint xfsprogs nc reiserfs-utils
|
|
Prefix: /opt/xcat
|
|
AutoProv: false
|
|
|
|
|
|
|
|
Name: %{name}
|
|
Group: System/Utilities
|
|
License: EPL
|
|
Vendor: IBM Corp.
|
|
Summary: Tooling to create xCAT's discovery/maintenance/debugging environment
|
|
URL: http://xcat.org
|
|
Source1: xCAT-genesis-builder.tar.bz2
|
|
|
|
Buildroot: %{_localstatedir}/tmp/xCAT-genesis-builder
|
|
Packager: IBM Corp.
|
|
|
|
%Description
|
|
Genesis (Genesis Enhanced Netboot Environment for System Information and Servicing) is xCAT's netboot environment designed to perform hardware and firmware inventory, perform firmware updates/configuration, and perform troubleshooting.
|
|
%Prep
|
|
|
|
|
|
%Build
|
|
|
|
%Install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/genesis/builder
|
|
cd $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/genesis/builder
|
|
tar jxvf %{SOURCE1}
|
|
chmod +x $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/genesis/builder/buildrpm
|
|
cd -
|
|
|
|
|
|
%Files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.html
|
|
%dir %{prefix}
|
|
%dir %{prefix}/share
|
|
%dir %{prefix}/share/xcat
|
|
%dir %{prefix}/share/xcat/netboot
|
|
%dir %{prefix}/share/xcat/netboot/genesis
|
|
%dir %{prefix}/share/xcat/netboot/genesis/builder
|
|
%{prefix}/share/xcat/netboot/genesis/builder/*
|