/[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 1355578 - (show annotations) (download)
Sat Jan 12 13:31:00 2019 UTC (6 months, 1 week ago) by daviddavid
File size: 3433 byte(s)
- new version: 2.0.2

1 # comment out when not pre-release
2 #global pre_tag beta6
3
4 %define rel 1
5
6 Name: opam
7 Version: 2.0.2
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: ocaml-camlp4-devel
16 BuildRequires: hevea
17 BuildRequires: ocaml-findlib-devel
18 BuildRequires: ocaml-ocamlbuild
19 BuildRequires: ocaml-cppo-devel
20 BuildRequires: ocaml-cudf-devel
21 BuildRequires: ocaml-ocamlgraph-devel
22 BuildRequires: ocaml-cmdliner-devel
23 BuildRequires: ocaml-ocamlgraph-devel
24 BuildRequires: ocaml-re-devel >= 1.7.2
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: jbuilder
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 %configure2_5x
82
83 # Parallel build does not succeed.
84 make
85 make man
86
87 %install
88 # The makefile looks like it tries to invoke ocamlfind but only if DESTDIR
89 # isn't set. If it is set (which it is) LIBINSTALLDIR must be set too
90 # for installing opam-installer metadata.
91 %make_install LIBINSTALL_DIR=%{buildroot}%{_libdir}/ocaml
92
93 # However it looks like some (extra) documentation gets
94 # installed in the wrong place so... delete it.
95 rm -rf %{buildroot}%{_prefix}/doc
96
97 %files
98 %license LICENSE
99 %doc README.md CHANGES AUTHORS CONTRIBUTING.md
100 %{_bindir}/%{name}
101 %{_bindir}/%{name}-installer
102 %{_libdir}/ocaml/opam-installer
103 %{_mandir}/man1/%{name}.1*
104 %{_mandir}/man1/%{name}-*.1*
105
106 %files doc
107 %doc doc/
108 %doc tests/
109 %doc shell/

  ViewVC Help
Powered by ViewVC 1.1.26