forked from Mellanox/mstflint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mstflint.spec.in
155 lines (117 loc) · 3.98 KB
/
mstflint.spec.in
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
%{!?ibmadlib: %define ibmadlib libibmad-devel}
%{!?name: %define name mstflint}
%{!?version: %define version 4.6.0}
%{!?release: %define release 1}
%{!?buildtype: %define buildtype "native"}
%{!?noinband: %define noinband 0}
%{!?nodc: %define nodc 0}
%{!?enablecs: %define enablecs 0}
%define debug_package %{nil}
%define optflags -g -O2
Summary: Mellanox firmware burning application
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL/BSD
Url: http://openfabrics.org
Group: System Environment/Base
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Source: %{name}-%{version}.tar.gz
ExclusiveArch: i386 i486 i586 i686 x86_64 ia64 ppc ppc64 ppc64le arm64 aarch64
BuildRequires: zlib-devel %{ibmadlib}
%description
This package contains firmware update tool, vpd dump and register dump tools
for network adapters based on Mellanox Technologies chips.
%prep
%setup -q
%build
%if %{nodc}
config_flags="$config_flags --disable-dc"
%endif
%if %{noinband}
config_flags="$config_flags --disable-inband"
%endif
%if %{enablecs}
config_flags="$config_flags --enable-cs"
%endif
%if %{buildtype} == "ppc"
config_flags="$config_flags --host=ppc-linux"
%endif
%if %{buildtype} == "ppc64"
config_flags="$config_flags --host=ppc64-linux --enable-static-libstdcpp=yes"
%endif
%if %{buildtype} == "ppc64le"
config_flags="$config_flags --host=powerpc64le-linux-gnu --enable-dynamic-ld=yes"
%endif
%if %{buildtype} == "arm64"
config_flags="$config_flags --host arm"
%endif
%configure ${config_flags}
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
# create softlinks to old mtcr header and lib locations
# link mtcr_ul to old location
mkdir -p %{buildroot}/%{_includedir}/mtcr_ul
ln -s %{_includedir}/mstflint/mtcr.h %{buildroot}/%{_includedir}/mtcr_ul/mtcr.h
ln -s %{_includedir}/mstflint/mtcr_com_defs.h %{buildroot}/%{_includedir}/mtcr_ul/mtcr_com_defs.h
# link mtcr_ul to old lib path
ln -s %{_libdir}/mstflint/libmtcr_ul.a %{buildroot}/%{_libdir}/libmtcr_ul.a
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/mstmread
%{_bindir}/mstmwrite
%{_bindir}/mstflint
%{_bindir}/mstregdump
%{_bindir}/mstmtserver
%{_bindir}/mstvpd
%{_bindir}/mstmcra
%{_bindir}/mstconfig
%{_includedir}/mstflint/mtcr.h
%{_includedir}/mstflint/mtcr_com_defs.h
%{_includedir}/mtcr_ul/mtcr.h
%{_includedir}/mtcr_ul/mtcr_com_defs.h
%{_libdir}/mstflint/libmtcr_ul.a
%{_libdir}/libmtcr_ul.a
%{_datadir}/mstflint
%{_mandir}/man1/*
%changelog
* Mon Jan 10 2017 Adham Masarwah <[email protected]>
Removed hca_self_test.ofed installation from the package
* Mon Jan 9 2017 Adham Masarwah <[email protected]>
MFT 4.6.0 Updates
* Wed May 17 2016 Adrian Chiris <[email protected]>
MFT 4.4.0 Updates
* Wed Mar 23 2016 Adrian Chiris <[email protected]>
MFT 4.4.0 Updates
* Mon Jan 11 2016 Adrian Chiris <[email protected]>
MFT 4.3.0 Updates
* Wed Aug 26 2015 Adrian Chiris <[email protected]>
MFT 4.1.0 Updates
* Wed Jun 05 2015 Adrian Chiris <[email protected]>
MFT 4.0.1 Updates
* Thu Feb 05 2015 Adrian Chiris <[email protected]>
MFT 4.0.0 Updates
* Sun Dec 07 2014 Tomer Cohen <[email protected]>
Added support for multiple architectures
* Mon Oct 12 2014 Oren Kladnitsky <[email protected]>
MFT 3.7.1
* Mon Jul 31 2014 Oren Kladnitsky <[email protected]>
MFT 3.7.0 Updates
* Mon Mar 31 2014 Oren Kladnitsky <[email protected]>
MFT 3.6.0 Updates
* Tue Dec 24 2013 Oren Kladnitsky <[email protected]>
MFT 3.5.0 Updates
* Wed Mar 20 2013 Oren Kladnitsky <[email protected]>
MFT 3.0.0
* Thu Dec 4 2008 Oren Kladnitsky <[email protected]>
Added hca_self_test.ofed installation
* Fri Dec 23 2007 Oren Kladnitsky <[email protected]>
Added mtcr.h installation
* Fri Dec 07 2007 Ira Weiny <[email protected]> 1.0.0
initial creation