forked from xapi-project/xen-api-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xapi-libs.spec.in
92 lines (73 loc) · 2.22 KB
/
xapi-libs.spec.in
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
# -*- rpm-spec -*-
Summary: xapi-libs - xen toolstack for XCP libraries
Name: xapi-libs
Version: 0.1
Release: @RPM_RELEASE@
Group: System/Hypervisor
License: LGPL+linking exception
URL: http://www.xen.org
Source0: xapi-libs-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: ocaml, ocaml-findlib, ocaml-camlp4, ocaml-type-conv, ocaml-getopt, ocaml-xmlm, ocaml-xmlm-devel, autoconf, automake, xen-devel, blktap-devel, e2fsprogs-devel
%description
The xapi toolstack development libraries and tools.
%package utils
Summary: Some utilities associated with the xapi toolstack
Group: System/Hypervisor
%description utils
Some miscellaneous utilities
%package devel
Summary: The xapi toolstack development libraries
Group: System/Hypervisor
%description devel
This package contains core development libraries required for building xapi.
%package fe
Summary: The fork-and-exec daemon
Group: System/Hypervisor
%description fe
This package contains the fork-and-exec daemon, required by xapi at runtime.
%prep
%setup -q
%build
sh autogen.sh
./configure
%{__make}
%{__make} test
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT %{__make} install
%clean
rm -rf $RPM_BUILD_ROOT
%post fe
[ ! -x /sbin/chkconfig ] || chkconfig --add fe
%files fe
%defattr(-,root,root,-)
/opt/xensource/libexec/fe
/etc/rc.d/init.d/fe
/opt/xensource/libexec/fe_cli
/opt/xensource/libexec/fe_test
%files utils
%defattr(-,root,root,-)
/opt/xensource/libexec/base64pp
/opt/xensource/libexec/closeandexec
/opt/xensource/libexec/pciutil
/opt/xensource/libexec/sexprpp
/opt/xensource/libexec/xmlpp
/opt/xensource/libexec/extentlistset_test
%files devel
%defattr(-,root,root,-)
%{_libdir}/ocaml/*/META
%{_libdir}/ocaml/*/*.cm[i|o|a|x]
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.[o|a]
%{_libdir}/ocaml/*/*.so
%{_libdir}/ocaml/*/*.so.owner
%exclude %{_libdir}/ocaml/close-and-exec/closeandexec_main.cmx
%exclude %{_libdir}/ocaml/pciutil/pciutil_main.cmx
%exclude %{_libdir}/ocaml/sexpr/sexprpp.cmx
%exclude %{_libdir}/ocaml/stdext/base64_main.cmx
%exclude %{_libdir}/ocaml/stdext/fe_cli.cmx
%exclude %{_libdir}/ocaml/stdext/fe_test.cmx
%exclude %{_libdir}/ocaml/xml-light2/xmlpp.cmx
%exclude %{_libdir}/ocaml/*/*.sp?t
%changelog