]> git.pld-linux.org Git - packages/cgminer.git/commitdiff
- disable opencl support (use git master version for that; CGMINER_2 makes sense...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 30 Apr 2013 12:50:43 +0000 (14:50 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 30 Apr 2013 12:50:43 +0000 (14:50 +0200)
cgminer.spec

index 2168bdd47673b605eb5be2d79c9308206838e694..d95a91f781577a67120ac0b1b7bfd860a13cbf87 100644 (file)
@@ -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 \
This page took 0.087337 seconds and 4 git commands to generate.