File: intel-mic-psm.spec.in

package info (click to toggle)
infinipath-psm 3.3+20.604758e7-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,452 kB
  • sloc: ansic: 34,270; makefile: 358; asm: 47; sh: 18
file content (207 lines) | stat: -rw-r--r-- 6,219 bytes parent folder | download
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# Copyright (c) 2012. Intel Corporation. All rights reserved.
# Copyright (c) 2010. QLogic Corporation. All rights reserved.
#
# This software is available to you under a choice of one of two
# licenses.  You may choose to be licensed under the terms of the GNU
# General Public License (GPL) Version 2, available from the file
# COPYING in the main directory of this source tree, or the
# OpenIB.org BSD license below:
#
#     Redistribution and use in source and binary forms, with or
#     without modification, are permitted provided that the following
#     conditions are met:
#
#      - Redistributions of source code must retain the above
#        copyright notice, this list of conditions and the following
#        disclaimer.
#
#      - Redistributions in binary form must reproduce the above
#        copyright notice, this list of conditions and the following
#        disclaimer in the documentation and/or other materials
#        provided with the distribution.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

Summary: Intel PSM Libraries
Name: intel-mic-psm
Version: @VERSION@
Release: @RELEASE@
License: GPL
Group: System Environment/Libraries
URL: http://www.intel.com/
Source0: %{name}-%{version}-%{release}.tar.gz
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Provides: %{name} = %{version}
# ifs package
Obsoletes: infinipath-libs <= %{version}-%{release}
Conflicts: infinipath-libs <= %{version}-%{release}
# mpss package
Obsoletes: mpss-psm <= %{version}-%{release}
Conflicts: mpss-psm <= %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@REQUIRES@

%package devel
Summary: Development files for Intel PSM
Group: System Environment/Development
Requires: %{name} = %{version}-%{release}
Provides: %{name}-devel = %{version}
# ifs package
Obsoletes: infinipath-devel <= %{version}-%{release}
Conflicts: infinipath-devel <= %{version}-%{release}
# mpss package
Obsoletes: mpss-psm-dev <= %{version}-%{release}
Conflicts: mpss-psm-dev <= %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@REQUIRES-DEVEL@


%package -n infinipath-psm
Summary: QLogic PSM Libraries
Epoch: 4
License: GPL
Group: System Environment/Libraries
URL: http://www.qlogic.com/
Prefix: /usr
Provides: infinipath-psm = %{version}
Conflicts: infinipath-libs intel-mic-psm
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@REQUIRES@

%package -n infinipath-psm-devel
Summary: Development files for Intel PSM
Group: System Environment/Development
Requires: infinipath-psm = %{version}-%{release}
Provides: infinipath-psm-devel = %{version}
# ifs package
Obsoletes: infinipath-devel <= %{version}-%{release}
Conflicts: infinipath-devel <= %{version}-%{release}
# mpss package
Obsoletes: mpss-psm-dev <= %{version}-%{release}
Conflicts: mpss-psm-dev <= %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@REQUIRES-DEVEL@

# %package card-devel
# Summary: Development files for Intel Xeon Phi
# Group: System Environment/Development
# Requires: %{name} = %{version}-%{release}
# Requires(post): /sbin/ldconfig
# Requires(postun): /sbin/ldconfig


%global debug_package %{nil}

#%{!?install_prefix:%define install_prefix /usr}
#PSM_HAVE_SCIF is one of: 0 1
%{!?PSM_HAVE_SCIF:     %global PSM_HAVE_SCIF 0}

%define INFINIPATH_MAKEARG PSM_HAVE_SCIF=0 MIC=0
%define INTEL_MAKEARG PSM_HAVE_SCIF=1 MIC=0
%define INTEL_CARD_MAKEARG PSM_HAVE_SCIF=1 MIC=1 LOCAL_PREFIX=/opt/intel/mic/psm
%define card_prefix /opt/intel/mic/psm

%if "%{PSM_HAVE_SCIF}" == "0"
  %define MAKEARG PSM_HAVE_SCIF=0 MIC=0
%else
  %if "%{PSM_HAVE_SCIF}" == "1"
    %define MAKEARG PSM_HAVE_SCIF=1 MIC=0
  %else
    %define MAKEARG PSM_HAVE_SCIF=0 MIC=0
    %define PSM_HAVE_SCIF "1"
  %endif
%endif

%description
The PSM Messaging API, or PSM API, is Intel's low-level
user-level communications interface for the True Scale
family of products. PSM users are enabled with mechanisms
necessary to implement higher level communications
interfaces in parallel environments.

%description devel
Development files for the libpsm_infinipath library

%description -n infinipath-psm
The PSM Messaging API, or PSM API, is QLogic's low-level
user-level communications interface for the Truescale
family of products. PSM users are enabled with mechanisms
necessary to implement higher level communications
interfaces in parallel environments.

%description -n infinipath-psm-devel
Development files for the libpsm_infinipath library

%prep
%setup -q -n %{name}-%{version}-%{release}

%build
%{__make} @PSM_UUID@ %{MAKEARG}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
export DESTDIR=$RPM_BUILD_ROOT
%{__make} install %{MAKEARG}



%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig

%if "%{PSM_HAVE_SCIF}" == "1"
%files
%defattr(-,root,root,-)
%{install_prefix}/lib64/libpsm_infinipath.so.*
%{install_prefix}/lib64/libinfinipath.so.*
/usr/sbin/psmd

%files devel
%defattr(-,root,root,-)
%{install_prefix}/lib64/libpsm_infinipath.so
%{install_prefix}/lib64/libinfinipath.so
/usr/include/psm.h
/usr/include/psm_mq.h
%endif


%if "%{PSM_HAVE_SCIF}" == "0"
%files -n infinipath-psm
%defattr(-,root,root,-)
%{install_prefix}/lib64/libpsm_infinipath.so.*
%{install_prefix}/lib64/libinfinipath.so.*

%files -n infinipath-psm-devel
%defattr(-,root,root,-)
%{install_prefix}/lib64/libpsm_infinipath.so
%{install_prefix}/lib64/libinfinipath.so
/usr/include/psm.h
/usr/include/psm_mq.h
%endif



%changelog
* Tue Nov 6 2012 Mitko Haralanov <mitko.haralanov@intel.com> - @VERSION@-1
- Add Intel Xeon Phi related changes
* Tue May 11 2010 Mitko Haralanov <mitko@qlogic.com> - @VERSION@-1
- Initial build.