1 |
%global giturl https://github.com/ocaml/opam |
2 |
|
3 |
Name: opam |
4 |
Version: 2.3.0 |
5 |
Release: %mkrel 2 |
6 |
Summary: A source-based package manager for OCaml |
7 |
Group: Development/OCaml |
8 |
License: LGPL-2.1-only WITH OCaml-LGPL-linking-exception |
9 |
URL: https://opam.ocaml.org/ |
10 |
VCS: git:%{giturl}.git |
11 |
Source0: %{giturl}/releases/download/%{version}/%{name}-full-%{version}.tar.gz |
12 |
Source1: %{giturl}/releases/download/%{version}/%{name}-full-%{version}.tar.gz.sig |
13 |
Source2: https://opam.ocaml.org/opam-dev-pubkey.pgp |
14 |
|
15 |
BuildRequires: diffutils |
16 |
BuildRequires: gcc-c++ |
17 |
BuildRequires: git-core |
18 |
BuildRequires: gnupg2 |
19 |
BuildRequires: libacl-devel |
20 |
BuildRequires: make |
21 |
BuildRequires: ocaml >= 4.08.0 |
22 |
BuildRequires: ocaml-base64-devel >= 3.1.0 |
23 |
BuildRequires: ocaml-cmdliner-devel >= 1.1.0 |
24 |
BuildRequires: ocaml-cudf-devel >= 0.7 |
25 |
BuildRequires: ocaml-dose3-devel >= 6.1 |
26 |
BuildRequires: ocaml-dune >= 2.8.0 |
27 |
BuildRequires: ocaml-findlib |
28 |
BuildRequires: ocaml-jsonm-devel |
29 |
BuildRequires: ocaml-mccs-devel |
30 |
BuildRequires: ocaml-ocamlgraph-devel |
31 |
BuildRequires: ocaml-opam-0install-cudf-devel >= 0.5.0 |
32 |
BuildRequires: ocaml-opam-file-format-devel >= 2.1.4 |
33 |
BuildRequires: ocaml-re-devel >= 1.10.0 |
34 |
BuildRequires: ocaml-sha-devel >= 1.13 |
35 |
BuildRequires: ocaml-spdx-licenses-devel >= 1.0.0 |
36 |
BuildRequires: ocaml-swhid-core-devel |
37 |
BuildRequires: ocaml-uutf-devel |
38 |
BuildRequires: openssl |
39 |
|
40 |
# Needed to install packages and run opam init. |
41 |
Requires: bubblewrap |
42 |
Requires: bzip2 |
43 |
Requires: diffutils |
44 |
Requires: gcc |
45 |
Requires: gzip |
46 |
Requires: make |
47 |
Requires: m4 |
48 |
Requires: patch |
49 |
Requires: tar |
50 |
Requires: unzip |
51 |
Requires: xz |
52 |
|
53 |
Requires: opam-installer%{?_isa} = %{version}-%{release} |
54 |
|
55 |
Obsoletes: opam-doc < 2.1.3-2 |
56 |
|
57 |
%description |
58 |
Opam is a source-based package manager for OCaml. It supports multiple |
59 |
simultaneous compiler installations, flexible package constraints, and |
60 |
a Git-friendly development workflow. |
61 |
|
62 |
%package installer |
63 |
Summary: Standalone script for opam install files |
64 |
|
65 |
%description installer |
66 |
Standalone script for working with opam .install files, see the opam |
67 |
package for more information. |
68 |
|
69 |
%prep |
70 |
%{gpgverify} --data=%{SOURCE0} --signature=%{SOURCE1} --keyring=%{SOURCE2} |
71 |
%autosetup -n %{name}-full-%{version} -p1 |
72 |
|
73 |
%build |
74 |
export DUNE_ARGS='--verbose' |
75 |
export DUNE_PROFILE_ARG='release' |
76 |
|
77 |
%configure |
78 |
%make_build |
79 |
|
80 |
%install |
81 |
export DUNE_ARGS='--verbose' |
82 |
export DUNE_PROFILE_ARG='release' |
83 |
%make_install |
84 |
|
85 |
# However it looks like some (extra) documentation gets |
86 |
# installed in the wrong place so... delete it. |
87 |
rm -rf %{buildroot}%{_prefix}/doc |
88 |
|
89 |
# It seems that some tests fail under mock. |
90 |
# I am not sure why at the moment. So for now I'll just turn them off. |
91 |
#%%check |
92 |
#make tests |
93 |
|
94 |
%files |
95 |
%license LICENSE |
96 |
%{_bindir}/opam |
97 |
%exclude %{_mandir}/man1/opam-installer.1* |
98 |
%{_mandir}/man1/*.1* |
99 |
|
100 |
%files installer |
101 |
%license LICENSE |
102 |
# Upstream puts this documentation under opam-installer, not opam. |
103 |
# Since I have opam require opam-installer anyway, this seems reasonable. |
104 |
# (And there are lots of man pages in the opam package, so it has docs). |
105 |
%doc README.md CHANGES AUTHORS CONTRIBUTING.md |
106 |
%{_bindir}/opam-installer |
107 |
%{_mandir}/man1/opam-installer.1* |