File eccoin.spec of Package eccoin
#
# spec file for package eccoin
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: eccoin
Version: 0.2.5.15rc1
Release: 0
Summary: P2P digital currency
License: MIT
Group: Productivity/Networking/Other
Url: http://www.trustedcryptos.com/
Source0: %{name}-%{version}.tar.xz
ExclusiveArch: i586 x86_64
BuildRequires: automake
%if 0%{?suse_version} && 0%{?suse_version} > 1320
BuildRequires: libboost_chrono-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
%else
BuildRequires: boost_1_58_0-devel
%endif
BuildRequires: gcc-c++
BuildRequires: libdb-4_8-devel
BuildRequires: libevent-devel
BuildRequires: libminiupnpc-devel
%if 0%{?suse_version} && 0%{?suse_version} > 1320
BuildRequires: libopenssl-1_0_0-devel
%else
BuildRequires: libopenssl-devel
%endif
BuildRequires: libtool
BuildRequires: libunivalue-devel
BuildRequires: zeromq-devel
%define daemon_name %{name}d
%define display_name ECCoin
%define description_text_1 Easy Clear Coin:
%define description_text_3 - PoS 25% Annual
%define description_text_4 - 25 Billion ECC Max.
%define description_text_5 - Low transaction fees
%define description_text_6 - 4 conf.for a transaction
%define description_text_7 - 50 conf.for blocks to mature
%description
%{description_text_1}
%{description_text_3}
%{description_text_4}
%{description_text_5}
%{description_text_6}
%{description_text_7}
%package -n %{daemon_name}
Summary: Headless daemon for %{name} crypto-currency
Group: Productivity/Networking/Other
%description -n %{daemon_name}
%{description_text_1}
%{description_text_3}
%{description_text_4}
%{description_text_5}
%{description_text_6}
%{description_text_7}
This package provides %{daemon_name}, a headless %{name} daemon.
%package doc
Summary: Documentation for %{name}
Group: Documentation/Man
BuildArch: noarch
%description doc
%{description_text_1}
%{description_text_3}
%{description_text_4}
%{description_text_5}
%{description_text_6}
%{description_text_7}
This package contains the documentation for %{name}.
%prep
%setup -q
%build
./autogen.sh
%configure --docdir=%{_defaultdocdir}/%{name} --enable-silent-rules --enable-hardening --enable-reduce-exports --enable-wallet --enable-upnp-default --disable-bench --disable-tests --with-miniupnpc --without-qrencode --with-boost --without-utils --without-libs --with-daemon --with-system-univalue --disable-static CXXFLAGS="${CXXFLAGS} -DBUILD_SUFFIX=%{_host_vendor}"
%if 0%{?suse_version} && 0%{?suse_version} >= 1500
%make_build
%else
%{__make} %{?_smp_mflags}
%endif
%{__strip} -s src/%{daemon_name}
%install
%{__install} -dm 0755 %{buildroot}%{_bindir}
%{__install} -m 0755 src/%{daemon_name} %{buildroot}%{_bindir}
# install documentation
%{__install} -d -m 0755 %{buildroot}%{_defaultdocdir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name} contributing.md README.md
%{__install} -d -m 0755 %{buildroot}%{_defaultlicensedir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_defaultlicensedir}/%{name} LICENSE
%{__install} -d -m 0755 %{buildroot}%{_defaultdocdir}/%{name}/doc
%{__cp} -a -t %{buildroot}%{_defaultdocdir}/%{name}/doc doc/*.md
%check
%{__make} %{?_smp_mflags} check
%files -n %{daemon_name}
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{daemon_name}
%files doc
%defattr(-,root,root,-)
%{_defaultdocdir}/%{name}/
%{_defaultlicensedir}/%{name}/
%changelog