/[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 1253358 - (show annotations) (download)
Wed Aug 22 04:59:39 2018 UTC (5 years, 8 months ago) by daviddavid
File size: 3323 byte(s)
SILENT: now ocaml-mccs is available
SILENT: need ocaml-re >= 1.7.2

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.0
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 %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 %package doc
63 Summary: Documentation files for %{name}
64 Group: Documentation
65 Requires: %{name} = %{version}-%{release}
66
67 %description doc
68 The %{name}-doc package contains documentation for using %{name}.
69
70 %prep
71 %autosetup -p1 -n %{name}-%{version}%{?pre_tag:-%pre_tag}
72
73 %build
74 %configure2_5x
75
76 # Parallel build does not succeed.
77 make
78 make man
79 pushd doc/dev-manual/
80 make html
81 make clean
82 popd
83
84 %install
85 # 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 %make_install LIBINSTALL_DIR=%{buildroot}%{_libdir}/ocaml
89
90 # 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 %files
95 %license LICENSE
96 %doc README.md CHANGES AUTHORS CONTRIBUTING.md
97 %{_bindir}/%{name}
98 %{_bindir}/%{name}-installer
99 %{_libdir}/ocaml/opam-installer
100 %{_mandir}/man1/%{name}.1*
101 %{_mandir}/man1/%{name}-*.1*
102
103 %files doc
104 %doc doc/
105 %doc tests/
106 %doc shell/

  ViewVC Help
Powered by ViewVC 1.1.30