summaryrefslogtreecommitdiffstats
path: root/autocluster.spec.in
blob: 9d7ffa0c13a28c169e824da109be8a00af9ca4ee (plain)
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
Summary: Automated environment for building virtual clusters
Packager: Martin Schwenke <martin@meltin.net>
Name: autocluster
Version: @@VERSION@@
Release: 1
Epoch: 0
License: GNU GPL version 3
Group: System Environment/Daemons
URL: git://git.samba.org/autocluster.git

Source: autocluster-%{version}.tar.gz

Provides: autocluster = %{version}
Requires: coreutils, sed
# Pick one:
Requires: python, python-ipaddress
#Requires: python3
Requires: ansible >= 2.4

Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch

%description
KVM and libvirt-based virtual cluster generation environment for
testing clustered software.

######################################################################

%prep
%setup -q

%build
make prefix=%{_prefix}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

######################################################################

%files
%defattr(-,root,root)

%doc README ChangeLog example.yml
%dir %{_prefix}/share/autocluster
%{_prefix}/share/autocluster/*
%{_bindir}/autocluster