2016-03-16 14:11:01 +00:00
|
|
|
%global __remake_config 0
|
|
|
|
|
2014-03-17 22:35:51 +00:00
|
|
|
Name: opensm
|
2016-06-10 11:45:16 +00:00
|
|
|
Version: 3.3.20
|
2017-02-11 00:58:00 +00:00
|
|
|
Release: 2%{?dist}
|
2008-06-30 23:33:50 +00:00
|
|
|
Summary: OpenIB InfiniBand Subnet Manager and management utilities
|
2014-03-17 22:35:51 +00:00
|
|
|
Group: System Environment/Daemons
|
2008-06-30 23:33:50 +00:00
|
|
|
License: GPLv2 or BSD
|
2016-03-16 14:11:01 +00:00
|
|
|
Url: https://www.openfabrics.org/
|
2014-03-17 22:35:51 +00:00
|
|
|
|
2016-03-16 14:11:01 +00:00
|
|
|
Source0: https://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz
|
2008-06-30 23:33:50 +00:00
|
|
|
Source2: opensm.logrotate
|
2011-07-20 21:24:54 +00:00
|
|
|
Source4: opensm.sysconfig
|
2012-11-27 21:30:00 +00:00
|
|
|
Source5: opensm.service
|
|
|
|
Source6: opensm.launch
|
2012-12-05 19:07:18 +00:00
|
|
|
Source7: opensm.rwtab
|
2016-03-16 14:11:01 +00:00
|
|
|
Source8: opensm.partitions
|
2014-03-17 23:17:13 +00:00
|
|
|
Patch0: opensm-3.3.17-prefix.patch
|
2014-03-17 22:35:51 +00:00
|
|
|
|
2016-03-16 14:11:01 +00:00
|
|
|
BuildRequires: libibmad-devel >= 1.3.12, systemd, systemd-units
|
2016-03-16 14:21:40 +00:00
|
|
|
BuildRequires: bison, flex, byacc
|
2016-03-16 14:11:01 +00:00
|
|
|
%if %{__remake_config}
|
2016-03-16 14:21:40 +00:00
|
|
|
BuildRequires: libtool, autoconf, autoheader
|
2016-03-16 14:11:01 +00:00
|
|
|
%endif
|
2014-05-29 08:16:40 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}, logrotate, rdma
|
2012-12-05 17:57:11 +00:00
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
2010-01-11 19:26:54 +00:00
|
|
|
ExcludeArch: s390 s390x
|
2008-06-30 23:33:50 +00:00
|
|
|
|
|
|
|
%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
|
2014-05-29 08:16:40 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2008-06-30 23:33:50 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development environment for the opensm libraries
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static version of the opensm libraries
|
2014-05-29 08:16:40 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
2008-06-30 23:33:50 +00:00
|
|
|
%description static
|
|
|
|
Static version of opensm libraries
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-02-29 03:11:33 +00:00
|
|
|
%patch0 -p1 -b .prefix
|
2008-06-30 23:33:50 +00:00
|
|
|
|
|
|
|
%build
|
2016-03-16 14:11:01 +00:00
|
|
|
%if %{__remake_config}
|
|
|
|
./autogen.sh
|
|
|
|
%endif
|
|
|
|
%configure --with-opensm-conf-sub-dir=rdma CFLAGS="$CFLAGS -fno-strict-aliasing"
|
2008-06-30 23:33:50 +00:00
|
|
|
make %{?_smp_mflags}
|
2012-01-03 20:26:59 +00:00
|
|
|
cd opensm
|
2013-03-25 19:29:03 +00:00
|
|
|
./opensm -c ../opensm-%{version}.conf
|
2008-06-30 23:33:50 +00:00
|
|
|
|
|
|
|
%install
|
2011-07-20 21:24:54 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
2008-06-30 23:33:50 +00:00
|
|
|
# remove unpackaged files from the buildroot
|
2011-07-20 21:24:54 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -fr %{buildroot}%{_sysconfdir}/init.d
|
2013-03-25 19:29:03 +00:00
|
|
|
install -D -m644 opensm-%{version}.conf %{buildroot}%{_sysconfdir}/rdma/opensm.conf
|
2011-07-20 21:24:54 +00:00
|
|
|
install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/opensm
|
|
|
|
install -D -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/opensm
|
2012-11-27 21:30:00 +00:00
|
|
|
install -D -m644 %{SOURCE5} %{buildroot}%{_unitdir}/opensm.service
|
|
|
|
install -D -m755 %{SOURCE6} %{buildroot}%{_libexecdir}/opensm-launch
|
2012-12-05 19:07:18 +00:00
|
|
|
install -D -m644 %{SOURCE7} %{buildroot}%{_sysconfdir}/rwtab.d/opensm
|
2016-03-16 14:11:01 +00:00
|
|
|
install -D -m644 %{SOURCE8} %{buildroot}%{_sysconfdir}/rdma/partitions.conf
|
2008-06-30 23:33:50 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/cache/opensm
|
|
|
|
|
2012-12-05 17:57:11 +00:00
|
|
|
%post
|
|
|
|
%systemd_post opensm.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
# Don't use the macro because we need to remove our cache directory as well
|
|
|
|
# and the macro doesn't have the ability to do that. But, here the macro
|
|
|
|
# is for future reference:
|
|
|
|
# %systemd_preun opensm.service
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/bin/systemctl --no-reload disable opensm.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop opensm.service >/dev/null 2>&1 || :
|
|
|
|
rm -fr /var/cache/opensm
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart opensm.service
|
|
|
|
|
2008-06-30 23:33:50 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir /var/cache/opensm
|
|
|
|
%{_sbindir}/*
|
2014-05-29 08:16:40 +00:00
|
|
|
%{_mandir}/*/*
|
2012-11-27 21:30:00 +00:00
|
|
|
%{_unitdir}/*
|
|
|
|
%{_libexecdir}/*
|
2008-06-30 23:33:50 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/opensm
|
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/opensm.conf
|
2016-03-16 14:11:01 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/rdma/partitions.conf
|
2011-07-20 21:24:54 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/opensm
|
2012-12-05 19:07:18 +00:00
|
|
|
%{_sysconfdir}/rwtab.d/opensm
|
2008-06-30 23:33:50 +00:00
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/infiniband
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
|
|
|
|
%changelog
|
2017-02-11 00:58:00 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.20-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-06-10 11:45:16 +00:00
|
|
|
* Fri Jun 10 2016 Honggang Li <honli@redhat.com> - 3.3.20-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Resolves: bz1344691
|
|
|
|
|
2016-03-16 14:11:01 +00:00
|
|
|
* Wed Mar 16 2016 Doug Ledford <dledford@redhat.com> - 3.3.19-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Incorporate features from RHEL opensm
|
|
|
|
- Resolves: bz1124202
|
|
|
|
|
2016-02-04 11:33:40 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.17-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 00:05:33 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.17-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-17 14:06:07 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.17-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 16:59:46 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.17-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-29 08:16:40 +00:00
|
|
|
* Thu May 29 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 3.3.17-2
|
|
|
|
- Don't include manual page directories (#1089412).
|
|
|
|
- Use standard group Development/Libraries in library devel packages.
|
|
|
|
- Use %%?_isa in base package dependencies.
|
|
|
|
|
2014-03-17 22:35:51 +00:00
|
|
|
* Mon Mar 17 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.3.17-1
|
|
|
|
- Update to 3.3.17
|
|
|
|
|
2013-08-03 15:50:08 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.15-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-25 21:05:13 +00:00
|
|
|
* Mon Mar 25 2013 Doug Ledford <dledford@redhat.com> - 3.3.15-6
|
|
|
|
- Oops, forgot to remove the -B option to opensm when starting it
|
|
|
|
|
2013-03-25 19:29:03 +00:00
|
|
|
* Mon Mar 25 2013 Doug Ledford <dledford@redhat.com> - 3.3.15-5
|
|
|
|
- Drop the old sysv init script
|
|
|
|
- Fix opensm-launch to restart opensm in a loop. This works around the
|
|
|
|
fact that systemd starts opensm so early that we very well might not have
|
|
|
|
sync on the link yet. Without the physical link being up, opensm exits
|
|
|
|
immediately. This way opensm will get restarted every 30 seconds until
|
|
|
|
sync is active on the link or until the opensm service is stopped.
|
|
|
|
- Always install the newly generated opensm-%%{version}.conf as opensm.conf
|
|
|
|
- Make the launch work properly in the event that no GUIDs are set and
|
|
|
|
there are no numbered config files
|
|
|
|
|
2013-02-14 09:28:59 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.15-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-05 19:07:18 +00:00
|
|
|
* Wed Dec 05 2012 Doug Ledford <dledford@redhat.com> - 3.3.15-3
|
|
|
|
- Fix startup on read only root
|
|
|
|
- Update default config file
|
|
|
|
- Resolves: bz817591
|
|
|
|
|
2012-12-05 17:57:11 +00:00
|
|
|
* Wed Dec 05 2012 Doug Ledford <dledford@redhat.com> - 3.3.15-2
|
|
|
|
- More tweaks to systemd setup (proper scriptlets now)
|
|
|
|
- More tweaks to old sysv init script support (fix Requires)
|
|
|
|
|
2012-11-27 21:30:00 +00:00
|
|
|
* Tue Nov 27 2012 Doug Ledford <dledford@redhat.com> - 3.3.15-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Update to systemd startup
|
|
|
|
|
2012-07-20 07:05:06 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.13-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-13 17:10:18 +00:00
|
|
|
* Tue Mar 13 2012 Doug Ledford <dledford@redhat.com> - 3.3.13-2
|
|
|
|
- Fix the config file comment in the opensm init script
|
|
|
|
- Resolves: bz802727
|
|
|
|
|
2012-02-29 03:11:33 +00:00
|
|
|
* Tue Feb 28 2012 Doug Ledford <dledford@redhat.com> - 3.3.13-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
- Fix a minor issue in init scripts that would cause systemd to try and
|
|
|
|
start/stop things in the wrong order
|
|
|
|
- Add a patch to allow us to specify the subnet prefix on the command line
|
|
|
|
|
2012-01-03 20:26:59 +00:00
|
|
|
* Tue Jan 03 2012 Doug Ledford <dledford@redhat.com> - 3.3.12-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
|
2011-08-15 05:23:50 +00:00
|
|
|
* Mon Aug 15 2011 Kalev Lember <kalevlember@gmail.com> - 3.3.9-2
|
|
|
|
- Rebuilt for rpm bug #728707
|
|
|
|
|
2011-07-20 21:24:54 +00:00
|
|
|
* Wed Jul 20 2011 Doug Ledford <dledford@redhat.com> - 3.3.9-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
- Add /etc/sysconfig/opensm for use by opensm init script
|
|
|
|
- Enable the ability to start more than one instance of opensm for multiple
|
|
|
|
fabric support
|
|
|
|
- Enable the ability to start opensm with a priority other than default for
|
|
|
|
support of backup opensm instances
|
|
|
|
|
2011-02-09 03:29:18 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-03-08 16:49:23 +00:00
|
|
|
* Mon Mar 08 2010 Doug Ledford <dledford@redhat.com> - 3.3.5-1
|
|
|
|
- Update to latest upstream release. We need various defines in ib_types.h
|
|
|
|
for the latest ibutils package to build properly, and the latest ibutils
|
|
|
|
package is needed because we found licensing problems in the older
|
|
|
|
tarballs during review.
|
|
|
|
|
2010-01-11 19:26:54 +00:00
|
|
|
* Mon Jan 11 2010 Doug Ledford <dledford@redhat.com> - 3.3.3-2
|
|
|
|
- ExcludeArch s390(x) as there's no hardware support there
|
|
|
|
|
2009-12-03 20:02:53 +00:00
|
|
|
* Thu Dec 03 2009 Doug Ledford <dledford@redhat.com> - 3.3.3-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Minor tweaks to init script for LSB compliance
|
|
|
|
|
2009-07-25 20:53:03 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-20 20:06:57 +00:00
|
|
|
* Mon Jul 20 2009 Doug Ledford <dledford@redhat.com> - 3.3.2-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
|
2009-04-22 14:24:05 +00:00
|
|
|
* Wed Apr 22 2009 Doug Ledford <dledford@redhat.com> - 3.3.1-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
|
2009-03-06 10:44:02 +00:00
|
|
|
* Fri Mar 06 2009 Caolán McNamara <caolanm@redhat.com> - 3.2.1-3
|
|
|
|
- fix bare elifs to rebuild
|
|
|
|
|
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
|