File srptools.spec of Package srptools

#
# spec file for package srptools (Version 0.0.4)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           srptools
Summary:        Tools for SRP/IB
Version:        0.0.4
Release:        4
License:        BSD 3-Clause; GPL v2 or later
Group:          System/Console
Source0:        %{name}-%{version}.tar.bz2
Source1:        conf.sysconfig
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibcommon-devel libibumad-devel libibverbs-devel
PreReq:         %fillup_prereq
ExcludeArch:    s390 s390x

%description
In conjunction with the kernel ib_srp driver, srptools allows you to
discover and use SCSI devices via the SCSI RDMA Protocol over
InfiniBand.



%prep
%setup -q
cp %{S:1} .

%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
# install sysconfig configuration
install -m 700 -D conf.sysconfig ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.infiniband-%name

%clean
rm -rf ${RPM_BUILD_ROOT}

%post
%{fillup_only -an infiniband}

%files
%defattr(-, root, root)
%config(noreplace) %_sysconfdir/srp_daemon.conf
/var/adm/fillup-templates/sysconfig.infiniband-%name
%_sbindir/*
%_mandir/man1/*

%changelog
* Wed Oct 29 2008 jjolly@suse.de
- Updated to version from OFED 1.4 RC3
- Added ExcludeArch: s390 s390x to specfile
* Fri Sep 12 2008 jjolly@suse.de
- Updated to v0.0.4 from OFED 1.4 RC1
* Tue Aug 07 2007 hvogel@suse.de
- Update to version from OFED 1.2c
* Fri Jul 20 2007 hvogel@suse.de
- Fix sysconfig filename
* Wed Jul 11 2007 hvogel@suse.de
- Put configuration into the infiniband sysconfig file
* Mon Jul 09 2007 hvogel@suse.de
- Use correct version number
* Wed Jun 20 2007 hvogel@suse.de
- Initial Package, Version 0.03
openSUSE Build Service is sponsored by