-
Notifications
You must be signed in to change notification settings - Fork 11
/
make.spec
61 lines (51 loc) · 1.31 KB
/
make.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
60
61
define make_spec
Summary: Open Resilency Cluster Management implementation.
Name: orcm
Version: $(version)
Release: $(release)
License: See COPYING
Group: System Environment/Libraries
Vendor: Intel Corporation
URL: https://bitbucket.org/rhc/orcm/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Prefix: /usr
%{!?configure_flags: %define configure_flags ""}
%description
orcm is a opensource resilency cluster management software implementation.
%prep
%setup -q -c -T -a 0
%build
./autogen.pl
mkdir -p obj
cd obj
pwd
cp ../contrib/platform/intel/bend/linux-orcm-intel* .
sed -e s/hostname/${HOSTNAME}/g ../contrib/platform/intel/bend/linux-orcm-intel.xml > linux-orcm-intel.xml
../configure %{configure_flags} --prefix=/usr --libdir=/usr/lib --with-platform=linux-orcm-intel
exit
$(make_prefix) $(MAKE) $(make_postfix)
#$(MAKE) build_doc
%install
cd obj
make DESTDIR=%{buildroot} install
$(extra_install)
%clean
%files
%defattr(-,root,root,-)
/usr/etc/orcm-site.xml
/usr/etc/openmpi-default-hostfile
/usr/etc/openmpi-mca-params.conf
/usr/bin/*
/usr/lib/*
/usr/include/openmpi/*
%doc /usr/share/open-rcm/*
%doc /usr/share/openmpi/*
%doc /usr/share/man/man1/*
%doc /usr/share/man/man7/*
$(extra_files)
%changelog
* Mon Mar 10 2014 mic <mic@localhost> -
- Initial build.
endef
export make_spec