Summary: Cluster-based virtualization management software
Name: ganeti
Version: 2.8.1
-Release: 0.2
+Release: 0.4
License: GPL v2
Group: Applications/System
Source0: https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz
Source5: %{name}-rapi.init
Source6: %{name}-luxid.init
Source7: %{name}-mond.init
+Source8: %{name}.sysconfig
Patch0: fix-no-kvm.patch
Patch1: systemd.patch
Patch2: daemon-util-use-service.patch
Requires(post,preun,postun): systemd-units >= 38
Requires: bridge-utils
Requires: drbdsetup >= 8.0.12
-Requires: drbd-udev
Requires: iproute2
Requires: iputils-arping
Requires: lvm2
Requires: openssh-server
Requires: python
Requires: python-affinity
+Requires: python-bitarray
Requires: python-devel
Requires: python-distribute
Requires: python-ipaddr
--enable-confd=python \
--enable-socat-escape \
--with-ssh-initscript=/etc/rc.d/init.d/sshd \
- --with-ssh-config-dir=/stc/ssh \
+ --with-ssh-config-dir=/etc/ssh \
--with-xen-cmd=xl \
--with-kvm-path=/usr/bin/qemu-kvm
%{__sed} -i -e 's|@LIBDIR@|%{_libdir}|g' $RPM_BUILD_ROOT/etc/rc.d/init.d/ganeti-*
+cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/ganeti
+
cp -p doc/examples/bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/ganeti
cp -p doc/examples/ganeti.cron $RPM_BUILD_ROOT/etc/cron.d/ganeti
-cp -p doc/examples/ganeti.default $RPM_BUILD_ROOT/etc/sysconfig/ganeti
cp -p doc/examples/ganeti.target $RPM_BUILD_ROOT%{systemdunitdir}
cp -p doc/examples/ganeti.target $RPM_BUILD_ROOT%{systemdunitdir}
cp -p doc/examples/ganeti-{noded,masterd,rapi,confd,luxid,mond}.service $RPM_BUILD_ROOT%{systemdunitdir}