-
Notifications
You must be signed in to change notification settings - Fork 5
/
cbox.spec.in
96 lines (83 loc) · 2.85 KB
/
cbox.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
ExclusiveArch: x86_64
Name: cbox
Version: RPM_VERSION
Release: 0%{?dist}
Summary: Cluster in a Box
License: GPLv2
URL: https://github.com/fabbione/cbox.git
Source0: cbox-VERSION.tar.bz2
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: qemu-system-x86
BuildRequires: virt-install
Requires: qemu-system-x86
Requires: virt-install
%description
The cbox is a tool for provisioning of several virtual machines at the same
time. Use at your own risk or do not use at all.
%prep
%setup -q -n %{name}-VERSION
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/cbox
%make_install
%files
%defattr(-,root,root,-)
%{_sbindir}/cbox
%dir %{_datadir}/cbox
%{_datadir}/cbox/fedora-13.ks
%{_datadir}/cbox/fedora-14.ks
%{_datadir}/cbox/fedora-15.ks
%{_datadir}/cbox/fedora-16.ks
%{_datadir}/cbox/fedora-17.ks
%{_datadir}/cbox/fedora-18.ks
%{_datadir}/cbox/fedora-21.ks
%{_datadir}/cbox/fedora-22.ks
%{_datadir}/cbox/fedora-rawhide.ks
%{_datadir}/cbox/centos-7.1.ks
%dir %{_datadir}/cbox/hooks
%{_datadir}/cbox/hooks/01_host_update
%{_datadir}/cbox/hooks/02_host_install_packages
%{_datadir}/cbox/hooks/03_host_net_setup
%{_datadir}/cbox/hooks/04_host_fence_setup
%{_datadir}/cbox/hooks/05_host_create_ssh_keys
%{_datadir}/cbox/hooks/06_host_create_guest_kickstart
%{_datadir}/cbox/hooks/07_host_ntp_setup
%{_datadir}/cbox/hooks/50_guest_create
%{_datadir}/cbox/hooks/51_guest_mount
%{_datadir}/cbox/hooks/52_guest_net_setup
%{_datadir}/cbox/hooks/53_guest_fstab_setup
%{_datadir}/cbox/hooks/54_guest_install_ssh_keys
%{_datadir}/cbox/hooks/55_guest_create_cluster_conf
%{_datadir}/cbox/hooks/55_guest_create_corosync_conf
%{_datadir}/cbox/hooks/56_fix_ntp_conf
%{_datadir}/cbox/hooks/58_guest_apply_hacks_prerun
%{_datadir}/cbox/hooks/59_guest_umount
%{_datadir}/cbox/hooks/60_guest_create_first_node
%{_datadir}/cbox/hooks/60_guest_create_shared_disk
%{_datadir}/cbox/hooks/61_guest_create_driver_node
%{_datadir}/cbox/hooks/61_guest_start_first
%{_datadir}/cbox/hooks/62_guest_setup_clvmd
%{_datadir}/cbox/hooks/63_guest_setup_gfs2
%{_datadir}/cbox/hooks/64_guest_setup_qdiskd
%{_datadir}/cbox/hooks/67_guest_enable_daemons
%{_datadir}/cbox/hooks/68_guest_apply_hacks_live
%{_datadir}/cbox/hooks/69_guest_stop_first
%{_datadir}/cbox/hooks/70_guest_clone_nodes
%{_datadir}/cbox/hooks/71_guest_apply_hacks_prerun
%{_datadir}/cbox/hooks/71_guest_autostart_nodes
%{_datadir}/cbox/hooks/72_guest_start_nodes
%{_datadir}/cbox/hooks/73_guest_driver_node_postrun
%{_datadir}/cbox/hooks/74-guest_apply_hacks_running
%{_datadir}/cbox/hooks/99_final_cleanup
%{_datadir}/cbox/libvirt_template.xml
%{_datadir}/cbox/packages_ceph.ks
%{_datadir}/cbox/packages_cman.ks
%{_datadir}/cbox/packages_corosync.ks
%doc %{_mandir}/man8/cbox.8*
%{_localstatedir}/log/cbox
%changelog