forked from qualcomm-linux/lava-test-plans
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlava-test-plans.spec
More file actions
74 lines (60 loc) · 1.79 KB
/
Copy pathlava-test-plans.spec
File metadata and controls
74 lines (60 loc) · 1.79 KB
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
73
74
Name: lava-test-plans
Version: 3.2.0
Release: 0%{?dist}
Summary: The lava-test-plans project makes it easier to generate LAVA job.
License: MIT
URL: https://github.com/linaro/lava-test-plans
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-configobj
BuildRequires: python3-docker
BuildRequires: python3-jinja2
BuildRequires: python3-requests
BuildRequires: python3-ruamel-yaml
BuildArch: noarch
Requires: python3 >= 3.6
Requires: python3-configobj
Requires: python3-docker
Requires: python3-jinja2
Requires: python3-requests
Requires: python3-ruamel-yaml
%global debug_package %{nil}
%description
The lava-test-plans project makes it easier to generate LAVA job.
It generates the LAVA job definition file from a set of templates.
%prep
%setup -q
%build
export FLIT_NO_NETWORK=1
make run
#make man
#make bash_completion
%check
export SKIP_TEST_LAVA_VALIDITY=1
python3 -m pytest test/
%install
mkdir -p %{buildroot}/usr/share/%{name}/
cp -r run %{dist} %{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
* Tue Sep 06 2022 Anders Roxell <anders.roxell@linaro.org> - 3.0-1
- Initial version of the package