forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathocaml-rrdd-plugin.spec
75 lines (64 loc) · 2.08 KB
/
ocaml-rrdd-plugin.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-rrdd-plugin
Version: 0.7.0
Release: 1%{?dist}
Summary: Plugin library for the XenServer RRD daemon
License: LGPL2.1 + OCaml linking exception
Group: Development/Other
URL: https://github.com/xapi-project/ocaml-rrdd-plugin/
Source0: https://github.com/xapi-project/ocaml-rrdd-plugin/archive/v0.7.0/ocaml-rrdd-plugin-0.7.0.tar.gz
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-xcp-rrd-devel
BuildRequires: ocaml-xcp-idl-devel
BuildRequires: forkexecd-devel
BuildRequires: ocaml-rrd-transport-devel
BuildRequires: ocaml-stdext-devel
BuildRequires: ocaml-xenstore-devel
BuildRequires: ocaml-xenstore-clients-devel
BuildRequires: ocaml-ocamldoc
%description
Plugin library for the XenServer RRD daemon.
%package devel
Summary: Development files for %{name}
Group: Development/Other
Requires: %{name} = %{version}-%{release}
Requires: forkexecd-devel%{?_isa}
Requires: ocaml-stdext-devel%{?_isa}
Requires: ocaml-xcp-idl-devel%{?_isa}
Requires: ocaml-xcp-rrd-devel%{?_isa}
Requires: ocaml-rrd-transport-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}.
%prep
%setup -q
%build
make
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libdir}/ocaml
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
make install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE
%{_libdir}/ocaml/rrdd-plugin
%exclude %{_libdir}/ocaml/rrdd-plugin/*.a
%exclude %{_libdir}/ocaml/rrdd-plugin/*.cmx
%exclude %{_libdir}/ocaml/rrdd-plugin/*.cmxa
%exclude %{_libdir}/ocaml/rrdd-plugin/*.mli
%files devel
%defattr(-,root,root)
%doc ChangeLog
%doc README.md
%{_libdir}/ocaml/rrdd-plugin/*.a
%{_libdir}/ocaml/rrdd-plugin/*.cmx
%{_libdir}/ocaml/rrdd-plugin/*.cmxa
%{_libdir}/ocaml/rrdd-plugin/*.mli
%changelog
* Tue Jul 8 2014 John Else <[email protected]> - 0.5.0-1
- Initial package