diff options
author | Martin Schwenke <martin@meltin.net> | 2008-10-14 17:25:02 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2008-10-14 17:25:02 +1100 |
commit | 7222bcb6ac05a872bc31a9483bf83865811a0df0 (patch) | |
tree | f4eff5e4879cfd788bff783dc9c9408076618ace /autocluster.spec.in | |
parent | 86f11ca93bbc4a96f651ddff142a0e06ec7ce514 (diff) | |
download | autocluster-7222bcb6ac05a872bc31a9483bf83865811a0df0.tar.gz autocluster-7222bcb6ac05a872bc31a9483bf83865811a0df0.tar.xz autocluster-7222bcb6ac05a872bc31a9483bf83865811a0df0.zip |
Add --with-release option to allow kickstart and yum templates to be
specified in one fell swoop. Add releases directory containing some
config files to support this. Add Makefile to allow "make install"
(also "make dist", generation of debian/changelog and
autocluster.spec). Add RPM spec file template and debian subdirectory
to allows building of packages. Add magic comments to main
autocluster script to allow installation directory to be substituted.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'autocluster.spec.in')
-rw-r--r-- | autocluster.spec.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/autocluster.spec.in b/autocluster.spec.in new file mode 100644 index 0000000..b1f4242 --- /dev/null +++ b/autocluster.spec.in @@ -0,0 +1,48 @@ +Summary: Automated environment for building virtual clusters +Packager: Martin Schwenke <martin@meltin.net> +Name: autocluster +Version: @@VERSION@@ +Release: 1 +Epoch: 0 +License: GNU GPL version 3 +Group: System Environment/Daemons +URL: git://git.samba.org/tridge/autocluster.git + +Source: autocluster-%{version}.tar.gz + +#Prereq: fileutils sed expect kvm libvirt + +Provides: autocluster = %{version} + +Prefix: /usr +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +KVM and libvirt-based virtual cluster generation environment for +testing clustered software. + +###################################################################### + +%prep +%setup -q + +%build +make prefix=%{_prefix} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install + +%clean +rm -rf $RPM_BUILD_ROOT + +###################################################################### + +%files +%defattr(-,root,root) + +%doc README examples/example.sh +%{_prefix}/share/autocluster +%{_bindir}/autocluster +%{_bindir}/vircmd +%{_bindir}/waitfor |