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