File multiminer.spec of Package multiminer
#
# spec file for package multiminer
#
# Copyright (c) 2020 SUSE LLC
#
# 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: multiminer
Version: 4.3.0b1
Release: 0
Summary: A graphical application for crypto-coin mining
License: MIT
Group: Productivity/Networking/Other
URL: http://multiminerapp.com/
Source0: %{name}-%{version}.tar.gz
Source1: logo.png
BuildArch: noarch
BuildRequires: update-desktop-files
Requires: mono-complete
%description
MultiMiner is a graphical application for crypto-coin mining on Windows, OS X and Linux. MultiMiner simplifies switching individual devices (GPUs, ASICs, FPGAs) between crypto-currencies such as Bitcoin and Litecoin.
MultiMiner uses the underlying mining engine to detect available mining devices and then presents a user interface for selecting the coins you'd like to mine.
%prep
%setup -q -c
%build
%install
%{__install} -dm 0755 %{buildroot}%{_bindir}
echo -e "#!/bin/sh\n" > %{buildroot}%{_bindir}/%{name}
echo -e "cd %{_datadir}/%{name}" >> %{buildroot}%{_bindir}/%{name}
echo -e "%{_bindir}/mono MultiMiner.Win.exe" >> %{buildroot}%{_bindir}/%{name}
%{__install} -dm 0755 %{buildroot}%{_datadir}/%{name}
%{__install} -m 0644 -t %{buildroot}%{_datadir}/%{name} *
%{__install} -dm 0755 %{buildroot}%{_datadir}/pixmaps
%{__install} -m 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} MultiMiner MultiMiner %{name} %{name} Office Finance
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog