1 |
Name: opam |
2 |
Version: 1.1.0 |
3 |
Release: %mkrel 4 |
4 |
Summary: A source-based package manager for OCaml |
5 |
License: GPL |
6 |
Group: Development/OCaml |
7 |
URL: http://opam.ocamlpro.com/ |
8 |
Source0: http://www.ocamlpro.com/pub/opam-full-%{version}.tar.gz |
9 |
BuildRequires: ocaml-compiler |
10 |
BuildRequires: camlp4-devel |
11 |
BuildRequires: hevea |
12 |
BuildRequires: ocaml-cudf-devel |
13 |
BuildRequires: ocaml-ocamlgraph-devel |
14 |
BuildRequires: ocaml-cmdliner-devel |
15 |
BuildRequires: ocaml-re-devel |
16 |
BuildRequires: ocaml-dose3-devel |
17 |
BuildRequires: ocaml-extlib-devel |
18 |
|
19 |
%description |
20 |
OPAM stands for OCaml PAckage Manager. |
21 |
It aims to suit to a vast number of users and use cases, |
22 |
and has unique features: |
23 |
|
24 |
* Powerful handling of dependencies: |
25 |
versions constraints, optional dependencies, conflicts, etc. |
26 |
* Multiple repositories backends: HTTP, rsync, git |
27 |
* Ease to create packages and repositories |
28 |
* Ability to switch between different compiler versions |
29 |
|
30 |
Typically, OPAM will probably make your life easier if you recognize |
31 |
yourself in at least one of these profiles: |
32 |
|
33 |
* You use multiple versions of the OCaml compiler, or you hack the |
34 |
compiler yourself and needs to frequently switch between compiler |
35 |
versions. |
36 |
* You use or develop software that needs a specific and/or modified |
37 |
version of the OCaml compiler to be installed. |
38 |
* You use or develop software that depends on a specific version of an |
39 |
OCaml library, or you just want to install a specific version of a |
40 |
package, not just the latest one. |
41 |
* You want to create your own packages yourself, put them on your own |
42 |
repository, with minimal effort. |
43 |
|
44 |
%package doc |
45 |
Summary: Documentation files for %{name} |
46 |
Group: Development/OCaml |
47 |
Requires: %{name} = %{version}-%{release} |
48 |
|
49 |
%description doc |
50 |
The %{name}-doc package contains documentation for using %{name}. |
51 |
|
52 |
%prep |
53 |
%setup -q -n opam-full-%{version} |
54 |
|
55 |
%build |
56 |
./configure \ |
57 |
--prefix=%{_prefix} \ |
58 |
--libdir=%{_libdir} \ |
59 |
--libexecdir=%{_libexecdir} \ |
60 |
--exec-prefix=%{_exec_prefix} \ |
61 |
--bindir=%{_bindir} \ |
62 |
--sbindir=%{_sbindir} \ |
63 |
--mandir=%{_mandir} \ |
64 |
--datadir=%{_datadir} \ |
65 |
--localstatedir=%{_localstatedir} \ |
66 |
--docdir=%{_docdir}/%{name}-devel/ |
67 |
|
68 |
make all opt |
69 |
#make doc |
70 |
pushd doc/dev-manual/ |
71 |
make html |
72 |
make clean |
73 |
popd |
74 |
|
75 |
%install |
76 |
rm -rf %{buildroot} |
77 |
export DESTDIR=%{buildroot} |
78 |
make install |
79 |
|
80 |
%files |
81 |
%doc README.md LICENSE CHANGES |
82 |
%doc AUTHORS CONTRIBUTING |
83 |
%{_bindir}/opam |
84 |
%{_bindir}/opam-admin |
85 |
%{_mandir}/man1/opam.1* |
86 |
%{_mandir}/man1/opam-*.1* |
87 |
|
88 |
%files doc |
89 |
%doc doc/ |
90 |
%doc tests/ |
91 |
%doc jenkins/ |
92 |
%doc shell/ |