forked from oVirt/ovirt-hosted-engine-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ovirt-hosted-engine-setup.spec.in
113 lines (98 loc) · 3.43 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
#
# ovirt-hosted-engine-setup -- ovirt hosted engine setup
# Copyright (C) 2013-2015 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 engine ovirt-engine
%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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: python
Requires: python-ethtool >= 0.6-3
Requires: otopi >= 1.3.1
Requires: vdsm >= 4.17.0
Requires: vdsm-cli >= 4.17.0-537
Requires: vdsm-gluster >= 4.17.0
Requires: vdsm-python >= 4.17.0
Requires: ovirt-host-deploy >= 1.3.1
Requires: openssh-server
Requires: python-paramiko
Requires: virt-viewer
Requires: openssl
Requires: sudo
Requires: bind-utils
Requires: ovirt-hosted-engine-ha >= 1.3.0
Requires: sanlock >= 2.8
Requires: sanlock-python >= 2.8
Requires: lsof
Requires: iptables
BuildRequires: gettext
BuildRequires: python2-devel
Requires: %{engine}-sdk-python >= 3.6.0.0
%if 0%{?fedora}
Requires: qemu-img
%if %{fedora} >= 21
Requires: iptables-services
%endif
%endif
%if 0%{?rhel}
Requires: qemu-img-rhev >= 0.12.1.2-2.415
%if 0%{?rhel} >= 7
Requires: iptables-services
%endif
%endif
%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
rm -rf "%{buildroot}"
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
%files
%doc 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
* Fri Jul 11 2014 Sandro Bonazzola <[email protected]> - 1.3.0-0.0.master
- 1.3.0-0.0.master