# # spec file for package infinipath-psm # # Copyright (c) 2014 SUSE LINUX Products 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 2_ga8c3e3e_open Name: infinipath-psm Version: 3.2 Release: 0 Summary: QLogic PSM Libraries License: BSD-2-Clause or GPL-2.0 Group: Productivity/Networking/System Url: http://www.qlogic.com/ Source0: %{name}-%{version}-%{my_release}.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 BuildRoot: %{_tmppath}/%{name}-%{version}-build Conflicts: infinipath-libs ExclusiveArch: %ix86 x86_64 %define so_major 1 %define lname libpsm_infinipath%{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} Conflicts: infinipath-devel %description devel Development files for the libpsm_infinipath library %package -n %{lname} Summary: Development files for QLogic PSM Group: System/Libraries Obsoletes: infinipath-psm < %{version} Provides: infinipath-psm = %{version} %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} %patch0 %patch1 %patch3 %build export RPM_OPT_FLAGS="%{optflags} -Wno-unused-but-set-variable" make USE_PSM_UUID=1 %{?_smp_mflags} %install %make_install %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} %defattr(-,root,root,-) %doc COPYING %{_libdir}/libpsm_infinipath.so.* %{_libdir}/libinfinipath.so.* %files devel %defattr(-,root,root,-) %{_libdir}/libpsm_infinipath.so %{_libdir}/libinfinipath.so %{_includedir}/psm.h %{_includedir}/psm_mq.h %changelog