- Fix package reference for EL7 - Update spec file to use systemd macros - Use macros to refer to file paths - Update syntax
79 lines
1.5 KiB
RPMSpec
79 lines
1.5 KiB
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
|
|
Source: https://github.com/hpcng/warewulf/archive/refs/tags/%{name}-%{version}.tar.gz
|
|
ExclusiveOS: linux
|
|
|
|
BuildRequires: make
|
|
BuildRequires: golang
|
|
|
|
%if 0%{?rhel}
|
|
BuildRequires: systemd
|
|
%else
|
|
BuildRequires: systemd-rpm-macros
|
|
%endif
|
|
|
|
%if 0%{?rhel} > 7
|
|
Requires: dhcp-server
|
|
%else
|
|
Requires: dhcp
|
|
%endif
|
|
|
|
Requires: tftp-server
|
|
Requires: nfs-utils
|
|
|
|
%description
|
|
Warewulf is a bare metal container provisioning system.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
make all
|
|
|
|
%install
|
|
%make_install DESTDIR=%{buildroot} %{?mflags_install}
|
|
|
|
%pre
|
|
getent group warewulf >/dev/null || groupadd -r warewulf
|
|
|
|
%post
|
|
%systemd_post warewulfd.service
|
|
|
|
%preun
|
|
%systemd_preun warewulfd.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart warewulfd.service
|
|
|
|
%files
|
|
%attr(0755, root, warewulf) %dir %{_sysconfdir}/%{name}
|
|
%config(noreplace) %{_sysconfdir}/%{name}/*
|
|
|
|
%{_sysconfdir}/bash_completion.d/warewulf
|
|
|
|
%{_bindir}/wwctl
|
|
|
|
%{_prefix}/lib/firewalld/services/warewulf.xml
|
|
|
|
%{_unitdir}/warewulfd.service
|
|
|
|
%attr(0755, root, warewulf) %dir %{_localstatedir}/%{name}
|
|
%{_localstatedir}/%{name}/overlays/runtime/*
|
|
%{_localstatedir}/%{name}/overlays/system/*
|
|
|
|
%{_mandir}/man1/wwctl*
|
|
|
|
%changelog
|
|
* Fri Sep 24 2021 Michael L. Young <myoung@ciq.co> - 4.2.0-1
|
|
- Update spec file to use systemd macros
|
|
- Use macros to refer to system paths
|
|
- Update syntax
|
|
|
|
* Tue Jan 26 2021 14:46:24 JST Brian Clemens <bclemens@ctrliq.com> - 4.0.0
|
|
- Initial release
|