From 5c4f80f821fb55ff0f9c03c81ad1276683f4e0b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 21 Mar 2021 22:32:18 +0100 Subject: [PATCH] - 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 <> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}/META +cat <> $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 -- 2.43.0