File qlvnictools.spec of Package qlvnictools
#
# spec file for package qlvnictools (Version 0.0.1 )
#
# 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/
#
Name: qlvnictools
Version: 0.0.1
Release: 74
Summary: VNIC ULP service
Group: System/Console
License: GPL v2 only
Url: http://www.openfabrics.org
Source: http://www.openfabrics.org/downloads/%{name}-%{version}.tar.bz2
Patch0: qlvnictools-init-script.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: ibvexdmtools
BuildRequires: libibumad-devel
ExcludeArch: s390 s390x
%description
VNIC ULP service
%package -n ibvexdmtools
License: GPL v2 only
Group: System/Console
Summary: Tools for VNIC/IB
%description -n ibvexdmtools
In conjunction with the kernel ib_vnic driver, ibvexdmtools allows you
to discover and use QLogic Virtual NIC devices via the VNIC protocol
over InfiniBand.
%prep
%setup -q
%patch0
%build
pushd ibvexdmtools
%configure
make
popd
pushd qlgc_vnic_daemon
%configure
make
popd
%install
install -D qlgc_vnic $RPM_BUILD_ROOT/%_sysconfdir/init.d/qlgc_vnic
install -D ib_qlgc_vnic_parser.pl $RPM_BUILD_ROOT/%_sbindir/ib_qlgc_vnic_parser.pl
install -D ib_qlgc_vnic_info $RPM_BUILD_ROOT/%_sbindir/ib_qlgc_vnic_info
install -D -m 0644 qlgc_vnic.cfg.sample $RPM_BUILD_ROOT/%_sysconfdir/infiniband/qlgc_vnic.cfg
install -D -m 0644 qlgc_vnic.cfg.sample $RPM_BUILD_ROOT/%_sysconfdir/infiniband/qlgc_vnic.cfg.sample
pushd ibvexdmtools
%makeinstall
popd
pushd qlgc_vnic_daemon
%makeinstall
popd
%clean
rm -rf $RPM_BUILD_ROOT
%postun
%insserv_cleanup
%preun
%stop_on_removal
%files
%defattr(-,root,root)
%doc README
%_sysconfdir/init.d/qlgc_vnic
%_sbindir/ib_qlgc_vnic_parser.pl
%_sbindir/ib_qlgc_vnic_info
%dir %_sysconfdir/infiniband
%_sysconfdir/infiniband/qlgc_vnic.cfg.sample
%config(noreplace) %_sysconfdir/infiniband/qlgc_vnic.cfg
%doc qlgc_vnic_daemon/README
%{_sbindir}/ib_qlgc_vnic_update
%files -n ibvexdmtools
%defattr(-,root,root)
%doc ibvexdmtools/NEWS ibvexdmtools/ChangeLog
%{_sbindir}/ib_qlgc_vnic_query
%changelog
* Tue Nov 25 2008 ro@suse.de
- ExcludeArch s390 s390x
* Tue Oct 28 2008 jjolly@suse.de
- Updated to version from the OFED 1.4 rc3
- Updated specfile to better match the example from OFED
- Patched qlgc_init script to be LSB compliant
* Mon Sep 15 2008 jjolly@suse.de
- Added proper LSB header to qlgc_vnic init script
* Fri Feb 29 2008 jjolly@suse.de
- Updated from the OFED 1.3 GA release
* Thu Jan 31 2008 jjolly@suse.de
- Updated from OFED 1.3 rc2 (still version 0.0.1)
- Changed ql_vnic to qlgc_vnic and
vnic_parser.pl to qlgc_vinc_parser.pl
* Thu Jul 12 2007 hvogel@suse.de
- move the init script and the config to the right place
* Tue Jul 03 2007 hvogel@suse.de
- Initial Package, Version 0.0.1