-
Notifications
You must be signed in to change notification settings - Fork 2
/
open-mx.spec
59 lines (49 loc) · 1.68 KB
/
open-mx.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Open-MX
# Copyright © inria 2007-2010 (see AUTHORS file)
#
# The development of this software has been funded by Myricom, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See the GNU General Public License in COPYING.GPL for more details.
%define debug_package %{nil}
Summary: Open-MX: Myrinet Express over Generic Ethernet Hardware
Name: open-mx
Version: 1.5.2.90
Release: 0
License: GPL
Group: System Environment/Libraries
Packager: Brice Goglin
Source: open-mx-%{version}.tar.gz
Provides: mx
BuildRoot: /var/tmp/%{name}-%{version}-build
%description
Open-MX is a high-performance implementation of the Myrinet Express message-passing stack over generic Ethernet networks. It provides application-level and wire-protocol compatibility with the native MXoE (Myrinet Express over Ethernet) stack.
See http://open-mx.org/ for details.
%prep
%setup -n open-mx-%{version}
%build
./configure --prefix=/opt/open-mx-%{version}
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
mkdir -p $RPM_BUILD_ROOT/etc/init.d
DESTDIR=$RPM_BUILD_ROOT $RPM_BUILD_ROOT/opt/open-mx-%{version}/sbin/omx_local_install
%clean
rm -rf $RPM_BUILD_ROOT
%post
%files
%defattr(-, root, root)
/opt
/etc/init.d/open-mx
%config(noreplace)
/etc/open-mx/open-mx.conf
/etc/udev/rules.d/10-open-mx.rules