File cgminer.spec of Package cgminer
#
# spec file for package cgminer
#
# Copyright (c) 2013 Bernhard M. Wiedemann
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cgminer
Version: 3.8.2
Release: 20.1
Summary: GPU, FPGA and ASIC bitcoin miner
License: GPL-3.0+
Group: Hardware/Other
Url: http://ck.kolivas.org/apps/cgminer/
Source0: %{name}-%{version}.tar.bz2
%if 0%{?suse_version}
Patch0: cgminer_use_system_libjansson.patch
BuildRequires: autoconf automake pkg-config curl-devel ncurses-devel libusb-1_0-devel libtool libudev-devel libjansson-devel
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: autoconf automake pkg-config curl-devel ncurses-devel libusb1-devel libtool libudev-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Packager: Alessandro de Oliveira Faria (A.K.A CABELO) <cabelo@opensuse.org>
%description
cgminer is a bitcoin miner with support for GPU, FPGA and ASIC hardware
%prep
%setup -n %name-%{version}
%if 0%{?suse_version}
%patch0 -p1
%endif
%build
autoreconf -if
%configure --enable-icarus --with-system-libusb --enable-bflsc
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(644,root,root)
%{_bindir}/cgminer
%changelog