Files
warewulf/warewulf.spec.in
2021-01-27 12:16:30 +09:00

49 lines
999 B
RPMSpec

%define debug_package %{nil}
Name: warewulf
Summary: A suite of tools for bare metal provisioning of containers
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: System Environment/Clustering
Source: %{name}-%{version}.tar.gz
ExclusiveOS: linux
BuildRoot: %{?_tmppath}/%{name}-%{version}-%{release}-root
%description
Warewulf is a bare metal container provisioning system.
%prep
%setup -q
%build
make all
%install
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
#%pre
#groupadd -r warewulf >/dev/null 2>&1 || :
%post
%if %{?rhel}%{!?rhel:0} >= 7
systemctl start warewulfd >/dev/null 2>&1 || :
systemctl enable warewulfd >/dev/null 2>&1 || :
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%attr(0755, root, warewulf) %dir /etc/warewulf/
%config(noreplace) /etc/warewulf/*
/usr/bin/wwctl
/usr/lib/systemd/system/warewulfd.service
/var/warewulf
%changelog
* Tue Jan 26 14:46:24 JST 2021 Brian Clemens <bclemens@ctrliq.com> - 4.0.0
- Initial release