]> git.pld-linux.org Git - packages/ocaml-zarith.git/blobdiff - ocaml-zarith.spec
- leave META where dune wants it
[packages/ocaml-zarith.git] / ocaml-zarith.spec
index 9f6747998d6b41ae6b7e0fc8197415d69bda3a85..2bcbf24703fb88921646a222e5bedef479f90f01 100644 (file)
 Summary:       Zarith: arbitrary-precision integers
 Summary(pl.UTF-8):     Zarith - liczby całkowite dowolnej precyzji
 Name:          ocaml-zarith
-Version:       1.9.1
-Release:       1
+Version:       1.12
+Release:       2
 License:       LGPL v2 with linking exception
 Group:         Applications/Math
 #Source0Download: https://github.com/ocaml/Zarith/releases
 Source0:       https://github.com/ocaml/Zarith/archive/release-%{version}/Zarith-%{version}.tar.gz
-# Source0-md5: af41b7534a4c91a8f774f04e307c1c66
+# Source0-md5: bf368f3d9e20b6b446d54681afc05a04
 URL:           http://github.com/ocaml/Zarith
 BuildRequires: bash
 BuildRequires: gmp-devel
@@ -59,6 +59,7 @@ przy użyciu biblioteki Zarith.
 %setup -q -n Zarith-release-%{version}
 
 %build
+CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
 ./configure \
        -installdir $RPM_BUILD_ROOT%{_libdir}/ocaml \
@@ -74,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
@@ -93,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.061911 seconds and 4 git commands to generate.