-
Notifications
You must be signed in to change notification settings - Fork 0
/
virt-thinclone.spec
52 lines (40 loc) · 1.23 KB
/
virt-thinclone.spec
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
Summary: Virtualmachine ThinProvisioning Clone Tool
Name: virt-thinclone
Provides: virt-thinclone
Version: 0.0.3
Release: 1%{?dist}
License: GPLv2+
Group: Development/Libraries
Packager: Kazuhisa Hara <[email protected]>
URL: https://github.com/kazuhisya/virt-thinclone
Source0: virt-thinclone-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Requires: ruby
Requires: ruby-libvirt
Requires: libvirt
Requires: libvirt-client
Requires: qemu-img
Requires: python-virtinst
Requires: guestfish
%description
Provides the Virtualmachine ThinProvisioning Clone Tool.
%prep
#%setup
%build
cd %{_sourcedir}
tar zxvf %{_sourcedir}/virt-thinclone-%{version}.tar.gz
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local/bin $RPM_BUILD_ROOT/usr/share/doc/virt-thinclone-%{version}
cp -Rp %{_sourcedir}/virt-thinclone-%{version}/virt-thinclone $RPM_BUILD_ROOT/usr/local/bin
cp -Rp %{_sourcedir}/virt-thinclone-%{version}/README $RPM_BUILD_ROOT/usr/share/doc/virt-thinclone-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/local/bin/virt-thinclone
/usr/share/doc/virt-thinclone-%{version}/README
%changelog
* Fri Jun 24 2011 Kazuhisa Hara <[email protected]>
- Initial version