- leave META where dune wants it auto/th/ocaml-zarith-1.12-2
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Mar 2021 21:32:18 +0000 (22:32 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Mar 2021 21:32:18 +0000 (22:32 +0100)
- rel 2

ocaml-zarith.spec

index 50c222baaab194934c9e3d5f7b436cf0a2bd9ab7..2bcbf24703fb88921646a222e5bedef479f90f01 100644 (file)
@@ -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
This page took 0.059101 seconds and 4 git commands to generate.