File ethminer.spec of Package ethminer

#
# spec file for package ethminer
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           ethminer
Version:        0.19.0
Release:        0
Summary:        Ethereum miner
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Other
URL:            https://github.com/ethereum-mining/%{name}
ExclusiveArch:  x86_64
Source:         %{name}-%{version}.tar.xz
Patch0:         %{name}-cmake.patch
Patch1:         %{name}-ethash.patch
BuildRequires:  cli11-devel
BuildRequires:  cmake >= 3.5
BuildRequires:  ethash-devel >= 0.7.0
BuildRequires:  gcc-c++
BuildRequires:  jsoncpp-devel
BuildRequires:  libboost_atomic-devel
BuildRequires:  libboost_chrono-devel
BuildRequires:  libboost_date_time-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libopenssl-devel

%description
Ethminer is an Ethash GPU mining worker: with ethminer you can mine every coin which relies on an Ethash Proof of Work thus including Ethereum, Ethereum Classic, Metaverse, Musicoin, Ellaism, Pirl, Expanse and others.

Features:
- OpenCL mining
- Nvidia CUDA mining
- realistic benchmarking against arbitrary epoch/DAG/blocknumber
- on-GPU DAG generation (no more DAG files on disk)
- stratum mining without proxy
- OpenCL devices picking
- farm failover (getwork + stratum)

%prep
%setup -q
%patch0
%patch1

%build
%{__mkdir_p} build/release
cd build/release
%{__cmake} -DCMAKE_BUILD_TYPE=release -DHUNTER_ENABLED=OFF -DUSE_SYS_OPENCL=ON -DETHASHCUDA=OFF -DETHASHCL=OFF -DAPICORE=ON -DBINKERN=ON -DETHDBUS=OFF ../..
%cmake_build

%install
%{__install} -D -m 0755 build/release/%{name}/%{name}  %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%doc CHANGELOG.md README.md
%license CODEOWNERS LICENSE

%changelog
openSUSE Build Service is sponsored by