/[packages]/cauldron/opam/current/SPECS/opam.spec
ViewVC logotype

Contents of /cauldron/opam/current/SPECS/opam.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1545831 - (show annotations) (download)
Thu Feb 20 08:52:17 2020 UTC (3 months, 1 week ago) by umeabot
File size: 3628 byte(s)
Mageia 8 Mass Rebuild
1 # comment out when not pre-release
2 #global pre_tag beta6
3
4 %define rel 2
5
6 Name: opam
7 Version: 2.0.6
8 Release: %mkrel %{?pre_tag:0.%pre_tag.}%{rel}
9 Summary: A source-based package manager for OCaml
10 License: LGPLv3
11 Group: Development/OCaml
12 URL: http://opam.ocamlpro.com/
13 Source0: https://github.com/ocaml/opam/archive/%{version}%{?pre_tag:-%pre_tag}/%{name}-%{version}%{?pre_tag:-%pre_tag}.tar.gz
14 BuildRequires: ocaml-compiler
15 BuildRequires: hevea
16 BuildRequires: ocaml-findlib-devel
17 BuildRequires: ocaml-ocamlbuild
18 BuildRequires: ocaml-cppo-devel
19 BuildRequires: ocaml-cudf-devel
20 BuildRequires: ocaml-ocamlgraph-devel
21 BuildRequires: ocaml-cmdliner-devel
22 BuildRequires: ocaml-ocamlgraph-devel
23 BuildRequires: ocaml-re-devel >= 1.7.2
24 BuildRequires: ocaml-seq-devel
25 BuildRequires: ocaml-cudf-devel
26 BuildRequires: ocaml-opam-file-format-devel
27 BuildRequires: ocaml-dose3-devel
28 BuildRequires: ocaml-extlib-devel
29 BuildRequires: ocaml-mccs-devel
30 BuildRequires: ocaml-camlzip-devel
31 BuildRequires: ocaml-result-devel
32 BuildRequires: glpk-devel
33 BuildRequires: zlib-devel
34 BuildRequires: ocaml-dune
35 BuildRequires: git
36
37 # Needed to install packages and run opam init.
38 Requires: bubblewrap
39 Requires: bzip2
40 Requires: gcc
41 Requires: patch
42 Requires: unzip
43
44 %description
45 OPAM stands for OCaml PAckage Manager.
46 It aims to suit to a vast number of users and use cases,
47 and has unique features:
48
49 * Powerful handling of dependencies:
50 versions constraints, optional dependencies, conflicts, etc.
51 * Multiple repositories backends: HTTP, rsync, git
52 * Ease to create packages and repositories
53 * Ability to switch between different compiler versions
54
55 Typically, OPAM will probably make your life easier if you recognize
56 yourself in at least one of these profiles:
57
58 * You use multiple versions of the OCaml compiler, or you hack the
59 compiler yourself and needs to frequently switch between compiler
60 versions.
61 * You use or develop software that needs a specific and/or modified
62 version of the OCaml compiler to be installed.
63 * You use or develop software that depends on a specific version of an
64 OCaml library, or you just want to install a specific version of a
65 package, not just the latest one.
66 * You want to create your own packages yourself, put them on your own
67 repository, with minimal effort.
68
69 %package doc
70 Summary: Documentation files for %{name}
71 Group: Documentation
72 Requires: %{name} = %{version}-%{release}
73
74 %description doc
75 The %{name}-doc package contains documentation for using %{name}.
76
77 %prep
78 %autosetup -p1 -n %{name}-%{version}%{?pre_tag:-%pre_tag}
79
80 %build
81 %configure
82 sed 's/OPAMINSTALLER_FLAGS=/OPAMINSTALLER_FLAGS+=/g' -i Makefile
83
84 export JBUILDER_ARGS="--verbose"
85 # Need to set the path so Makefile can run the opam command.
86 export PATH=$PWD:$PATH
87
88 # Parallel build does not succeed.
89 make
90
91 %install
92 export JBUILDER_ARGS="--verbose"
93 export PATH=$PWD:$PATH
94
95 # The makefile looks like it tries to invoke ocamlfind but only if DESTDIR
96 # isn't set. If it is set (which it is) LIBINSTALLDIR must be set too
97 # for installing opam-installer metadata.
98 %make_install LIBINSTALL_DIR=%{buildroot}/%{_libdir}/ocaml
99
100 # However it looks like some (extra) documentation gets
101 # installed in the wrong place so... delete it.
102 rm -rf %{buildroot}%{_prefix}/doc
103
104 %files
105 %license LICENSE
106 %doc README.md CHANGES AUTHORS CONTRIBUTING.md
107 %{_bindir}/%{name}
108 %{_bindir}/%{name}-installer
109 %{_mandir}/man1/%{name}.1*
110 %{_mandir}/man1/%{name}-*.1*
111
112 %files doc
113 %doc doc/
114 %doc tests/
115 %doc shell/

  ViewVC Help
Powered by ViewVC 1.1.28