File ibacm.spec of Package ibacm

#
# spec file for package ibacm
#
# 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 git_version -git41c7629
Name:           ibacm
Version:        1.1.0
Release:        0
Summary:        InfiniBand Communication Manager Assistant
License:        GPL-2.0 or BSD-2-Clause
Group:          Productivity/Networking/System
Url:            http://www.openfabrics.org/
Source:         %{name}-%{version}%{git_version}.tar.xz
Source1:        baselibs.conf
# PATCH-FIX-UPSTREAM ibacm-no_type_punning.patch
Source3:        ibacm-no_type_punning.patch
BuildRequires:  libibumad-devel
BuildRequires:  libibverbs-devel >= 1.1-1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ibacm assists with establishing communication over Infiniband.

%package        devel
Summary:        IB CM pre-connection services - SDK
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libibverbs-devel >= 1.1-1

%description    devel
Header for the IB CM pre-connection services.

%package     -n libibacmp1
Summary:        IB CM pre-connection services - runtime library
Group:          System/Libraries

%description -n libibacmp1
Runtime library for the IB CM pre-connection services.

%prep
%setup -q
rm *.spec

%build
export AM_LDFLAGS=-pthread

%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_libdir}/ibacm/*.la \
       %{buildroot}%{_sysconfdir}/init.d/ibacm

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
#%%{_sysconfdir}/init.d/ibacm
%{_bindir}/ib_acme
%{_sbindir}/ibacm
%{_mandir}/man1/*
%{_mandir}/man7/*

%files devel
%defattr(-,root,root,-)
%{_includedir}/infiniband/acm.h
%{_includedir}/infiniband/acm_prov.h
%{_libdir}/ibacm/*.so

%files -n libibacmp1
%defattr(-,root,root,-)
%dir %{_libdir}/ibacm
%{_libdir}/ibacm/lib*.so.*

 %changelog

%changelog
openSUSE Build Service is sponsored by