-
Notifications
You must be signed in to change notification settings - Fork 58
/
gcoin-community.spec
120 lines (95 loc) · 3.22 KB
/
gcoin-community.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
113
114
115
116
117
118
119
120
Name: gcoin-community
Version: 1.2.1.1
Release: 2%{?dist}
Summary: Gcoin core daemon - reference client and server
Group: Applications/System
License: ASL 2.0
URL: http://g-coin.org
Source0: https://github.com/OpenNetworking/%{name}/archive/v%{version}.tar.gz
BuildRequires: autoconf automake libtool
BuildRequires: boost-devel libdb-cxx-devel
BuildRequires: pkgconfig(libsystemd)
# RHEL and CentOS
%if 0%{?rhel}
%if 0%{?rhel} <= 7
BuildRequires: gcoin-compat-openssl-devel
%global openssl_includedir %{_includedir}/gcoin-compat-openssl
%global openssl_libdir %{_libdir}/gcoin-compat-openssl
%endif
%else
# Fedora
%if 0%{?fedora}
%if 0%{?fedora} <= 25
BuildRequires: openssl-devel
%else
BuildRequires: compat-openssl10-devel
%endif
# Other unsupported distributions
%else
BuildRequires: pkgconfig(openssl)
%endif
%endif
%description
Gcoin blockchain is an open-source software built for next-generation
digital infrastructure, the distributed ledger.
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf -if
%configure \
%if 0%{?rhel} && 0%{?rhel} <= 7
CRYPTO_CFLAGS='-I%{openssl_includedir}' \
CRYPTO_LIBS='%{openssl_libdir}/libcrypto.so' \
SSL_CFLAGS='-I%{openssl_includedir}' \
SSL_LIBS='%{openssl_libdir}/libssl.so' \
CPPFLAGS='-I%{openssl_includedir}' \
LDFLAGS='%{__global_ldflags} -Wl,--enable-new-dtags -Wl,-rpath,%{openssl_libdir} -L%{openssl_libdir}' \
%endif
--enable-systemd-journal --without-miniupnpc CXX="c++ -std=gnu++03"
%make_build
%install
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 src/gcoind %{buildroot}%{_bindir}
install -m 755 src/gcoin-cli %{buildroot}%{_bindir}
%check
make check
%files
%{_bindir}/gcoind
%{_bindir}/gcoin-cli
%license COPYING
%doc README.md
%changelog
* Mon Jul 03 2017 Ting-Wei Lan <[email protected]> - 1.2.1.1-2
- Fix build on Fedora 26 and later.
* Thu Jun 15 2017 Pang-Ting Huang <[email protected]> - 1.2.1.1-1
- Fix the incorrect date format in the spec file.
* Mon Jun 12 2017 Bo-Yu Lin <[email protected]> - 1.2.1-1
- Reorder type of transaction.
- Prevent same pubkey in a alliance redeem script.
- Fix voting bug when -txindex turn on.
- Fix rpc signrawtransaction for license/miner related tx.
- Fix assignfixedaddress.
- Fix CheckTxFeeAndColor.
- Fix bug when transferring license.
* Sat Feb 18 2017 Bo-Yu Lin <[email protected]> - 1.2-1
- New role Miner.
- Use multi-sig policy to handle alliance relative issue.
- Allow higher fee.
- Update COPYING.
- Increase limitation of multi-sig address.
* Thu Nov 17 2016 Bo-Yu Lin <[email protected]> - 1.1.4-1
- Fix the bug of getlicenselist.
- Remove member only policy
- Update gcoin-compat-openssl.spec
- New RPC: assignfixedaddress, which used to set default address
* Sun Aug 28 2016 Ting-Wei Lan <[email protected]> - 1.1.3.2-1
- Fix inconsistency between RPM spec and git tag
* Fri Aug 19 2016 Pang-Ting Huang <[email protected]> - 1.1.3-1
- Put the data into "main" directory when running gcoind
- Naming refactor : bitcoin -> gcoin
- Remove order(exchange) mechanism (ORDER, MATCH, CANCEL)
- RPC refinement: fix rpc message
- Fix account related functions
- Apply multicurrency to some RPCs
* Tue Jul 05 2016 Ting-Wei Lan <[email protected]> - 1.1.2-1
- Initial public packaging