# # spec file for package infinipath-psm # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %define my_release -19_g67c0807 Name: infinipath-psm Version: 3.3 Release: 0 Summary: QLogic PSM Libraries License: BSD-2-Clause or GPL-2.0 Group: Productivity/Networking/System Url: http://www.qlogic.com/ Source0: http://downloads.openfabrics.org/downloads/infinipath-psm/%{name}-%{version}%{my_release}_open.tar.gz # 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 BuildRequires: libuuid-devel Conflicts: infinipath-libs ExclusiveArch: %ix86 x86_64 %define so_major 4 %define psm_so_major 1 %define lname libinfinipath%{so_major} %define lnamepsm libpsm_infinipath%{psm_so_major} %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++ Requires: %{lname} = %{version} Requires: %{lnamepsm} = %{version} Requires: libuuid-devel Conflicts: infinipath-devel %description devel Development files for the libpsm_infinipath library %package -n %{lnamepsm} Summary: Development files for QLogic PSM Group: System/Libraries Obsoletes: infinipath-psm < %{version} Provides: infinipath-psm = %{version} %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 %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 %setup -q -n infinipath-psm-%{version}%{my_release}_open %patch0 %patch1 %patch3 %build export RPM_OPT_FLAGS="%{optflags} -Wno-unused-but-set-variable" #make USE_PSM_UUID=1 libdir=%{_libdir} %{?_smp_mflags} make libdir=%{_libdir} %{?_smp_mflags} %install make libdir=%{_libdir} DESTDIR=%{buildroot} install %post -n %{lname} -p /sbin/ldconfig %post -n %{lnamepsm} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %postun -n %{lnamepsm} -p /sbin/ldconfig %files -n %{lname} %defattr(-,root,root,-) %{_libdir}/libinfinipath.so.* %files -n %{lnamepsm} %defattr(-,root,root,-) %{_libdir}/libpsm_infinipath.so.* %files devel %defattr(-,root,root,-) %{_libdir}/libpsm_infinipath.so %{_libdir}/libinfinipath.so %{_includedir}/psm.h %{_includedir}/psm_mq.h %changelog