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