-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmrig.spec
44 lines (34 loc) · 830 Bytes
/
xmrig.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-3.0-or-later
%global debug_package %{nil}
Name: xmrig
Version: 6.22.2
Release: 1%{?dist}
Summary: unified CPU/GPU miner
License: GPL-3.0-or-later
URL: https://xmrig.com
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/v%{version}.tar.gz
Patch0: disable-auto-donate.patch
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: hwloc-devel
BuildRequires: libstdc++-static
BuildRequires: libuv-static
BuildRequires: openssl-devel
%description
XMRig is a high performance, open source, cross platform
unified CPU/GPU miner
%prep
%setup -q
%patch 0
%cmake
%build
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{__cmake_builddir}/xmrig %{buildroot}%{_bindir}/xmrig
%files
%license LICENSE
%{_bindir}/xmrig
%changelog
%autochangelog