forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvhd-tool.spec
79 lines (63 loc) · 2.36 KB
/
vhd-tool.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
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
# -*- rpm-spec -*-
Summary: Command-line tools for manipulating and streaming .vhd format files
Name: vhd-tool
Version: 0.7.5
Release: 2%{?dist}
License: LGPL+linking exception
URL: https://github.com/xapi-project/vhd-tool
Source0: https://github.com/xapi-project/vhd-tool/archive/v%{version}/vhd-tool-%{version}.tar.gz
Source1: vhd-tool-sparse_dd-conf
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-vhd-devel
BuildRequires: ocaml-xcp-idl-devel
BuildRequires: ocaml-lwt-devel
BuildRequires: ocaml-nbd-devel
BuildRequires: ocaml-tapctl-devel
BuildRequires: ocaml-cmdliner-devel
BuildRequires: ocaml-xenstore-devel
BuildRequires: ocaml-io-page-devel
BuildRequires: ocaml-sha-devel
BuildRequires: ocaml-tar-devel
BuildRequires: ocaml-xenstore-clients-devel
%description
Simple command-line tools for manipulating and streaming .vhd format file.
%prep
%setup -q
cp %{SOURCE1} vhd-tool-sparse_dd-conf
%build
./configure --bindir %{buildroot}/%{_bindir} --libexecdir %{buildroot}/%{_libexecdir}/xapi --etcdir %{buildroot}/etc
make
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_libexecdir}/xapi
mkdir -p %{buildroot}/etc
install -m 755 sparse_dd.native %{buildroot}/%{_libexecdir}/xapi/sparse_dd
install -m 755 main.native %{buildroot}/%{_bindir}/vhd-tool
install -m 644 src/sparse_dd.conf %{buildroot}/etc/sparse_dd.conf
install -m 755 get_vhd_vsize.native %{buildroot}/%{_libexecdir}/xapi/get_vhd_vsize
%files
%{_bindir}/vhd-tool
/etc/sparse_dd.conf
%{_libexecdir}/xapi/sparse_dd
%{_libexecdir}/xapi/get_vhd_vsize
%changelog
* Thu Oct 1 2015 Jon Ludlam <[email protected]> - 0.7.5-2
- Add get_vhd_vsize
* Fri Jun 6 2014 Jonathan Ludlam <[email protected]> - 0.7.5-1
- Update to 0.7.5
* Wed Apr 9 2014 Euan Harris <[email protected]> - 0.7.4-1
- Update to 0.7.4 - fix handling of tar file prefixes
* Wed Apr 2 2014 Euan Harris <[email protected]> - 0.7.3-1
- Update to 0.7.3
* Thu Nov 21 2013 David Scott <[email protected]> - 0.6.4-1
- Update to 0.6.4
* Fri Oct 25 2013 David Scott <[email protected]> - 0.6.1-1
- Update to 0.6.1
* Wed Oct 02 2013 David Scott <[email protected]> - 0.6.0-1
- Update to 0.6.0
* Fri Sep 27 2013 David Scott <[email protected]> - 0.5.1-1
- Update to 0.5.1
* Mon Sep 23 2013 David Scott <[email protected]> - 0.5.0-1
- Initial package