From cac384f38464cfc18f79e72f7dac49c4aaac3078d10b09d8cd423374d0cf9c71 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 17 Sep 2021 09:47:17 +0000 Subject: [PATCH] - 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 --- ocaml-rpm-macros.changes | 5 +++++ ocaml-rpm-macros.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ocaml-rpm-macros.changes b/ocaml-rpm-macros.changes index 615a80b..103afca 100644 --- a/ocaml-rpm-macros.changes +++ b/ocaml-rpm-macros.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 11 12:34:56 UTC 2021 - ohering@suse.de + +- Rename a single opam file to $dune_release_pkgs.opam + ------------------------------------------------------------------- Wed Apr 21 12:34:56 UTC 2021 - ohering@suse.de diff --git a/ocaml-rpm-macros.spec b/ocaml-rpm-macros.spec index 1b5dc69..99286a2 100644 --- a/ocaml-rpm-macros.spec +++ b/ocaml-rpm-macros.spec @@ -1,7 +1,7 @@ # # spec file for package ocaml-rpm-macros # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: ocaml-rpm-macros -Version: 20210421 +Version: 20210911 Release: 0 Summary: RPM macros for building OCaml source packages License: GPL-2.0-only @@ -414,6 +414,13 @@ ocaml setup.ml -configure \\\ %ifarch ppc64 ppc64le ulimit -s $((1024 * 64)) ; \ %endif +%if 0 + # obviously this works just with a single entry in dune_release_pkgs= +%endif + if test -n "${dune_release_pkgs}" ; \ + then \ + test -f 'opam' && mv -v 'opam' "${dune_release_pkgs}.opam" ; \ + fi ; \ echo '%%{version}' | tee VERSION ; \ for opam in *.opam \ do\