2008-06-30 23:33:50 +00:00
|
|
|
Name: opensm
|
|
|
|
Version: 3.2.1
|
2009-02-26 08:46:36 +00:00
|
|
|
Release: 2%{?dist}
|
2008-06-30 23:33:50 +00:00
|
|
|
Summary: OpenIB InfiniBand Subnet Manager and management utilities
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPLv2 or BSD
|
|
|
|
Url: http://www.openfabrics.org/
|
|
|
|
Source0: http://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz
|
|
|
|
Source1: opensm.conf
|
|
|
|
Source2: opensm.logrotate
|
|
|
|
Source3: opensm.initd
|
|
|
|
Patch0: opensm-3.2.1-rpath.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2008-07-01 15:02:23 +00:00
|
|
|
BuildRequires: libibmad-devel >= 1.2.0, libtool, bison, flex, byacc
|
2008-06-30 23:33:50 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}, logrotate, rdma
|
|
|
|
|
|
|
|
%description
|
|
|
|
OpenSM is the OpenIB project's Subnet Manager for Infiniband networks.
|
|
|
|
The subnet manager is run as a system daemon on one of the machines in
|
|
|
|
the infiniband fabric to manage the fabric's routing state. This package
|
|
|
|
also contains various tools for diagnosing and testing Infiniband networks
|
|
|
|
that can be used from any machine and do not need to be run on a machine
|
|
|
|
running the opensm daemon.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries used by opensm and included utilities
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
Shared libraries for Infiniband user space access
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the opensm-libs libraries
|
|
|
|
Group: Development/System
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development environment for the opensm libraries
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static version of the opensm libraries
|
|
|
|
Group: Development/System
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
%description static
|
|
|
|
Static version of opensm libraries
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .rpath
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --with-opensm-conf-sub-dir=rdma
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
# remove unpackaged files from the buildroot
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
install -D -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rdma/opensm.conf
|
|
|
|
install -D -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/opensm
|
|
|
|
install -D -m755 %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/opensm
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/cache/opensm
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
/sbin/chkconfig --add opensm
|
|
|
|
else
|
|
|
|
/sbin/service opensm condrestart
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/service opensm stop
|
|
|
|
/sbin/chkconfig --del opensm
|
|
|
|
rm -f /var/cache/opensm/*
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir /var/cache/opensm
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_initrddir}/opensm
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/opensm
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/opensm.conf
|
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/infiniband
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
|
|
|
|
%changelog
|
2009-02-26 08:46:36 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-06-30 23:33:50 +00:00
|
|
|
* Sun Jun 08 2008 Doug Ledford <dledford@redhat.com> - 3.2.1-1
|
|
|
|
- Initial package for Fedora review process
|
|
|
|
|