forked from oVirt/ovirt-ansible-hosted-engine-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathovirt-ansible-hosted-engine-setup.spec.in
42 lines (32 loc) · 1.12 KB
/
ovirt-ansible-hosted-engine-setup.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
%global rolename hosted-engine-setup
%global roleprefix oVirt.
%global ansible_roles_dir ansible/roles
Name: @PACKAGE_NAME@
Summary: Ansible role to install required packages for oVirt Engine deployment, generate answerfile and run engine-setup with it.
Version: @RPM_VERSION@
Release: @RPM_RELEASE@%{?release_suffix}%{?dist}
Source0: http://resources.ovirt.org/pub/src/@PACKAGE_NAME@/@PACKAGE_NAME@-@[email protected]
License: ASL 2.0
Group: Virtualization/Management
BuildArch: noarch
Url: http://www.ovirt.org
Requires: ansible >= 2.6
Requires: python-netaddr
Requires: ovirt-ansible-engine-setup >= 1.1.5
Requires: ovirt-ansible-repositories >= 1.1.2
%description
This Ansible role installs required packages for oVirt Hosted-Engine deployment.
%prep
%setup -c -q
%build
%install
export PKG_DATA_DIR_ORIG=%{_datadir}/%{ansible_roles_dir}/%{roleprefix}%{rolename}
export PKG_DATA_DIR=%{buildroot}$PKG_DATA_DIR_ORIG
export PKG_DOC_DIR=%{buildroot}%{_pkgdocdir}
sh build.sh install
%files
%{_datadir}/%{ansible_roles_dir}/%{roleprefix}%{rolename}
%doc README.md
%doc examples/
%license LICENSE
%changelog