commit 0c7c953cf60f5905deaba1aedab97c3ed189f6ae
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Tue Apr 30 14:50:43 2013 +0200

    - disable opencl support (use git master version for that; CGMINER_2 makes 
sense only for testing)

 cgminer.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/cgminer.spec b/cgminer.spec
index 2168bdd..d95a91f 100644
--- a/cgminer.spec
+++ b/cgminer.spec
@@ -1,3 +1,4 @@
+%bcond_with    opencl
 Summary:       CPU/GPU/FPGA Miner by Con Kolivas
 Name:          cgminer
 Version:       2.11.4
@@ -8,7 +9,7 @@ URL:            http://forum.bitcoin.org/index.php?topic=28402.0
 Source0:       
http://ck.kolivas.org/apps/cgminer/2.11/%{name}-%{version}.tar.bz2
 # Source0-md5: 535ca85b504bd408d1eeddf4962ed685
 Patch0:                %{name}-build.patch
-BuildRequires: Mesa-libOpenCL-devel
+%{?with_opencl:BuildRequires:  Mesa-libOpenCL-devel}
 BuildRequires: amd-adl-sdk-devel
 BuildRequires: curl-devel
 BuildRequires: libusb-devel
@@ -30,6 +31,7 @@ This is a miner for Bitcoin.
 %{__autoconf}
 %configure \
        CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
+       %{!?with_opencl:--disable-opencl} \
        --disable-silent-rules \
        --enable-cpumining \
        --enable-scrypt \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cgminer.git/commitdiff/0c7c953cf60f5905deaba1aedab97c3ed189f6ae

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

Reply via email to