1 Summary: Run maintenance tasks outside the OS
6 Group: Applications/System
7 Source0: https://pypi.python.org/packages/source/m/maintboot/%{name}-%{version}.tar.gz
8 # Source0-md5: c70a7743f2654274494d6a5c261a55f1
9 URL: https://github.com/g2p/maintboot
10 BuildRequires: python3-modules >= 1:3.3
11 BuildRequires: rpm-pythonprov
12 BuildRequires: rpmbuild(macros) >= 1.219
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 maintboot runs commands outside of the current OS, with exclusive
18 access to the system and hardware.
20 This can be useful to run maintenance tasks, like repartitioning, in a
21 controlled environment.
23 Maintboot builds an appliance on the fly from a list of packages
24 (using supermin). It then loads the appliance with kexec, bypassing
25 the bios, and runs the maintenance ...
31 %{__python3} setup.py build
34 rm -rf $RPM_BUILD_ROOT
35 %{__python3} setup.py install \
38 --root=$RPM_BUILD_ROOT
40 # egg has no value for executable
41 rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/maintboot-%{version}-py*.egg-info
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{_bindir}/maintboot