Commit Graph

44 Commits

Author SHA256 Message Date
Olaf Hering
6bd5ad9d4e Accepting request 1121507 from home:aaronpuchert:branches:devel:languages:ocaml
- Increase stack size limit for riscv64 like for ppc64(le).

OBS-URL: https://build.opensuse.org/request/show/1121507
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=81
2023-11-01 07:23:38 +00:00
Olaf Hering
e77390ff55 Accepting request 1061850 from home:bmwiedemann:reproducible:test
Allow variables in smp_mflags to be interpolated
  for https://github.com/rpm-software-management/rpm/issues/2343

OBS-URL: https://build.opensuse.org/request/show/1061850
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=79
2023-02-01 08:21:00 +00:00
Olaf Hering
988467c68b - Remove stale references to ocaml_make_testsuite
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=77
2023-01-02 20:08:01 +00:00
Olaf Hering
a8442223dc - Handle plain ^ and + as values for directory= in findlib META files
They stand for the OCaml standard library directory.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=74
2022-07-08 06:55:48 +00:00
Olaf Hering
7b158bafe9 - remove unused ocaml_dune_bootstrap_directory
- move all invocations of dune from ocaml_dune_setup to ocaml_dune_build
- process content of ocaml_standard_library only if it exists in buildroot

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=72
2022-04-09 19:43:24 +00:00
Olaf Hering
2ddfc738f8 - remove braces from rpm macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=69
2022-03-17 22:23:24 +00:00
Olaf Hering
cbbf3354ad - define ocaml_dune_bootstrap_directory for dune3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=68
2022-03-17 22:21:16 +00:00
Olaf Hering
8e459b575b - remove usage of external-lib-deps for dune3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=67
2022-03-17 22:19:50 +00:00
Olaf Hering
25116e28dc change baserev from f31ae615e9e9acbfcd84c10cf00a7268 to 68e6f30502940dcbefff8532cc8bc873
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=65
2021-10-27 07:44:40 +00:00
Olaf Hering
cac384f384 - Rename a single opam file to $dune_release_pkgs.opam
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=62
2021-09-17 09:47:17 +00:00
Olaf Hering
4b6c153b6e - Remove ocaml_native_compiler flag, assume native target
This flag puts too much burden on pkgs that use ocaml, but build
  with their buildsystem instead of using dune

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=59
2021-04-21 12:50:50 +00:00
Olaf Hering
483ffe0475 ocaml-rpm-macros.changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=57
2021-04-13 14:35:37 +00:00
Olaf Hering
b137df16ce Accepting request 884983 from Archiving:unison:buildrequires
- Use bcond rpm_license_macro for license macro in filelist
- Add suse prefix to ocaml_native_compiler to avoid conflict

OBS-URL: https://build.opensuse.org/request/show/884983
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=56
2021-04-13 13:37:32 +00:00
Olaf Hering
4c949ea7cb - Fix regex in file list generator to really match dot and extension
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=54
2021-02-09 09:52:32 +00:00
Olaf Hering
42e3431a81 remove previous ocaml_dune_test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=52
2021-01-28 09:17:01 +00:00
Olaf Hering
f46630aa30 - Run dune installed-libraries also in ocaml_dune_test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=51
2021-01-28 00:06:41 +00:00
Olaf Hering
6267059f33 - Adjust parser of ocamfind() requires
Take negative predicates in requires() into account, and ignore them.
  This is supposed to avoid dependency cycles due to excessive
  list of dependencies.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=50
