-
Notifications
You must be signed in to change notification settings - Fork 4
/
xdmod-federated.spec.in
62 lines (54 loc) · 1.98 KB
/
xdmod-federated.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
Name: xdmod-federated
Version: __VERSION__
Release: __RELEASE__%{?dist}
Summary: Federated module for Open XDMoD
URL: http://federated.xdmod.org/
Vendor: Center for Computational Research, University at Buffalo
Packager: XDMoD <ccr-xdmod-list@listserv.buffalo.edu>
Group: Applications/Internet
License: LGPLv3+
Source: %{name}-%{version}__PRERELEASE__.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}__PRERELEASE__-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: php-cli
Requires: xdmod >= 9.5.0
Requires: patch, ruby
%description
This package provides federated support for Open XDMoD. This module provides the
ability to have multiple disparate Open XDMoD installations replicate raw data
to a Hub server to provide an overview of all systems.
%prep
%setup -q -n %{name}-%{version}__PRERELEASE__
%pre
getent group tungsten >/dev/null || groupadd -r tungsten
getent passwd tungsten >/dev/null || \
useradd -r -M -c "Open XDMoD Tungsten" -g tungsten tungsten
mkdir -p /opt/continuent/{software/conf,software/replicator.conf}
chown -R tungsten:tungsten /opt/continuent
find /opt/continuent/ -type d -exec chmod 755 {} \;
exit 0
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT ./install \
--quiet \
--bindir=%{_bindir} \
--libdir=%{_libdir}/xdmod \
--sysconfdir=%{_sysconfdir}/xdmod \
--datadir=%{_datadir}/xdmod \
--docdir=%{_docdir}/%{name}-%{version}__PRERELEASE__ \
--crondconfdir=%{_sysconfdir}/cron.d
%post
mv %{_sysconfdir}/xdmod/security-limits-d-10-xdmod.conf %{_sysconfdir}/security/limits.d/10-xdmod.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_datadir}/xdmod/
%{_docdir}/%{name}-%{version}__PRERELEASE__/
%{_sysconfdir}/xdmod/
%{_bindir}/xdmod-fed-*
%changelog
* Thu May 16 2019 XDMoD <ccr-xdmod-list@listserv.buffalo.edu> 8.1.2-1.0
- Release 8.1.2
* Fri Mar 30 2018 XDMoD <ccr-xdmod-list@listserv.buffalo.edu> 8.0.0-0.5
- Initial Beta