-
Notifications
You must be signed in to change notification settings - Fork 0
/
monero.spec
112 lines (91 loc) · 2.57 KB
/
monero.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# SPDX-License-Identifier: GPL-3.0-or-later
# fix build error on F40+
%global build_type_safety_c 0
Name: monero
Version: 0.18.3.4
Release: 3%{?dist}
Summary: Monero - the secure, private, untraceable cryptocurrency
License: MIT
URL: https://getmonero.org
Source0: https://downloads.getmonero.org/cli/%{name}-source-v%{version}.tar.bz2
Source1: https://www.getmonero.org/downloads/hashes.txt
Source2: binaryfate.asc
Patch0: optimize-o2.patch
# for source tarball verification
BuildRequires: coreutils
BuildRequires: gnupg2
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: pkgconf
BuildRequires: boost-devel
BuildRequires: libsodium-devel
BuildRequires: openpgm-devel
BuildRequires: openssl-devel
# Boost uses OpenSSL engine, which removed from openssl-devel (F41+)
%if 0%{?fedora} >= 41
BuildRequires: openssl-devel-engine
%endif
BuildRequires: unbound-devel
BuildRequires: zeromq-devel
# for input editing
BuildRequires: readline-devel
# for hardware wallet
BuildRequires: hidapi-devel
BuildRequires: libusb1-devel
BuildRequires: protobuf-compiler
BuildRequires: protobuf-devel
BuildRequires: systemd-devel
%description
Monero - Private decentralized cryptocurrency that keeps
your finances confidential and secure.
%package utils
Summary: Monero misc utils
%description utils
Monero CLI misc utils
%package wallet
Summary: Monero wallet
%description wallet
Monero CLI wallet
%prep
# print host cpu info
cat /proc/cpuinfo
# check PGP signature
gpg --import %{SOURCE2}
gpg --output binaryfate-keyring.gpg --export binaryfate@getmonero.org
gpgv --keyring ./binaryfate-keyring.gpg %{SOURCE1}
# calc hashes
trusted_hash=$(grep monero-source %{SOURCE1} | head -c 64)
archive_hash=$(sha256sum %{SOURCE0} | head -c 64)
# check against correct hash
if ! [ $trusted_hash = $archive_hash ]; then
exit 1
fi
%autosetup -n %{name}-source-v%{version}
%build
%make_build release
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 build/release/bin/* %{buildroot}%{_bindir}/
%files
%license LICENSE
%{_bindir}/monerod
%files utils
%license LICENSE
%{_bindir}/monero-blockchain-ancestry
%{_bindir}/monero-blockchain-depth
%{_bindir}/monero-blockchain-export
%{_bindir}/monero-blockchain-import
%{_bindir}/monero-blockchain-mark-spent-outputs
%{_bindir}/monero-blockchain-prune
%{_bindir}/monero-blockchain-prune-known-spent-data
%{_bindir}/monero-blockchain-stats
%{_bindir}/monero-blockchain-usage
%{_bindir}/monero-gen-ssl-cert
%{_bindir}/monero-gen-trusted-multisig
%files wallet
%license LICENSE
%{_bindir}/monero-wallet-cli
%{_bindir}/monero-wallet-rpc
%changelog
%autochangelog