File zcash-gui.spec of Package zcash-gui
#
# spec file for package zcash-gui
#
# 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: zcash-gui
Version: 0.73beta
Release: 0
Summary: ZCash GUI wallet
License: MIT
Group: Productivity/Networking/Other
Url: https://github.com/vaklinov/zcash-swing-wallet-ui
Source0: %{name}-%{version}.tar.xz
Source1: launcher.sh
BuildArch: noarch
ExclusiveArch: noarch x86_64
BuildRequires: ant
BuildRequires: java-devel >= 1.7.0
BuildRequires: update-desktop-files
Requires: java >= 1.7.0
Requires: kdialog
Requires: zcash-utils
Requires: zcashd
# set binary names
%define daemon_name %{progname}d
%define cli_name %{progname}-cli
%define tx_name %{progname}-tx
%define bench_name bench_%{progname}
%define gui_name %{name}
%define description_text This program provides a Graphical User Interface (GUI) for the ZCash client tools that acts as a wrapper and presents the information in a user-friendly manner.
%description
%{description_text}
%package doc
Summary: Documentation for %{name}
Group: Documentation/Man
BuildArch: noarch
%description doc
%{description_text}
This package contains the documentation for %{name}.
%prep
%setup -q
%build
%ant -buildfile src/build/build.xml
%install
%{__install} -D -m 0755 %{S:1} %{buildroot}%{_bindir}/%{name}
%{__install} -D -m 0644 build/jars/ZCashSwingWalletUI.jar %{buildroot}%{_datadir}/%{name}/ZCashSwingWalletUI.jar
# install desktop file
%{__install} -D -m 0644 src/resources/images/zcash-logo-large.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} ZCash-GUI "ZCash GUI Wallet" %{name} %{name} Office Finance
# install documentation
%{__install} -d -m 0755 %{buildroot}%{_defaultdocdir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name} README.md
%{__install} -d -m 0755 %{buildroot}%{_defaultlicensedir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_defaultlicensedir}/%{name} LICENSE
%{__rm} docs/IV_Github_GPG_public*
%{__cp} -a docs %{buildroot}%{_defaultdocdir}/%{name}/
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%files doc
%defattr(-,root,root,-)
%{_defaultdocdir}/%{name}/
%{_defaultlicensedir}/%{name}/
%changelog