Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Staging:C
opensm
opensm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opensm.spec of Package opensm
# # spec file for package opensm # # Copyright (c) 2015 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: opensm Summary: Infiniband Subnet Manager License: BSD-2-Clause or GPL-2.0 Group: Productivity/Networking/System Version: 3.3.19 Release: 0 Source0: https://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz Source1: conf.sysconfig Source2: %{name}.launch Source3: opensm.service Source4: baselibs.conf Patch0: opensm-autotools.patch Patch1: opensm-type_punning.patch Url: http://www.openfabrics.org BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: libibumad-devel BuildRequires: libibverbs-devel BuildRequires: libtool BuildRequires: systemd-rpm-macros PreReq: %fillup_prereq Requires: logrotate %{?systemd_requires} %define so_major 3 %define opensm_libname libs%{so_major} %description OpenSM provides an implementation for an InfiniBand Subnet Manager and Administration. Such a software entity is required to run for in order to initialize the InfiniBand hardware (at least one per each InfiniBand subnet). %package %{opensm_libname} Summary: Opensm runtime libraries Group: System/Libraries %description %{opensm_libname} This package contains the opensm runtime libraries. %package devel Summary: Development files for OpenSM Group: Development/Libraries/C and C++ Requires: %{name}-%{opensm_libname} = %{version} Requires: libibumad-devel %description devel Symlinks for the dynamic libraries and header files for OpenSM. %prep %setup -q %patch0 %patch1 cp %{S:1} %{S:2} %{S:3} . FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') sed -i -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" opensm/osm_console.c %build autoreconf -fi %configure --disable-static make %{?_smp_mflags} V=1 %install export NO_BRP_STALE_LINK_ERROR=yes make DESTDIR=%{buildroot} install install -D -m 644 scripts/opensm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/opensm # get rid of the included init script because we use a systemd unit file instead rm -rf %{buildroot}%_sysconfdir/init.d/ install -Dm 644 %{SOURCE3} %{buildroot}%_unitdir/%{name}.service install -D %{SOURCE2} %{buildroot}%{_libexecdir}/opensm-launch ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}d # install the sysconfig configuration file install -m 644 -D conf.sysconfig %{buildroot}/var/adm/fillup-templates/sysconfig.%name # and make a compat link ln -s %_sysconfdir/sysconfig/opensm %{buildroot}/%_sysconfdir/opensm.conf sed -i -e 's$-L/usr/src/packages/BUILD/%{name}-%{version}/complib$$g' %{buildroot}%{_libdir}/libosmvendor.la #we don't package static libraries anymore. rm -f %{buildroot}%_libdir/lib{opensm,osmcomp,osmvendor}.la %pre %service_add_pre opensm.service %post %{fillup_only} %service_add_post opensm.service %post %{opensm_libname} -p /sbin/ldconfig %preun %service_del_preun opensm.service %postun %service_del_postun opensm.service %postun %{opensm_libname} -p /sbin/ldconfig %files %defattr(-, root, root) %_sysconfdir/opensm.conf %doc COPYING %_unitdir/opensm.service %config %_sysconfdir/logrotate.d/opensm %_sbindir/* %{_libexecdir}/opensm-launch %_mandir/man5/torus-2QoS.conf.5.gz %_mandir/man8/torus-2QoS.8.gz %_mandir/man8/opensm.8.gz %_mandir/man8/osmtest.8.gz /var/adm/fillup-templates/sysconfig.%name %files %{opensm_libname} %defattr(-, root, root) %_libdir/libopensm.so.* %_libdir/libosmcomp.so.* %_libdir/libosmvendor.so.* %files devel %defattr(-,root,root) %_includedir/infiniband/complib/ %_includedir/infiniband/iba/ %_includedir/infiniband/opensm/ %_includedir/infiniband/vendor/ %_libdir/libopensm.so %_libdir/libosmcomp.so %_libdir/libosmvendor.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor