forked from jcftang/php-slurm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php-slurm.spec
74 lines (52 loc) · 1.88 KB
/
php-slurm.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
62
63
64
65
66
67
68
69
70
71
72
73
Name: php-slurm
Version: 1.0
Release: 6%{?dist}
Summary: PHP extension for SLURM
Group: System
License: GPLv2
#URL: TBD
Source0: php-slurm-1.0.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: slurm-devel >= 2.2.0, php-devel, php-cli
Requires: slurm >= 2.2.0, php, httpd
%description
PHP extension for SLURM.
This is PHP extensions goal is to provide just enough functionality to
a web developer read data from the slurm controller daemon to create
a *status* or *monitoring* application which can be viewed by the
end user. All the code has been written by 'Vermeulen Peter' with
contributions from TCHPC staff.
%prep
%setup -q
%build
phpize
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
INSTALL_ROOT=$RPM_BUILD_ROOT make install
install -D etc/php.d/slurm_php.ini $RPM_BUILD_ROOT/etc/php.d/slurm_php.ini
install -D etc/httpd/conf.d/slurm_php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/slurm_php.conf
%{__mkdir} -p %{buildroot}/%{_datadir}/%{name}
%{__cp} -ad ./examples/* %{buildroot}/%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README AUTHORS RELEASE_NOTES
%{_libdir}/*
%config(noreplace) %{_sysconfdir}/httpd/conf.d/slurm_php.conf
%config(noreplace) %{_sysconfdir}/php.d/slurm_php.ini
%{_datadir}/%{name}
%changelog
* Tue Apr 12 2011 Jimmy Tang <[email protected]> - 1.0-6
Update example site to show functionality of module
* Mon Apr 04 2011 Jimmy Tang <[email protected]> - 1.0-5
Re-organise sample site
* Mon Apr 04 2011 Jimmy Tang <[email protected]> - 1.0-4
Added example configuration and sample site
* Mon Apr 04 2011 Jimmy Tang <[email protected]> - 1.0-3
Enable module when rpm is installed
* Fri Apr 01 2011 Jimmy Tang <[email protected]> - 1.0-2
Initial creation of spec file