/[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 1252282 - (show annotations) (download)
Fri Aug 17 13:20:17 2018 UTC (5 years, 8 months ago) by daviddavid
File size: 3206 byte(s)
- new version: 2.0.0 (Final)

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

  ViewVC Help
Powered by ViewVC 1.1.30