-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtuxrun.spec
72 lines (58 loc) · 1.73 KB
/
tuxrun.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Name: tuxrun
Version: 0.75.0
Release: 0%{?dist}
Summary: command line tool for testing Linux with curated test suites
License: MIT
URL: https://tuxrun.org/
Source0: %{pypi_source}
BuildRequires: git
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-flit
BuildRequires: python3-pip
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-mock
BuildRequires: python3-yaml
BuildRequires: python3-ruamel-yaml
BuildRequires: python3-jinja2
BuildRequires: python3-requests
Requires: python3-yaml
Requires: python3-ruamel-yaml
Requires: python3-jinja2
Requires: python3-requests
BuildArch: noarch
Requires: python3 >= 3.6
%global debug_package %{nil}
%description
TuxRun, is a command line tool for testing Linux on QEMU or FVP, using curated
test suites. TuxRun is a part of TuxSuite, a suite of tools and services to
help with Linux kernel development.
%prep
%setup -q
%build
export FLIT_NO_NETWORK=1
make run
#make man
#make bash_completion
%check
python3 -m pytest test/
%install
mkdir -p %{buildroot}/usr/share/%{name}/
cp -r run %{name} %{buildroot}/usr/share/%{name}/
mkdir -p %{buildroot}/usr/bin
ln -sf ../share/%{name}/run %{buildroot}/usr/bin/%{name}
#mkdir -p %{buildroot}%{_mandir}/man1
#install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/
#mkdir -p %{buildroot}/usr/share/bash-completion/completions/
#install -m 644 bash_completion/%{name} %{buildroot}/usr/share/bash-completion/completions/
%files
/usr/share/%{name}
%{_bindir}/%{name}
#%{_mandir}/man1/%{name}.1*
#/usr/share/bash-completion/completions/%{name}
%doc README.md
%license LICENSE
%changelog
* Mon Oct 11 2021 Antonio Terceiro <[email protected]> - 0.11.0-1
- Initial version of the package