forked from oVirt/ovirt-hosted-engine-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathovirt-hosted-engine-setup.spec.in
125 lines (106 loc) · 3.73 KB
/
ovirt-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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#
# ovirt-hosted-engine-setup -- ovirt hosted engine setup
# Copyright (C) 2013-2016 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
%global package_version @PACKAGE_VERSION@
%global ovirt_hosted_engine_setup_templates %{_datadir}/%{name}/templates
%global ovirt_hosted_engine_setup_scripts %{_datadir}/%{name}/scripts
%global vdsmhooksdir %{_libexecdir}/vdsm/hooks
Summary: oVirt Hosted Engine setup tool
Name: @PACKAGE_NAME@
Version: @PACKAGE_RPM_VERSION@
Release: @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
License: LGPLv2+
URL: http://www.ovirt.org
Source: http://resources.ovirt.org/pub/ovirt-master-snapshot/src/%{name}/%{name}-%{package_version}.tar.gz
Group: Applications/System
BuildArch: noarch
Requires: bind-utils
Requires: genisoimage
Requires: iptables
Requires: iptables-services
Requires: libselinux-python
Requires: lsof
Requires: openssh-server
Requires: openssl
Requires: python
Requires: python-ethtool >= 0.6-3
Requires: python-netaddr
Requires: sanlock >= 2.8
Requires: sanlock-python >= 2.8
Requires: sudo
Requires: virt-viewer
BuildRequires: gettext >= 0.18.2
BuildRequires: python2-devel
%if 0%{?fedora}
Requires: qemu-img
%endif
%if 0%{?rhel}
Requires: qemu-img-rhev
%endif
Requires: otopi >= 1.4.0
Requires: ovirt-host-deploy >= 1.5.0
Requires: ovirt-hosted-engine-ha >= 2.0.0
Requires: ovirt-engine-sdk-python >= 3.6.3.0
Requires: ovirt-setup-lib >= 1.0.1
Requires: glusterfs-cli >= 3.7.3
Requires: vdsm >= 4.17.999-449
Requires: vdsm-cli >= 4.17.999-449
Requires: vdsm-python >= 4.17.999-449
# Dependencies that will be required by ovirt-host-deploy
# avoiding to have them installed in the middle of the setup
Requires: dmidecode
Requires: iproute
Requires: kexec-tools
Requires: m2crypto
Requires: ovirt-vmconsole-host
Requires: qemu-kvm-tools
Requires: socat
Requires: tar
Requires: tuned
Requires: util-linux
%description
Hosted Engine setup tool for oVirt project.
%prep
%setup -q -n %{name}-%{package_version}
%build
%configure \
--docdir="%{_docdir}/%{name}-%{version}" \
--disable-python-syntax-check \
%{?conf}
make %{?_smp_mflags}
%install
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%doc README
%dir %{_sysconfdir}/ovirt-hosted-engine-setup.env.d
%dir %{_sysconfdir}/ovirt-hosted-engine
%dir %{_localstatedir}/log/ovirt-hosted-engine-setup
%dir %{_localstatedir}/lib/ovirt-hosted-engine-setup
%dir %{_localstatedir}/lib/ovirt-hosted-engine-setup/answers
%{_sbindir}/hosted-engine
%{_sbindir}/%{name}
%{python_sitelib}/ovirt_hosted_engine_setup/
%{_datadir}/%{name}/
%{_mandir}/man8/*
#move to a separate package?
%{vdsmhooksdir}/before_vm_start/
%changelog
* Thu Aug 6 2015 Sandro Bonazzola <sbonazzo@redhat.com> - 2.0.0-0.0.master
- 2.0.0-0.0.master