forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathocaml-gnt.spec
75 lines (63 loc) · 2.19 KB
/
ocaml-gnt.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
%define debug_package %{nil}
Name: ocaml-gnt
Version: 2.2.2
Release: 1%{?dist}
Summary: OCaml bindings for userspace Xen grant table controls
License: ISC
URL: https://github.com/xapi-project/ocaml-gnt/
Source0: https://github.com/xapi-project/ocaml-gnt/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: ocaml
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-findlib
BuildRequires: ocaml-cstruct-devel
BuildRequires: ocaml-io-page-devel
BuildRequires: ocaml-lwt-devel
BuildRequires: ocaml-cmdliner-devel
BuildRequires: ocaml-mirage-profile-devel
BuildRequires: xen-dom0-libs-devel
Requires: ocaml
Requires: ocaml-findlib
Requires: xen-dom0-libs
%description
These APIs allow programs running in userspace to share memory with other
domains on the same host. This can be used to (for example) implement disk
or network backends.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: ocaml-mirage-profile-devel%{?_isa}
Requires: ocaml-io-page-devel%{?_isa}
Requires: xen-dom0-libs-devel%{?_isa}
%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%setup -q
%build
make
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libdir}/ocaml
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
export OCAMLFIND_LDCONF=%{buildroot}%{_libdir}/ocaml/ld.conf
ocaml setup.ml -install
%files
%doc CHANGES README.md
%{_libdir}/ocaml/xen-gnt
%exclude %{_libdir}/ocaml/xen-gnt/*.a
%exclude %{_libdir}/ocaml/xen-gnt/*.cmxa
%exclude %{_libdir}/ocaml/xen-gnt/*.cmx
%exclude %{_libdir}/ocaml/xen-gnt/*.mli
%files devel
%{_libdir}/ocaml/xen-gnt/*.a
%{_libdir}/ocaml/xen-gnt/*.cmx
%{_libdir}/ocaml/xen-gnt/*.cmxa
%{_libdir}/ocaml/xen-gnt/*.mli
%changelog
* Thu Jan 28 2016 Andrew Cooper <[email protected]> - 2.2.2-1
- Update to version 2.2.2
* Thu Sep 4 2014 Jon Ludlam <[email protected]> - 1.0.0-2
- Remove dependency on xen-missing-headers
* Sat Apr 26 2014 David Scott <[email protected]> - 1.0.0-1
- Initial package