~ubuntu-branches/ubuntu/trusty/ibsim/trusty

« back to all changes in this revision

Viewing changes to ibsim.spec

  • Committer: Bazaar Package Importer
  • Author(s): Benoit Mortier
  • Date: 2009-10-21 19:36:00 UTC
  • Revision ID: james.westby@ubuntu.com-20091021193600-nn3g67dgfqcasag2
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
%define RELEASE  1.ofed1.4
 
3
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
 
4
 
 
5
Summary: InfiniBand fabric simulator for management
 
6
Name: ibsim
 
7
Version: 0.5
 
8
Release: 1.ofed1.4
 
9
License: GPLv2 or BSD
 
10
Group: System Environment/Libraries
 
11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
12
Source: http://www.openfabrics.org/downloads/ibsim-0.5.tar.gz
 
13
Url: http://openfabrics.org/
 
14
BuildRequires: libibmad-devel, libibcommon-devel, libibumad-devel
 
15
 
 
16
%description
 
17
ibsim provides simulation of infiniband fabric for using with OFA OpenSM, diagnostic and management tools.
 
18
 
 
19
%prep
 
20
%setup -q
 
21
 
 
22
%build
 
23
export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}"
 
24
export LDFLAGS="${LDFLAGS:-${RPM_OPT_FLAGS}}"
 
25
make prefix=%_prefix libpath=%_libdir binpath=%_bindir %{?_smp_mflags}
 
26
 
 
27
%install
 
28
export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}"
 
29
export LDFLAGS="${LDFLAGS:-${RPM_OPT_FLAGS}}"
 
30
make DESTDIR=${RPM_BUILD_ROOT} prefix=%_prefix libpath=%_libdir binpath=%_bindir install
 
31
 
 
32
%clean
 
33
rm -rf $RPM_BUILD_ROOT
 
34
 
 
35
%files
 
36
%defattr(-,root,root)
 
37
%{_libdir}/umad2sim/libumad2sim*.so*
 
38
%{_bindir}/ibsim
 
39
%doc README COPYING TODO net-examples scripts
 
40
 
 
41
%changelog