1 Star 0 Fork 7

李振华/opensm

forked from src-openEuler/opensm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
opensm.spec 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
compile_success 提交于 2020-02-14 12:39 . init
Name: opensm
Version: 3.3.20
Release: 11
Summary: InfiniBand Subnet Manager and Administrator
License: GPLv2 or BSD
URL: https://www.openfabrics.org/
Source0: https://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz
Source1: opensm.logrotate
Source2: opensm.service
Source3: opensm.launch
Source4: opensm.rwtab
BuildRequires: byacc flex libibumad-devel
Requires: logrotate rdma
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
ExcludeArch: %{arm}
Provides: opensm-libs = %{version}-%{release}
Provides: opensm-libs%{?_isa} = %{version}-%{release}
Obsoletes: opensm-libs < %{version}-%{release}
%description
OpenSM provides an implementation for an InfiniBand Subnet Manager and
Administrator. Such a software entity is required to run for in order
to initialize the InfiniBand hardware (at least one per each
InfiniBand subnet).
The full list of OpenSM features is described in the user manual
provided in the doc sub directory.
%package devel
Summary: Development files for opensm
Requires: %{name} = %{version}-%{release}
Provides: opensm-static = %{version}-%{release}
Provides: opensm-static%{?_isa} = %{version}-%{release}
Obsoletes: opensm-static < %{version}-%{release}
%description devel
This package contains libraries for developing applications that use
opensm and static version of opensm libraries
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --with-opensm-conf-sub-dir=rdma \
CFLAGS="$CFLAGS -fno-strict-aliasing"
make %{?_smp_mflags}
cd opensm
./opensm -c ../opensm-%{version}.conf
%install
%make_install
%delete_la
rm -fr %{buildroot}%{_sysconfdir}/init.d
install -D -m644 opensm-%{version}.conf %{buildroot}%{_sysconfdir}/rdma/opensm.conf
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/opensm
install -D -m644 %{SOURCE2} %{buildroot}%{_unitdir}/opensm.service
install -D -m755 %{SOURCE3} %{buildroot}%{_libexecdir}/opensm-launch
install -D -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rwtab.d/opensm
mkdir -p ${RPM_BUILD_ROOT}/var/cache/opensm
%preun
%systemd_preun opensm.service
%post
%systemd_post opensm.service
/sbin/ldconfig
%postun
rm -rf /var/cache/opensm
%systemd_postun_with_restart opensm.service
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING AUTHORS
%dir /var/cache/opensm
%config(noreplace) %{_sysconfdir}/logrotate.d/opensm
%config(noreplace) %{_sysconfdir}/rdma/opensm.conf
%{_sysconfdir}/rwtab.d/opensm
%{_unitdir}/*
%{_libdir}/*.so.*
%{_libexecdir}/opensm-launch
%{_sbindir}/opensm
%{_sbindir}/osmtest
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/infiniband
%{_libdir}/lib*.a
%files help
%defattr(-,root,root)
%doc ChangeLog INSTALL README NEWS
%{_mandir}/man5/*5*
%{_mandir}/man8/*8*
%changelog
* Mon Nov 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.3.20-10
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li_zhen_hua/opensm.git
git@gitee.com:li_zhen_hua/opensm.git
li_zhen_hua
opensm
opensm
master

搜索帮助