]> git.pld-linux.org Git - SPECS.git/blob - maintboot.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / maintboot.spec
1 Summary:        Run maintenance tasks outside the OS
2 Name:           maintboot
3 Version:        0.1.0
4 Release:        0.1
5 License:        GPL v3
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
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 maintboot runs commands outside of the current OS, with exclusive
18 access to the system and hardware.
19
20 This can be useful to run maintenance tasks, like repartitioning, in a
21 controlled environment.
22
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 ...
26
27 %prep
28 %setup -q
29
30 %build
31 %{__python3} setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 %{__python3} setup.py install \
36         --skip-build \
37         --optimize=2 \
38         --root=$RPM_BUILD_ROOT
39
40 # egg has no value for executable
41 rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/maintboot-%{version}-py*.egg-info
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{_bindir}/maintboot
This page took 0.044313 seconds and 3 git commands to generate.