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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1710816 - (hide annotations) (download)
Sat Mar 27 06:27:57 2021 UTC (3 years ago) by tv
File size: 3722 byte(s)
Rebuild for ocaml-4.12
1 daviddavid 1252282 # comment out when not pre-release
2 daviddavid 1252284 #global pre_tag beta6
3 tv 1198286
4 tv 1710816 %define rel 5
5 daviddavid 1252284
6 daviddavid 807286 Name: opam
7 tv 1485287 Version: 2.0.6
8 daviddavid 1252284 Release: %mkrel %{?pre_tag:0.%pre_tag.}%{rel}
9 daviddavid 807286 Summary: A source-based package manager for OCaml
10     License: LGPLv3
11     Group: Development/OCaml
12     URL: http://opam.ocamlpro.com/
13 daviddavid 1252284 Source0: https://github.com/ocaml/opam/archive/%{version}%{?pre_tag:-%pre_tag}/%{name}-%{version}%{?pre_tag:-%pre_tag}.tar.gz
14 daviddavid 1589684 # https://github.com/ocaml/opam/commit/841ecb34818397d39ebe508f1ffe8708b6e238e8
15     Patch1: 0001-makefile_fix-sed-promote_install_files-dune-arg-retrieving.patch
16 malo 553494 BuildRequires: ocaml-compiler
17 blue_prawn 484358 BuildRequires: hevea
18 tv 1198286 BuildRequires: ocaml-findlib-devel
19     BuildRequires: ocaml-ocamlbuild
20 tv 1696716 BuildRequires: ocaml-cmdliner-devel
21 daviddavid 1252346 BuildRequires: ocaml-cppo-devel
22 malo 553494 BuildRequires: ocaml-ocamlgraph-devel
23 daviddavid 1253358 BuildRequires: ocaml-re-devel >= 1.7.2
24 tv 1485267 BuildRequires: ocaml-seq-devel
25 tv 1198286 BuildRequires: ocaml-cudf-devel
26     BuildRequires: ocaml-opam-file-format-devel
27 malo 553494 BuildRequires: ocaml-dose3-devel
28     BuildRequires: ocaml-extlib-devel
29 daviddavid 1253358 BuildRequires: ocaml-mccs-devel
30 tv 1198286 BuildRequires: ocaml-camlzip-devel
31     BuildRequires: ocaml-result-devel
32     BuildRequires: glpk-devel
33     BuildRequires: zlib-devel
34 tv 1485267 BuildRequires: ocaml-dune
35 tv 1198286 BuildRequires: git
36 blue_prawn 407069
37 daviddavid 1315867 # 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 blue_prawn 407069 %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 daviddavid 807286 %package doc
70     Summary: Documentation files for %{name}
71     Group: Documentation
72     Requires: %{name} = %{version}-%{release}
73 blue_prawn 407069
74 daviddavid 807286 %description doc
75 blue_prawn 407069 The %{name}-doc package contains documentation for using %{name}.
76    
77     %prep
78 daviddavid 1252284 %autosetup -p1 -n %{name}-%{version}%{?pre_tag:-%pre_tag}
79 blue_prawn 407069
80     %build
81 wally 1480098 %configure
82 tv 1485267 sed 's/OPAMINSTALLER_FLAGS=/OPAMINSTALLER_FLAGS+=/g' -i Makefile
83 blue_prawn 407069
84 tv 1485267 export JBUILDER_ARGS="--verbose"
85     # Need to set the path so Makefile can run the opam command.
86     export PATH=$PWD:$PATH
87    
88 tv 1198286 # Parallel build does not succeed.
89     make
90 blue_prawn 407069
91     %install
92 tv 1485267 export JBUILDER_ARGS="--verbose"
93     export PATH=$PWD:$PATH
94    
95 tv 1198286 # 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 tv 1485267 %make_install LIBINSTALL_DIR=%{buildroot}/%{_libdir}/ocaml
99 blue_prawn 407069
100 tv 1198286 # 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 blue_prawn 407069 %files
105 tv 1198281 %license LICENSE
106     %doc README.md CHANGES AUTHORS CONTRIBUTING.md
107 daviddavid 807286 %{_bindir}/%{name}
108 pterjan 951002 %{_bindir}/%{name}-installer
109 daviddavid 807286 %{_mandir}/man1/%{name}.1*
110     %{_mandir}/man1/%{name}-*.1*
111 blue_prawn 407069
112     %files doc
113     %doc doc/
114     %doc tests/
115     %doc shell/

  ViewVC Help
Powered by ViewVC 1.1.30