commit eb6683dfa65c50601b63b71ecf366a139d80ffa7
Author: Jan RÄ™korajski <[email protected]>
Date:   Sat Nov 24 16:16:17 2018 +0100

    - restore opt bcond

 google-drive-ocamlfuse.spec |  9 +++++++++
 noopt-fuse.patch            | 19 +++++++++++++++++++
 2 files changed, 28 insertions(+)
---
diff --git a/google-drive-ocamlfuse.spec b/google-drive-ocamlfuse.spec
index d602afd..3e47f91 100644
--- a/google-drive-ocamlfuse.spec
+++ b/google-drive-ocamlfuse.spec
@@ -1,3 +1,10 @@
+#
+# Conditional build:
+%bcond_without opt             # build opt
+
+%ifarch x32
+%undefine      with_opt
+%endif
 Summary:       FUSE filesystem over Google Drive
 Name:          google-drive-ocamlfuse
 Version:       0.7.1
@@ -6,6 +13,7 @@ License:       BSD
 Group:         Applications/Networking
 Source0:       
https://github.com/astrada/google-drive-ocamlfuse/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: acb4837c6717bc75cdcc4095beeee287
+Patch0:                noopt-fuse.patch
 URL:           https://github.com/astrada/google-drive-ocamlfuse
 BuildRequires: cppo >= 0.9.3
 BuildRequires: ocaml >= 4.02.3
@@ -56,6 +64,7 @@ tej biblioteki.
 
 %prep
 %setup -q
+%{!?with_opt:%patch0 -p1}
 
 %build
 dune build @install --verbose
diff --git a/noopt-fuse.patch b/noopt-fuse.patch
new file mode 100644
index 0000000..b0b29fb
--- /dev/null
+++ b/noopt-fuse.patch
@@ -0,0 +1,19 @@
+--- google-drive-ocamlfuse-0.7.1/src/dune~     2018-09-27 21:04:55.000000000 
+0200
++++ google-drive-ocamlfuse-0.7.1/src/dune      2018-11-24 16:13:19.120287104 
+0100
+@@ -3,3 +3,6 @@
+  (wrapped false)
+  (flags :standard -w -3-27-32-58)
+  (libraries cryptokit extlib gapi-ocaml Fuse sqlite3 threads camlidl))
++ (env
++  (dev
++   (flags (:standard -warn-error -A))))
+--- google-drive-ocamlfuse-0.7.1/bin/dune~     2018-09-27 21:04:55.000000000 
+0200
++++ google-drive-ocamlfuse-0.7.1/bin/dune      2018-11-24 16:15:32.031740849 
+0100
+@@ -6,3 +6,7 @@
+ (install
+  (section bin)
+  (files (gdfuse.exe as google-drive-ocamlfuse)))
++
++(env
++ (dev
++  (flags (:standard -warn-error -A))))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/google-drive-ocamlfuse.git/commitdiff/eb6683dfa65c50601b63b71ecf366a139d80ffa7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to