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
%{__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
%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