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