forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathocaml-xenops.spec
96 lines (77 loc) · 2.6 KB
/
ocaml-xenops.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
%global debug_package %{nil}
Name: ocaml-xenops
Version: 0.9.6
Release: 1%{?dist}
Summary: Low-level xen control operations OCaml
License: LGPL
URL: https://github.com/xapi-project/xenops
Source0: https://github.com/xapi-project/xenops/archive/%{version}/xenops-%{version}.tar.gz
BuildRequires: ocaml
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-findlib
BuildRequires: ocaml-obuild
BuildRequires: xen-ocaml-devel
BuildRequires: ocaml-xenstore-clients-devel
BuildRequires: ocaml-xenstore-devel
BuildRequires: ocaml-xcp-idl-devel
BuildRequires: ocaml-xen-api-libs-transitional-devel
BuildRequires: xen-dom0-libs-devel
BuildRequires: xen-libs-devel
%description
Low-level xen control operations in OCaml.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: ocaml-xcp-idl-devel%{?_isa}
Requires: ocaml-stdext-devel%{?_isa}
Requires: xen-ocaml-devel%{?_isa}
Requires: ocaml-xenstore-devel%{?_isa}
Requires: ocaml-xenstore-clients-devel%{?_isa}
%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%package tools
Summary: Debugging tools for %{name}
Requires: xen-libs
Requires: xen-dom0-libs
BuildRequires: xen-devel
%description tools
A set of debugging tools which showcase the features of %{name}-devel.
%prep
%setup -q -n xenops-%{version}
%build
make
%install
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export OCAMLFIND_LDCONF=ignore
mkdir -p $OCAMLFIND_DESTDIR
mkdir -p %{buildroot}/%{_bindir}
make install BINDIR=%{buildroot}/%{_bindir}
%files
%doc ChangeLog
%doc LICENSE
%doc MAINTAINERS
%doc README.md
%{_libdir}/ocaml/xenops
%exclude %{_libdir}/ocaml/xenops/*.a
%exclude %{_libdir}/ocaml/xenops/*.cmxa
%exclude %{_libdir}/ocaml/xenops/*.cmx
%files devel
%{_libdir}/ocaml/xenops/*.a
%{_libdir}/ocaml/xenops/*.cmxa
%{_libdir}/ocaml/xenops/*.cmx
%files tools
%{_bindir}/list_domains
%changelog
* Fri Jun 6 2014 Jon Ludlam <[email protected]> - 0.9.6-1
- Update to 0.9.6
* Mon Jun 2 2014 Euan Harris <[email protected]> - 0.9.4-2
- Split files correctly between base and devel packages
* Thu May 8 2014 David Scott <[email protected]> - 0.9.4-1
- Update to 0.9.4, add list_domains binary
* Wed Sep 25 2013 David Scott <[email protected]> - 0.9.2-1
- Update to 0.9.2
* Tue Sep 10 2013 David Scott <[email protected]>
- Update to 0.9.1
* Tue Jun 18 2013 David Scott <[email protected]>
- Initial package