Bogus date fixed in polemarch. Not needed spec files moved to archive
This commit is contained in:
68
fedora/SPECS/archive/virt-backup.spec
Normal file
68
fedora/SPECS/archive/virt-backup.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
Summary: backup script for libvirt managed VM
|
||||
Name: virt-backup
|
||||
Version: 0.2.21
|
||||
Release: 1%{?dist}
|
||||
Source0: %{name}-%{version}-1.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
License: GPL
|
||||
Group: Virtualization
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Prefix: %{_prefix}
|
||||
Requires: lvm2
|
||||
Requires: util-linux
|
||||
Requires: lzop, bzip2, gzip, xz
|
||||
Requires: perl(Sys::Virt) => 0.2.3
|
||||
Requires: perl(XML::Simple)
|
||||
Requires: perl(LockFile::Simple)
|
||||
Requires: fuse, qemu
|
||||
|
||||
AutoReq: no
|
||||
|
||||
%description
|
||||
This package provides a helper script to backup
|
||||
libvirt managed virtual machines with minimal downtime
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%if %{?fedora}%{?rhel} <= 5
|
||||
sed -i -e "s|/sbin/lvcreate|/usr/sbin/lvcreate|g" \
|
||||
-e "s|/sbin/lvremove|/usr/sbin/lvremove|g" \
|
||||
-e "s|/sbin/lvs|/usr/sbin/lvs|g" \
|
||||
virt-backup
|
||||
%endif
|
||||
|
||||
# Install backup script
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}/
|
||||
%{__install} -m 0755 virt-backup $RPM_BUILD_ROOT%{_bindir}/
|
||||
|
||||
# Create backup dir
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/backup
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_bindir}/*
|
||||
%dir %attr(0770, qemu, qemu) %{_localstatedir}/lib/libvirt/backup
|
||||
|
||||
%changelog
|
||||
* Sun Apr 14 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- Initial build.
|
||||
|
||||
Reference in New Issue
Block a user