]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- no split site-lib anymore
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 27 Mar 2021 09:08:42 +0000 (10:08 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 27 Mar 2021 09:08:42 +0000 (10:08 +0100)
ocaml.spec

index 1f338eb289bf58e015cd9251ebe54eb7cb53a3a3..5998d2ab85191a454d39bf93deb0640ffb60d9f1 100644 (file)
@@ -66,6 +66,7 @@ biblioteki TEMPLATE.
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
 install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 %{__make} install \
 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
 install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 %{__make} install \
@@ -74,14 +75,6 @@ install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 #cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 #cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-# 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
-directory="+%{module}"
-EOF
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -89,6 +82,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
 %dir %{_libdir}/ocaml/%{module}
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
 %dir %{_libdir}/ocaml/%{module}
+%{_libdir}/ocaml/%{module}/META
 %{_libdir}/ocaml/%{module}/*.cma
 %if %{with ocaml_opt}
 %attr(755,root,root) %{_libdir}/ocaml/%{module}/*.cmxs
 %{_libdir}/ocaml/%{module}/*.cma
 %if %{with ocaml_opt}
 %attr(755,root,root) %{_libdir}/ocaml/%{module}/*.cmxs
@@ -105,5 +99,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/ocaml/%{module}/*.cmx
 %{_libdir}/ocaml/%{module}/*.cmxa
 %endif
 %{_libdir}/ocaml/%{module}/*.cmx
 %{_libdir}/ocaml/%{module}/*.cmxa
 %endif
-%{_libdir}/ocaml/site-lib/%{module}
 %{_examplesdir}/%{name}-%{version}
 %{_examplesdir}/%{name}-%{version}
This page took 0.127791 seconds and 4 git commands to generate.