/[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 1480098 - (hide annotations) (download)
Thu Jan 16 20:41:28 2020 UTC (4 years, 3 months ago) by wally
File size: 3429 byte(s)
- replace deprecated %%configure2_5x
1 daviddavid 1252282 # comment out when not pre-release
2 daviddavid 1252284 #global pre_tag beta6
3 tv 1198286
4 daviddavid 1322084 %define rel 1
5 daviddavid 1252284
6 daviddavid 807286 Name: opam
7 daviddavid 1355578 Version: 2.0.2
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 malo 553494 BuildRequires: ocaml-compiler
15 pterjan 950960 BuildRequires: ocaml-camlp4-devel
16 blue_prawn 484358 BuildRequires: hevea
17 tv 1198286 BuildRequires: ocaml-findlib-devel
18     BuildRequires: ocaml-ocamlbuild
19 daviddavid 1252346 BuildRequires: ocaml-cppo-devel
20 malo 553494 BuildRequires: ocaml-cudf-devel
21     BuildRequires: ocaml-ocamlgraph-devel
22     BuildRequires: ocaml-cmdliner-devel
23 tv 1198286 BuildRequires: ocaml-ocamlgraph-devel
24 daviddavid 1253358 BuildRequires: ocaml-re-devel >= 1.7.2
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     BuildRequires: jbuilder
35     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 blue_prawn 407069
83 tv 1198286 # Parallel build does not succeed.
84     make
85 pterjan 951002 make man
86 blue_prawn 407069
87     %install
88 tv 1198286 # 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 daviddavid 1252282 %make_install LIBINSTALL_DIR=%{buildroot}%{_libdir}/ocaml
92 blue_prawn 407069
93 tv 1198286 # 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 blue_prawn 407069 %files
98 tv 1198281 %license LICENSE
99     %doc README.md CHANGES AUTHORS CONTRIBUTING.md
100 daviddavid 807286 %{_bindir}/%{name}
101 pterjan 951002 %{_bindir}/%{name}-installer
102 tv 1198286 %{_libdir}/ocaml/opam-installer
103 daviddavid 807286 %{_mandir}/man1/%{name}.1*
104     %{_mandir}/man1/%{name}-*.1*
105 blue_prawn 407069
106     %files doc
107     %doc doc/
108     %doc tests/
109     %doc shell/

  ViewVC Help
Powered by ViewVC 1.1.30