[packages/cgminer/CGMINER_2] - 2.x series still with CPU support
arekm
arekm at pld-linux.org
Tue Apr 30 13:25:00 CEST 2013
commit fe207cff42f8c813105f05c5e25f38ef5fa84bd7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Apr 30 13:24:48 2013 +0200
- 2.x series still with CPU support
cgminer-build.patch | 31 ++++++++++++++-----------------
cgminer.spec | 14 ++++++--------
2 files changed, 20 insertions(+), 25 deletions(-)
---
diff --git a/cgminer.spec b/cgminer.spec
index 0d91769..1c231ba 100644
--- a/cgminer.spec
+++ b/cgminer.spec
@@ -1,12 +1,12 @@
-Summary: GPU/FPGA/ASIC Miner by Con Kolivas
+Summary: CPU/GPU/FPGA Miner by Con Kolivas
Name: cgminer
-Version: 3.1.0
+Version: 2.11.4
Release: 1
License: GPL v2
Group: Applications/Networking
URL: http://forum.bitcoin.org/index.php?topic=28402.0
-Source0: http://ck.kolivas.org/apps/cgminer/%{name}-%{version}.tar.bz2
-# Source0-md5: 1493626854c8654e4285bcd7ec7b0f7d
+Source0: http://ck.kolivas.org/apps/cgminer/2.11/%{name}-%{version}.tar.bz2
+# Source0-md5: 535ca85b504bd408d1eeddf4962ed685
Patch0: %{name}-build.patch
BuildRequires: Mesa-libOpenCL-devel
BuildRequires: amd-adl-sdk-devel
@@ -23,7 +23,7 @@ This is a miner for Bitcoin.
%prep
%setup -q
-%patch0 -p1
+#%patch0 -p1
%build
%{__aclocal}
@@ -32,10 +32,8 @@ This is a miner for Bitcoin.
CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
--disable-silent-rules \
--enable-scrypt \
- --enable-bflsc \
--enable-bitforce \
--enable-icarus \
- --enable-avalon \
--enable-modminer \
--enable-ztex
@@ -57,7 +55,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc API-README ASIC-README AUTHORS FPGA-README GPU-README
+%doc API-README AUTHORS FPGA-README
%doc NEWS README SCRYPT-README
%attr(755,root,root) %{_bindir}/%{name}
%dir %{_libdir}/%{name}
diff --git a/cgminer-build.patch b/cgminer-build.patch
index dd13c89..0e798b3 100644
--- a/cgminer-build.patch
+++ b/cgminer-build.patch
@@ -1,20 +1,3 @@
---- cgminer-3.1.0/configure.ac.org 2013-04-30 13:02:59.103475727 +0200
-+++ cgminer-3.1.0/configure.ac 2013-04-30 13:03:46.147989707 +0200
-@@ -188,10 +188,10 @@
- if test "$found_opencl" = 1; then
- if test "x$adl" != xno; then
- ADL_CPPFLAGS=
-- AC_CHECK_FILE([$srcdir/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$srcdir], have_adl=false,)
-- if test x$have_adl+$have_cgminer_sdk = xfalse+true; then
-- AC_CHECK_FILE([$CGMINER_SDK/include/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$CGMINER_SDK/include], have_adl=false,)
-- fi
-+ saved_CFLAGS="$CFLAGS"
-+ CFLAGS="$CFLAGS -DLINUX=1"
-+ AC_CHECK_HEADER(adl_sdk.h, [have_adl=true], [have_adl=false])
-+ CFLAGS="$saved_CFLAGS"
- if test x$have_adl = xtrue
- then
- AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
diff -urN cgminer-3.1.0.org/adl.c cgminer-3.1.0/adl.c
--- cgminer-3.1.0.org/adl.c 2013-03-07 06:38:09.000000000 +0100
+++ cgminer-3.1.0/adl.c 2013-04-30 13:08:26.741697503 +0200
@@ -58,3 +41,17 @@ diff -urN cgminer-3.1.0.org/miner.h cgminer-3.1.0/miner.h
#endif
#ifdef HAVE_LIBUSB
+--- cgminer-2.11.4/configure.ac~ 2013-04-05 02:59:25.000000000 +0200
++++ cgminer-2.11.4/configure.ac 2013-04-30 13:23:10.097181217 +0200
+@@ -186,7 +186,10 @@
+
+ if test "$found_opencl" = 1; then
+ if test "x$adl" != xno; then
+- AC_CHECK_FILE([${ADL_SDK:-ADL_SDK}/adl_sdk.h], have_adl=true, have_adl=false,)
++ saved_CFLAGS="$CFLAGS"
++ CFLAGS="$CFLAGS -DLINUX=1"
++ AC_CHECK_HEADER(adl_sdk.h, [have_adl=true], [have_adl=false])
++ CFLAGS="$saved_CFLAGS"
+ if test x$have_adl = xtrue
+ then
+ AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cgminer.git/commitdiff/fe207cff42f8c813105f05c5e25f38ef5fa84bd7
More information about the pld-cvs-commit
mailing list