2014-07-23 22:06:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package infinipath-psm
|
|
|
|
#
|
2018-02-14 09:42:26 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-07-23 22:06:22 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-09-05 19:59:22 +02:00
|
|
|
%define git_ver .26.604758e
|
2014-07-23 22:06:22 +02:00
|
|
|
|
|
|
|
Name: infinipath-psm
|
2015-09-03 17:58:41 +02:00
|
|
|
Version: 3.3
|
2014-07-23 22:06:22 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: QLogic PSM Libraries
|
|
|
|
License: BSD-2-Clause or GPL-2.0
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
Url: http://www.qlogic.com/
|
2017-09-05 19:59:22 +02:00
|
|
|
Source0: %{name}-%{version}%{git_ver}.tar.gz
|
2016-12-03 18:25:55 +01:00
|
|
|
Source1: baselibs.conf
|
2014-07-23 22:06:22 +02:00
|
|
|
# PATCH-FIX-UPSTREAM infinipath-psm-cflags.patch pth@suse.de
|
|
|
|
Patch0: infinipath-psm-cflags.patch
|
|
|
|
# PATCH-FIX-UPSTREAM infinipath-psm-no_werror.patch pth@suse.de
|
|
|
|
Patch1: infinipath-psm-no_werror.patch
|
|
|
|
# PATCH-FIX-UPSTREAM infinipath-psm-executable_headers.patch pth@suse.de
|
|
|
|
Patch3: infinipath-psm-executable_headers.patch
|
2016-05-02 10:43:14 +02:00
|
|
|
BuildRequires: libuuid-devel
|
2014-07-23 22:06:22 +02:00
|
|
|
Conflicts: infinipath-libs
|
|
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
|
2016-05-02 10:43:14 +02:00
|
|
|
%define so_major 4
|
|
|
|
%define psm_so_major 1
|
|
|
|
%define lname libinfinipath%{so_major}
|
|
|
|
%define lnamepsm libpsm_infinipath%{psm_so_major}
|
2014-07-23 22:06:22 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for QLogic PSM
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-02 10:43:14 +02:00
|
|
|
Requires: %{lnamepsm} = %{version}
|
2016-12-03 18:25:55 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2016-05-02 10:43:14 +02:00
|
|
|
Requires: libuuid-devel
|
2014-07-23 22:06:22 +02:00
|
|
|
Conflicts: infinipath-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for the libpsm_infinipath library
|
|
|
|
|
2016-05-02 10:43:14 +02:00
|
|
|
%package -n %{lnamepsm}
|
2014-07-23 22:06:22 +02:00
|
|
|
Summary: Development files for QLogic PSM
|
|
|
|
Group: System/Libraries
|
|
|
|
Obsoletes: infinipath-psm < %{version}
|
|
|
|
Provides: infinipath-psm = %{version}
|
2017-06-30 10:06:43 +02:00
|
|
|
Conflicts: libpsm2-compat
|
2018-02-14 09:42:26 +01:00
|
|
|
# PSM1 library does not actually obsolete psm2-compat, BUT
|
|
|
|
# both RPM provide the same library leaving a choice for
|
|
|
|
# zypper/OBS. psm2-compat is to be used in extremely rare
|
|
|
|
# occasions by a knowing user wanting to try out their PSM1 application
|
|
|
|
# against PSM2 HW. Marking PSM1 as obsoleting psm2-compat
|
|
|
|
# fixes the issue and match RHEL behaviour. See bsc#1080773
|
|
|
|
Obsoletes: libpsm2-compat
|
2014-07-23 22:06:22 +02:00
|
|
|
|
2016-05-02 10:43:14 +02:00
|
|
|
%description -n %{lnamepsm}
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Development files for QLogic PSM
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-07-23 22:06:22 +02:00
|
|
|
%description -n %{lname}
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2017-09-05 19:59:22 +02:00
|
|
|
%setup -q -n %{name}-%{version}%{git_ver}
|
2014-07-23 22:06:22 +02:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch3
|
|
|
|
|
|
|
|
%build
|
|
|
|
export RPM_OPT_FLAGS="%{optflags} -Wno-unused-but-set-variable"
|
2016-05-02 10:43:14 +02:00
|
|
|
make libdir=%{_libdir} %{?_smp_mflags}
|
2014-07-23 22:06:22 +02:00
|
|
|
|
|
|
|
%install
|
2016-05-02 10:43:14 +02:00
|
|
|
make libdir=%{_libdir} DESTDIR=%{buildroot} install
|
2014-07-23 22:06:22 +02:00
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2016-05-02 10:43:14 +02:00
|
|
|
%post -n %{lnamepsm} -p /sbin/ldconfig
|
2014-07-23 22:06:22 +02:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2016-05-02 10:43:14 +02:00
|
|
|
%postun -n %{lnamepsm} -p /sbin/ldconfig
|
2014-07-23 22:06:22 +02:00
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libinfinipath.so.*
|
|
|
|
|
2016-05-02 10:43:14 +02:00
|
|
|
%files -n %{lnamepsm}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libpsm_infinipath.so.*
|
|
|
|
|
2014-07-23 22:06:22 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libpsm_infinipath.so
|
|
|
|
%{_libdir}/libinfinipath.so
|
|
|
|
%{_includedir}/psm.h
|
|
|
|
%{_includedir}/psm_mq.h
|
|
|
|
|
|
|
|
%changelog
|