forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathocaml-libvhd.spec
70 lines (56 loc) · 1.82 KB
/
ocaml-libvhd.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
Version: 0.9.1
Release: 1
%global debug_package %{nil}
Name: ocaml-libvhd
Summary: VHD manipulation via libvhd
License: BSD3
URL: https://github.com/xapi-project/libvhd
Source0: https://github.com/xapi-project/libvhd/archive/libvhd-0.9.1.tar.gz
BuildRequires: libuuid-devel
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: xen-devel
BuildRequires: blktap-devel
%description
Simple C bindings which allow .vhd files to be manipulated.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: libuuid-devel%{?_isa}
Requires: xen-devel%{?_isa}
%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%setup -q -n libvhd-%{version}
%build
ocaml setup.ml -configure
make
%install
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
mkdir -p $OCAMLFIND_DESTDIR/stublibs
export OCAMLFIND_LDCONF=ignore
make install
%files
%doc ChangeLog
%doc README.md
%{_libdir}/ocaml/vhdlib
%exclude %{_libdir}/ocaml/vhdlib/*.a
%exclude %{_libdir}/ocaml/vhdlib/*.cmxa
%exclude %{_libdir}/ocaml/vhdlib/*.cmx
%exclude %{_libdir}/ocaml/vhdlib/*.mli
%{_libdir}/ocaml/stublibs/dllvhdlib_stubs.so
%{_libdir}/ocaml/stublibs/dllvhdlib_stubs.so.owner
%files devel
%{_libdir}/ocaml/vhdlib/*.a
%{_libdir}/ocaml/vhdlib/*.cmx
%{_libdir}/ocaml/vhdlib/*.cmxa
%{_libdir}/ocaml/vhdlib/*.mli
%changelog
* Thu Sep 4 2014 Jon Ludlam <[email protected]> - 0.9.1-3
- Remove dependency on xen-missing-headers
* Fri May 30 2014 Euan Harris <[email protected]> - 0.9.1-2
- Split files correctly between base and devel packages
* Wed May 29 2013 David Scott <[email protected]> - 0.9.1-1
- Initial package