[packages/ocaml-zarith] - leave META where dune wants it - rel 2

baggins baggins at pld-linux.org
Sun Mar 21 22:33:02 CET 2021


commit 5c4f80f821fb55ff0f9c03c81ad1276683f4e0b2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 21 22:32:18 2021 +0100

    - leave META where dune wants it
    - rel 2

 ocaml-zarith.spec | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ocaml-zarith.spec b/ocaml-zarith.spec
index 50c222b..2bcbf24 100644
--- a/ocaml-zarith.spec
+++ b/ocaml-zarith.spec
@@ -12,7 +12,7 @@ Summary:	Zarith: arbitrary-precision integers
 Summary(pl.UTF-8):	Zarith - liczby całkowite dowolnej precyzji
 Name:		ocaml-zarith
 Version:	1.12
-Release:	1
+Release:	2
 License:	LGPL v2 with linking exception
 Group:		Applications/Math
 #Source0Download: https://github.com/ocaml/Zarith/releases
@@ -75,13 +75,12 @@ install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# move to dir pld ocamlfind looks
 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
-%{__mv} $OCAMLFIND_DESTDIR/%{module}/META \
-	$RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
-cat <<EOF >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}/META
+cat <<EOF >> $OCAMLFIND_DESTDIR/%{module}/META
 directory="+%{module}"
 EOF
+ln -sr $OCAMLFIND_DESTDIR/%{module}/META \
+	$RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
 
 # not required with system package manager
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.so.owner
@@ -94,6 +93,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc Changes LICENSE README.md
 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllzarith.so
 %dir %{_libdir}/ocaml/%{module}
+%{_libdir}/ocaml/%{module}/META
 %if %{with ocaml_opt}
 %attr(755,root,root) %{_libdir}/ocaml/%{module}/zarith.cmxs
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-zarith.git/commitdiff/5c4f80f821fb55ff0f9c03c81ad1276683f4e0b2



More information about the pld-cvs-commit mailing list