forked from Mellanox/mlx_steering_dump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mlx-steering-dump.spec
74 lines (63 loc) · 2.55 KB
/
mlx-steering-dump.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
73
#
# Copyright (c) 2017 Mellanox Technologies. All rights reserved.
#
# This Software is licensed under one of the following licenses:
#
# 1) under the terms of the "Common Public License 1.0" a copy of which is
# available from the Open Source Initiative, see
# http://www.opensource.org/licenses/cpl.php.
#
# 2) under the terms of the "The BSD License" a copy of which is
# available from the Open Source Initiative, see
# http://www.opensource.org/licenses/bsd-license.php.
#
# 3) under the terms of the "GNU General Public License (GPL) Version 2" a
# copy of which is available from the Open Source Initiative, see
# http://www.opensource.org/licenses/gpl-license.php.
#
# Licensee has the right to choose one of the above licenses.
#
# Redistributions of source code must retain the above copyright
# notice and one of the license notices.
#
# Redistributions in binary form must reproduce both the above copyright
# notice, one of the license notices in the documentation
# and/or other materials provided with the distribution.
#
#
Summary: Mellanox steering dump parser
Name: mlx-steering-dump
Version: 1.0.0
Release: 0%{?_dist}
License: GPLv2
Url: https://github.com/Mellanox/mlx_steering_dump
Group: Applications/System
Source: https://github.com/Mellanox/mlx_steering_dump/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{?build_root:%{build_root}}%{!?build_root:/var/tmp/%{name}}
Vendor: Mellanox Technologies
Requires: python3
%description
This is Mellanox SW steering parser and triggering for dump files in CSV format.
The supported dump files are those generated by ConnectX5 and ConnectX6DX.
%prep
%setup -q %{name}-%{version}
%install
install -d %{buildroot}/usr/share/mlx-steering-dump/sws/src/parsers
install -d %{buildroot}/usr/share/mlx-steering-dump/hws/src
install -d %{buildroot}/usr/bin/
install -m 755 sws/mlx_steering_dump_parser.py %{buildroot}/usr/share/mlx-steering-dump/sws
install -m 644 sws/src/*.py %{buildroot}/usr/share/mlx-steering-dump/sws/src/
install -m 644 sws/src/parsers/*.py %{buildroot}/usr/share/mlx-steering-dump/sws/src/parsers/
install -m 755 sws/mlx_steering_dump %{buildroot}/usr/bin/
install -m 755 hws/mlx_hw_steering_parser.py %{buildroot}/usr/share/mlx-steering-dump/hws
install -m 644 hws/src/*.py %{buildroot}/usr/share/mlx-steering-dump/hws/src/
install -m 755 hws/mlx_hw_steering_dump %{buildroot}/usr/bin/
%clean
%preun
%files
/usr/share/mlx-steering-dump/*
/usr/bin/mlx_steering_dump
/usr/bin/mlx_hw_steering_dump
%changelog
* Wed Oct 6 2021 Mohammad Kabat <[email protected]>
- Add rpm support