From: Jan Rękorajski Date: Sat, 25 Jul 2015 13:01:05 +0000 (+0200) Subject: - cleaned up ocaml_opt bcond usage X-Git-Tag: auto/th/ocaml-curl-0.7.1-3~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-curl.git;a=commitdiff_plain;h=5750614e40eb6c6a0828c126a7f96b9d9ec806ac - cleaned up ocaml_opt bcond usage --- diff --git a/ocaml-curl.spec b/ocaml-curl.spec index 383fa81..042aceb 100644 --- a/ocaml-curl.spec +++ b/ocaml-curl.spec @@ -49,11 +49,7 @@ developing applications that use %{name}. %build %configure -%{__make} -j1 all \ -%if %{with ocaml_opt} - OCBYTE="ocamlc.opt -g" \ - OCOPT="ocamlopt.opt -g" -%endif +%{__make} -j1 all %install rm -rf $RPM_BUILD_ROOT @@ -90,8 +86,6 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/ocaml/stublibs/dllcurl-helper.so.owner %if %{with ocaml_opt} %exclude %{_libdir}/ocaml/curl/*.a -%exclude %{_libdir}/ocaml/curl/*.o -%exclude %{_libdir}/ocaml/curl/*.cmx %exclude %{_libdir}/ocaml/curl/*.cmxa %endif %exclude %{_libdir}/ocaml/curl/*.mli @@ -101,8 +95,6 @@ rm -rf $RPM_BUILD_ROOT %doc examples/* %if %{with ocaml_opt} %{_libdir}/ocaml/curl/*.a -%{_libdir}/ocaml/curl/*.o -%{_libdir}/ocaml/curl/*.cmx %{_libdir}/ocaml/curl/*.cmxa %endif %{_libdir}/ocaml/curl/*.mli diff --git a/ocaml_opt.patch b/ocaml_opt.patch index 05d0f0e..26c071a 100644 --- a/ocaml_opt.patch +++ b/ocaml_opt.patch @@ -1,13 +1,6 @@ --- ocurl-0.7.1/Makefile.in~ 2014-05-12 22:10:26.000000000 +0200 +++ ocurl-0.7.1/Makefile.in 2015-07-25 14:46:23.107163100 +0200 -@@ -32,13 +32,13 @@ - TARGETS += curl_lwt.cmo - endif - ifeq (@OCAMLBEST@,opt) --TARGETS += curl.cmxa -+TARGETS += curl.cmxa curl.a - ifneq (@OCAML_PKG_lwt@,no) - TARGETS += curl_lwt.cmx +@@ -32,10 +32,13 @@ endif endif @@ -16,6 +9,12 @@ ifneq (@OCAML_PKG_lwt@,no) INSTALL_TARGETS += curl_lwt.cmi curl_lwt.mli curl_lwt.o endif ++ifeq (@OCAMLBEST@,opt) ++INSTALL_TARGETS += curl.a ++endif + + all: + @$(MAKE) depend @@ -97,10 +97,10 @@ mkdir -p $(INSTALLDIR) $(INSTALLDATA) curl.cma $(INSTALLDIR)