1 |
tv |
1198286 |
%global pre_tag beta6 |
2 |
|
|
|
3 |
daviddavid |
807286 |
Name: opam |
4 |
tv |
1198286 |
Version: 2.0.0 |
5 |
|
|
Release: %mkrel 1 |
6 |
daviddavid |
807286 |
Summary: A source-based package manager for OCaml |
7 |
|
|
License: LGPLv3 |
8 |
|
|
Group: Development/OCaml |
9 |
|
|
URL: http://opam.ocamlpro.com/ |
10 |
tv |
1198286 |
Source0: https://github.com/ocaml/opam/archive/%{version}-%{pre_tag}/%{name}-%{version}-%{pre_tag}.tar.gz |
11 |
malo |
553494 |
BuildRequires: ocaml-compiler |
12 |
pterjan |
950960 |
BuildRequires: ocaml-camlp4-devel |
13 |
blue_prawn |
484358 |
BuildRequires: hevea |
14 |
tv |
1198286 |
BuildRequires: ocaml-findlib-devel |
15 |
|
|
BuildRequires: ocaml-ocamlbuild |
16 |
malo |
553494 |
BuildRequires: ocaml-cudf-devel |
17 |
|
|
BuildRequires: ocaml-ocamlgraph-devel |
18 |
|
|
BuildRequires: ocaml-cmdliner-devel |
19 |
tv |
1198286 |
BuildRequires: ocaml-ocamlgraph-devel |
20 |
malo |
553494 |
BuildRequires: ocaml-re-devel |
21 |
tv |
1198286 |
BuildRequires: ocaml-cudf-devel |
22 |
|
|
BuildRequires: ocaml-opam-file-format-devel |
23 |
malo |
553494 |
BuildRequires: ocaml-dose3-devel |
24 |
|
|
BuildRequires: ocaml-extlib-devel |
25 |
tv |
1198286 |
#BuildRequires: ocaml-mccs-devel |
26 |
|
|
BuildRequires: ocaml-camlzip-devel |
27 |
|
|
BuildRequires: ocaml-result-devel |
28 |
|
|
BuildRequires: glpk-devel |
29 |
|
|
BuildRequires: zlib-devel |
30 |
|
|
BuildRequires: jbuilder |
31 |
|
|
BuildRequires: git |
32 |
blue_prawn |
407069 |
|
33 |
|
|
%description |
34 |
|
|
OPAM stands for OCaml PAckage Manager. |
35 |
|
|
It aims to suit to a vast number of users and use cases, |
36 |
|
|
and has unique features: |
37 |
|
|
|
38 |
|
|
* Powerful handling of dependencies: |
39 |
|
|
versions constraints, optional dependencies, conflicts, etc. |
40 |
|
|
* Multiple repositories backends: HTTP, rsync, git |
41 |
|
|
* Ease to create packages and repositories |
42 |
|
|
* Ability to switch between different compiler versions |
43 |
|
|
|
44 |
|
|
Typically, OPAM will probably make your life easier if you recognize |
45 |
|
|
yourself in at least one of these profiles: |
46 |
|
|
|
47 |
|
|
* You use multiple versions of the OCaml compiler, or you hack the |
48 |
|
|
compiler yourself and needs to frequently switch between compiler |
49 |
|
|
versions. |
50 |
|
|
* You use or develop software that needs a specific and/or modified |
51 |
|
|
version of the OCaml compiler to be installed. |
52 |
|
|
* You use or develop software that depends on a specific version of an |
53 |
|
|
OCaml library, or you just want to install a specific version of a |
54 |
|
|
package, not just the latest one. |
55 |
|
|
* You want to create your own packages yourself, put them on your own |
56 |
|
|
repository, with minimal effort. |
57 |
|
|
|
58 |
daviddavid |
807286 |
%package doc |
59 |
|
|
Summary: Documentation files for %{name} |
60 |
|
|
Group: Documentation |
61 |
|
|
Requires: %{name} = %{version}-%{release} |
62 |
blue_prawn |
407069 |
|
63 |
daviddavid |
807286 |
%description doc |
64 |
blue_prawn |
407069 |
The %{name}-doc package contains documentation for using %{name}. |
65 |
|
|
|
66 |
|
|
%prep |
67 |
tv |
1198286 |
%autosetup -p1 -n %{name}-%{version}-%{pre_tag} |
68 |
blue_prawn |
407069 |
|
69 |
|
|
%build |
70 |
daviddavid |
807286 |
%configure2_5x |
71 |
tv |
1198286 |
sed 's/OPAMINSTALLER_FLAGS=/OPAMINSTALLER_FLAGS+=/g' -i Makefile |
72 |
blue_prawn |
407069 |
|
73 |
tv |
1198286 |
# Parallel build does not succeed. |
74 |
|
|
make |
75 |
pterjan |
951002 |
make man |
76 |
blue_prawn |
484358 |
pushd doc/dev-manual/ |
77 |
daviddavid |
807287 |
make html |
78 |
|
|
make clean |
79 |
blue_prawn |
484358 |
popd |
80 |
blue_prawn |
407069 |
|
81 |
|
|
%install |
82 |
tv |
1198286 |
# The makefile looks like it tries to invoke ocamlfind but only if DESTDIR |
83 |
|
|
# isn't set. If it is set (which it is) LIBINSTALLDIR must be set too |
84 |
|
|
# for installing opam-installer metadata. |
85 |
|
|
%make_install LIBINSTALL_DIR=%{buildroot}/%{_libdir}/ocaml |
86 |
blue_prawn |
407069 |
|
87 |
tv |
1198286 |
# However it looks like some (extra) documentation gets |
88 |
|
|
# installed in the wrong place so... delete it. |
89 |
|
|
rm -rf %{buildroot}%{_prefix}/doc |
90 |
|
|
|
91 |
blue_prawn |
407069 |
%files |
92 |
tv |
1198281 |
%license LICENSE |
93 |
|
|
%doc README.md CHANGES AUTHORS CONTRIBUTING.md |
94 |
daviddavid |
807286 |
%{_bindir}/%{name} |
95 |
pterjan |
951002 |
%{_bindir}/%{name}-installer |
96 |
tv |
1198286 |
%{_libdir}/ocaml/opam-installer |
97 |
daviddavid |
807286 |
%{_mandir}/man1/%{name}.1* |
98 |
|
|
%{_mandir}/man1/%{name}-*.1* |
99 |
blue_prawn |
407069 |
|
100 |
|
|
%files doc |
101 |
|
|
%doc doc/ |
102 |
|
|
%doc tests/ |
103 |
|
|
%doc shell/ |