2021-01-27 19:24:48 +00:00
Olaf Hering
63ac6d61e1 - Adjust injection of version into findlib META files
A file VERSION is not handled anymore by dune since 1.11.
  Remove version: from *.opam files, inject version into dune-project

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=48
2021-01-15 10:00:01 +00:00
Olaf Hering
33bd43c2c6 - Enable native riscv64
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=46
2020-08-23 17:34:24 +00:00
Olaf Hering
49a6a32fff - Package also *.v, for Coq
- Package changelog files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=45
2020-08-21 17:06:21 +00:00
Olaf Hering
819290d21a Use tag 'suseocaml', rename zocaml.attr to suseocaml.attr to
avoid filename conflicts with rpm-build.rpm (bsc#1154874)
- Rename also ocamlfind to suseocamlfind

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=43
2020-05-14 09:40:00 +00:00
Olaf Hering
5b8baeb9af - The filename for rpm *.attr files and the tag used within these
files must match. Otherwise rpm will not execute the helper scripts.
  Stick with tag 'ocaml', rename zocaml.attr to ocaml.attr. (bsc#1154874)
- Escape plain % chars

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=42
2020-05-14 09:02:05 +00:00
Olaf Hering
67a46c7a1d - run OCaml rpm dependency generator only if both path and magic matches (rpm#1173)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=40
2020-04-12 21:10:05 +00:00
Olaf Hering
b048e2bb58 - Disable parallel build for OCaml 4.08, 4.09 and 4.10
to get reproducible cma archives (issue#9307)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=38
2020-03-21 14:46:30 +00:00
Olaf Hering
1487491b46 - Install also COPYRIGHT.txt as license, needed for some JaneStreet pkgs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=36
2020-02-24 07:21:45 +00:00
Olaf Hering
44cfad1afb - Add ocaml-ocaml.rpm.prov_req.attr.sh
New script for rpm Provides/Requires, replacement for rpm
  built-in ocaml(NAME)=hash, which covers bytecode and interfaces
  Now it covers also native code via ocamlx(NAME)=HASH (bsc#1154874)
- Update the filelist generator
  Use awk to match directories in ocamls built-in ld.conf
  C stublibs in default locations do not need a ld.so.conf entry
  Remaining ld.so.conf files for stublibs go to the devel package
- Disable debug in ocamlfind() Provides/Requires generator
  Update META parser to handle multiline statements and ppx
- Provide a ocaml_standard_library macro
- Explicitly preserve debuginfo in .cmxs, already enforced by dune

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=35
2020-02-21 10:50:25 +00:00
Olaf Hering
db521a9577 - Install also LGPL as license, needed by ocaml-lablgtk2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=33
2019-11-25 14:34:09 +00:00
Olaf Hering
9c9a6e4a1e used at runtime. Also, cmxs dependencies in main pkg are
not covered by ocaml-find-requires.sh (bsc#1154874)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=31
2019-11-05 09:30:50 +00:00
Olaf Hering
7bad2438d0 - Use _smp_mflags instead of nproc for parallel build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=29
2019-11-03 18:06:32 +00:00
Olaf Hering
6acae0361b - SLE_12 has still no license macro, package as doc instead
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=28
2019-11-01 23:56:52 +00:00
Olaf Hering
8fc5a9e55c - Moved ocaml-findlib.rpm.prov_req.attr.sh from ocaml to provide
ocamlfind() in ocaml itself
- Handle license separately because sed w truncates output
- Document individual file extensions
- Move cmxs and so files to devel packages because they are not
  used at runtime
- Set VERSION unconditionally for each patch, sometimes dune picks it up
- Pass --for-release-of-packages to dune via dune_release_pkgs=
- Print potential BuildRequires during build
- Package sml for camlp5

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=27
2019-11-01 22:56:29 +00:00
Olaf Hering
6245187703 - Package also *.js
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=25
2019-10-10 07:49:26 +00:00
Olaf Hering
523a87652d - Package also /etc/ld.so.conf.d
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=22
2019-10-10 06:48:18 +00:00
Olaf Hering
5e807c3ee5 - Package also Copyright, for dose3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=21
2019-10-10 06:47:28 +00:00
Olaf Hering
f65f0d584c - Package also *.o
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=20
2019-10-09 18:15:45 +00:00
Olaf Hering
37b75f9fa3 - Package also *.so.owner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=18
2019-10-09 16:50:13 +00:00
Olaf Hering
828b8c785a - Package also COPYRIGHT, for labltk
- Package also *.cmo

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=17
2019-10-09 16:40:09 +00:00
Olaf Hering
5803b7dc3e - Do not mark files as %config
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=12
2019-10-04 14:55:27 +00:00
Olaf Hering
936a867b8b - List unhandled files in ocaml_create_file_list macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=11
2019-10-04 14:54:46 +00:00
Olaf Hering
5bb60ff8c8 - Automatically package known license files in main pkg
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=7
2019-10-04 08:02:30 +00:00
Olaf Hering
fb5f5dff8d - Use _rpmmacrodir
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=6
2019-10-04 07:57:21 +00:00
Olaf Hering
fc123d0e38 - Move prefix/man to datadir/man to workaround bug in dune (#2670)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=4
2019-10-02 08:15:09 +00:00
Olaf Hering
2a39b9aab1 trim changes file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=3
2019-10-01 07:37:01 +00:00
Olaf Hering
e7f0e71c17 - Increase ulimit -s on ppc64 in dune macros
Required for at least ocaml-camomile
- Show external-lib-deps also for dune runtest
- Provide a ocaml_create_file_list macro
- Optional extra args for dune commands
- Pass --verbose to dune commands

- moved ocaml-rpm-macros from ocaml.spec to separate pkg

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=1
2019-09-30 14:23:43 +00:00