-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnative-grid.spec.in
66 lines (49 loc) · 1.4 KB
/
native-grid.spec.in
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
62
63
64
65
66
Name: native-grid
Version: @VERSION@
Release: @RELEASE@%{?dist}
Summary: Fast, coherent grid computing in C
Group: System Environment/Daemons
License: Apache License, v2.0
URL: https://github.com/davidhoyt/native-grid/
Source0: https://github.com/davidhoyt/native-grid/files/%{name}-@[email protected]
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libevent-devel
Requires: initscripts
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
%description
native grid provides the software infrastructure for high performance,
coherent data grid computing.
%prep
%setup -q -n %{name}-@FULLVERSION@
%build
%configure
make %{?_smp_mflags}
%check
make test
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add %{name}
%preun
if [ "$1" = 0 ] ; then
/sbin/service %{name} stop > /dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
exit 0
%postun
if [ "$1" -ge 1 ]; then
/sbin/service %{name} condrestart > /dev/null 2>&1
fi
exit 0
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README doc/CONTRIBUTORS doc/*.txt
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%changelog
* Fri Oct 14 2011 David Hoyt <[email protected]> - 0.0.1-1
- Initial project setup.