File darkcoin.spec of Package darkcoin

#
# spec file for package darkcoin
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           darkcoin
Version:        0.11.1.25
Release:        0
Summary:        P2P digital currency
License:        MIT
Group:          Productivity/Networking/Other
Url:            http://www.%{name}.io/
Source0:        %{name}-%{version}.tar.xz
ExcludeArch:    aarch64 ppc ppc64 ppc64le
BuildRequires:  automake
BuildRequires:  boost-devel
BuildRequires:  libdb-4_8-devel
BuildRequires:  libminiupnpc-devel
BuildRequires:  libqt4-devel
BuildRequires:  protobuf-devel
BuildRequires:  qrencode-devel
BuildRequires:  update-desktop-files

%define daemon_name %{name}d
%define display_name DarkCoin
%define cli_name %{name}-cli
%define gui_name %{name}-qt

%description

%package cli
Summary:        CLI for the %{display_name} crypto-currency
Group:          Productivity/Networking/Other

%description cli
DarkCoin is a lite version of BitCoin using X11 as a proof-of-work algorithm.

- Super secure hashing algorithm: 11 rounds of scientific hashing functions (blake, bmw, groestl, jh, keccak, skein, luffa, cubehash, shavite, simd, echo)
- Block reward is controlled by moore's law: 2222222/(((Difficulty+2600)/9)^2)
- GPU/CPU only mining
- Block generation: 2.5 minutes
- Difficulty Retargets every block using Dark Gravity Wave
- Est. ~7M Coins in 2015, ~13M in 2020, ~23M in 2030
- Anonymous blockchain using DarkSend technology

This package provides %{display_name}-CLI, a command line interface for %{display_name}.

%package qt
Summary:        GUI for the %{display_name} crypto-currency
Group:          Productivity/Networking/Other

%description qt
DarkCoin is a lite version of BitCoin using X11 as a proof-of-work algorithm.

- Super secure hashing algorithm: 11 rounds of scientific hashing functions (blake, bmw, groestl, jh, keccak, skein, luffa, cubehash, shavite, simd, echo)
- Block reward is controlled by moore's law: 2222222/(((Difficulty+2600)/9)^2)
- GPU/CPU only mining
- Block generation: 2.5 minutes
- Difficulty Retargets every block using Dark Gravity Wave
- Est. ~7M Coins in 2015, ~13M in 2020, ~23M in 2030
- Anonymous blockchain using DarkSend technology

This package provides %{display_name}-Qt, a GUI for %{display_name} based on Qt.

%package -n %{daemon_name}
Summary:        Headless daemon for %{name} crypto-currency
Group:          Productivity/Networking/Other

%description -n %{daemon_name}
DarkCoin is a lite version of BitCoin using X11 as a proof-of-work algorithm.

- Super secure hashing algorithm: 11 rounds of scientific hashing functions (blake, bmw, groestl, jh, keccak, skein, luffa, cubehash, shavite, simd, echo)
- Block reward is controlled by moore's law: 2222222/(((Difficulty+2600)/9)^2)
- GPU/CPU only mining
- Block generation: 2.5 minutes
- Difficulty Retargets every block using Dark Gravity Wave
- Est. ~7M Coins in 2015, ~13M in 2020, ~23M in 2030
- Anonymous blockchain using DarkSend technology

This package provides %{daemon_name}, a headless %{name} daemon.

%package test
Summary:        Automated tests for %{name} client
Group:          Productivity/Networking/Other

%description test
DarkCoin is a lite version of BitCoin using X11 as a proof-of-work algorithm.

- Super secure hashing algorithm: 11 rounds of scientific hashing functions (blake, bmw, groestl, jh, keccak, skein, luffa, cubehash, shavite, simd, echo)
- Block reward is controlled by moore's law: 2222222/(((Difficulty+2600)/9)^2)
- GPU/CPU only mining
- Block generation: 2.5 minutes
- Difficulty Retargets every block using Dark Gravity Wave
- Est. ~7M Coins in 2015, ~13M in 2020, ~23M in 2030
- Anonymous blockchain using DarkSend technology

This package provides automated tests for %{gui_name} and %{daemon_name}.

%prep
%setup -q

%build
./autogen.sh
%configure --docdir=%{_defaultdocdir}/%{name} --enable-wallet --with-miniupnpc --with-qrencode --with-boost=yes --with-cli=yes --with-daemon=yes --with-gui=qt4
%{__make} %{?_smp_mflags}
%{__strip} -s src/%{cli_name}
%{__strip} -s src/qt/%{gui_name}
%{__strip} -s src/%{daemon_name}
%{__strip} -s src/qt/test/test_%{gui_name}
%{__strip} -s src/test/test_%{name}

%install
%{__make} install DESTDIR=%{buildroot}
%{__install} -dm 0755 %{buildroot}%{_datadir}/pixmaps
%{__install} -m 0644 share/pixmaps/bitcoin256.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{gui_name} %{display_name} "%{display_name} Wallet" %{gui_name} %{name} Office Finance

%files cli
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{cli_name}
%doc README.md

%files qt
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{gui_name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{gui_name}.desktop
%doc README.md

%files -n %{daemon_name}
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{daemon_name}
%doc README.md

%files test
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/test_%{name}
%attr(755,root,root) %{_bindir}/test_%{gui_name}
%doc README.md

%changelog
openSUSE Build Service is sponsored by