forked from blockchain-foundry/gcoin-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcoin-community.spec
75 lines (57 loc) · 2 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
Name: gcoin-community
Version: 1.1.3.2
Release: 1%{?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(openssl)
BuildRequires: pkgconfig(libsystemd)
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: gcoin-compat-openssl-devel
%global openssl_includedir %{_includedir}/gcoin-compat-openssl
%global openssl_libdir %{_libdir}/gcoin-compat-openssl
%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' \
LDFLAGS='%{__global_ldflags} -Wl,--enable-new-dtags -Wl,-rpath,%{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
* Sun Aug 28 2016 Ting-Wei Lan <lantw44@gmail.com> - 1.1.3.2-1
- Fix inconsistency between RPM spec and git tag
* Fri Aug 19 2016 Pang-Ting Huang <hihiben@gmail.com> - 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 <lantw44@gmail.com> - 1.1.2-1
- Initial public packaging