/[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 1315867 - (hide annotations) (download)
Tue Oct 2 21:07:38 2018 UTC (5 years, 5 months ago) by daviddavid
File size: 3485 byte(s)
- add some additional required pkgs

1 daviddavid 1252282 # comment out when not pre-release
2 daviddavid 1252284 #global pre_tag beta6
3 tv 1198286
4 daviddavid 1315867 %define rel 4
5 daviddavid 1252284
6 daviddavid 807286 Name: opam
7 tv 1198286 Version: 2.0.0
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 daviddavid 807286 %configure2_5x
82 blue_prawn 407069
83 tv 1198286 # Parallel build does not succeed.
84     make
85 pterjan 951002 make man
86 blue_prawn 484358 pushd doc/dev-manual/
87 daviddavid 807287 make html
88     make clean
89 blue_prawn 484358 popd
90 blue_prawn 407069
91     %install
92 tv 1198286 # The makefile looks like it tries to invoke ocamlfind but only if DESTDIR
93     # isn't set. If it is set (which it is) LIBINSTALLDIR must be set too
94     # for installing opam-installer metadata.
95 daviddavid 1252282 %make_install LIBINSTALL_DIR=%{buildroot}%{_libdir}/ocaml
96 blue_prawn 407069
97 tv 1198286 # However it looks like some (extra) documentation gets
98     # installed in the wrong place so... delete it.
99     rm -rf %{buildroot}%{_prefix}/doc
100    
101 blue_prawn 407069 %files
102 tv 1198281 %license LICENSE
103     %doc README.md CHANGES AUTHORS CONTRIBUTING.md
104 daviddavid 807286 %{_bindir}/%{name}
105 pterjan 951002 %{_bindir}/%{name}-installer
106 tv 1198286 %{_libdir}/ocaml/opam-installer
107 daviddavid 807286 %{_mandir}/man1/%{name}.1*
108     %{_mandir}/man1/%{name}-*.1*
109 blue_prawn 407069
110     %files doc
111     %doc doc/
112     %doc tests/
113     %doc shell/

  ViewVC Help
Powered by ViewVC 1.1.30