- 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
This commit is contained in:
parent
33bd43c2c6
commit
63ac6d61e1
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 14 14:14:14 UTC 2021 - ohering@suse.de
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de
|
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: ocaml-rpm-macros
|
Name: ocaml-rpm-macros
|
||||||
Version: 20200820
|
Version: 20210114
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: RPM macros for building OCaml source packages
|
Summary: RPM macros for building OCaml source packages
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
@ -410,6 +410,22 @@ ocaml setup.ml -configure \\\
|
|||||||
ulimit -s $((1024 * 64)) ; \
|
ulimit -s $((1024 * 64)) ; \
|
||||||
%endif
|
%endif
|
||||||
echo '%%{version}' | tee VERSION ; \
|
echo '%%{version}' | tee VERSION ; \
|
||||||
|
for opam in *.opam \
|
||||||
|
do\
|
||||||
|
test -f "${opam}" || continue ; \
|
||||||
|
sed -i~ '\
|
||||||
|
/^version:/d\
|
||||||
|
' "${opam}" ; \
|
||||||
|
diff -u "$_"~ "$_" || : got version ; \
|
||||||
|
done ; \
|
||||||
|
if test -f 'dune-project' ; \
|
||||||
|
then \
|
||||||
|
sed -i~ '\
|
||||||
|
/^([[:blank:]]*version[[:blank:]]\\+/d\
|
||||||
|
/^([[:blank:]]*lang[[:blank:]]\\+dune[[:blank:]]/a (version %%{version})\
|
||||||
|
' 'dune-project'; \
|
||||||
|
diff -u "$_"~ "$_" || : got version ; \
|
||||||
|
fi ; \
|
||||||
dune_for_release= ; \
|
dune_for_release= ; \
|
||||||
: dune_release_pkgs \
|
: dune_release_pkgs \
|
||||||
if test -n "${dune_release_pkgs}" ; \
|
if test -n "${dune_release_pkgs}" ; \
|
||||||
|
Loading…
Reference in New Issue
Block a user