forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxenvm.spec
102 lines (88 loc) · 3.24 KB
/
xenvm.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Name: xenvm
Version: 0.2.0
Release: 5%{?dist}
Summary: A compatible replace for LVM supporting thinly provisioned volumes
License: LGPL
URL: https://github.com/xapi-project/xenvm
Source0: https://github.com/xapi-project/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: refresh-demo
Source2: resize-demo
Source3: xenvm-bugtool1.xml
Source4: xenvm-bugtool2.xml
Source5: xenvm_diagnostics
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-cmdliner-devel
BuildRequires: ocaml-rpc-devel
BuildRequires: ocaml-sexplib-devel
BuildRequires: ocaml-lwt-devel
BuildRequires: ocaml-mirage-block-unix-devel
BuildRequires: ocaml-cohttp-devel
BuildRequires: ocaml-camldm-devel
BuildRequires: ocaml-ounit-devel
BuildRequires: ocaml-mirage-clock-unix-devel
BuildRequires: ocaml-mirage-block-volume-devel
BuildRequires: ocaml-uuidm-devel
BuildRequires: ocaml-shared-block-ring-devel
BuildRequires: ocaml-io-page-devel
BuildRequires: ocaml-ctypes-devel
BuildRequires: ocaml-rrdd-plugin-devel
BuildRequires: ocaml-flock-devel
BuildRequires: device-mapper-devel
BuildRequires: libffi-devel
BuildRequires: oasis
%description
A compatible replacement for LVM supporting thinly provisioned volumes.
%prep
%setup -q -n xenvm-%{version}
cp %{SOURCE3} xenvm.xml
cp %{SOURCE4} stuff.xml
cp %{SOURCE5} xenvm_diagnostics
%build
make
%install
mkdir -p %{buildroot}/%{_sbindir}
install xenvmd.native %{buildroot}/%{_sbindir}/xenvmd
mkdir -p %{buildroot}/%{_bindir}
install xenvm.native %{buildroot}/%{_bindir}/xenvm
install local_allocator.native %{buildroot}/%{_bindir}/xenvm-local-allocator
mkdir -p %{buildroot}/opt/xensource/sm
cp %{SOURCE1} %{buildroot}/opt/xensource/sm
cp %{SOURCE2} %{buildroot}/opt/xensource/sm
mkdir -p %{buildroot}/etc/xenvm.d
mkdir -p %{buildroot}/var/lib/xenvmd
mkdir -p %{buildroot}/etc/xensource/bugtool/xenvm
install -m 0644 xenvm.xml %{buildroot}/etc/xensource/bugtool/xenvm.xml
install -m 0644 stuff.xml %{buildroot}/etc/xensource/bugtool/xenvm/stuff.xml
mkdir -p %{buildroot}/opt/xensource/libexec
install -m 0755 xenvm_diagnostics %{buildroot}/opt/xensource/libexec/xenvm_diagnostics
%files
%doc README.md
%{_sbindir}/xenvmd
%{_bindir}/xenvm
%{_bindir}/xenvm-local-allocator
/etc/xenvm.d
/opt/xensource/sm/refresh-demo
/opt/xensource/sm/resize-demo
/var/lib/xenvmd
/etc/xensource/bugtool/xenvm/stuff.xml
/etc/xensource/bugtool/xenvm.xml
/opt/xensource/libexec/xenvm_diagnostics
%changelog
* Thu Sep 17 2015 Si Beaumont <[email protected]> - 0.2.0-5
- Fix xen-bugtool plugin config file collection
- Add rings to xen-bugtool
* Tue Aug 11 2015 Jon Ludlam <[email protected]> - 0.2.0-4
- Add xen-bugtool plugin
* Mon Jul 27 2015 Jon Ludlam <[email protected]> - 0.2.0-3
- Create /var/lib/xenvmd
* Fri May 15 2015 David Scott <[email protected]> - 0.2.0-2
- Create /etc/xenvm.d
* Tue Apr 28 2015 David Scott <[email protected]> - 0.2.0-1
- Update to 0.2.0-1
* Thu Apr 23 2015 Jon Ludlam <[email protected]> - 0.1.0-3
- Add local allocator
* Wed Apr 22 2015 Jon Ludlam <[email protected]> - 0.1.0-2
- Add xenvm CLI
* Mon Apr 20 2015 Jon Ludlam <[email protected]> - 0.1.0-1
- Initial package