2025-04-04 06:32:48 +02:00
|
|
|
#
|
|
|
|
# spec file for package electrum
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 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: electrum
|
2025-07-29 12:18:18 +02:00
|
|
|
Version: 4.6.0
|
2025-04-04 06:32:48 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Lightweight BitCoin Client
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
URL: https://%{name}.org/
|
|
|
|
Source0: https://download.electrum.org/%{version}/Electrum-%{version}.tar.gz
|
|
|
|
Source1: https://download.electrum.org/%{version}/Electrum-%{version}.tar.gz.asc
|
|
|
|
# Obtained from https://raw.githubusercontent.com/spesmilo/electrum/master/pubkeys/ThomasV.asc
|
|
|
|
Source2: Electrum.keyring
|
2025-07-29 12:18:18 +02:00
|
|
|
Patch0: 0001-lift-attrs-dnspython-versions.patch
|
2025-04-04 06:32:48 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: bitcoin-utils
|
|
|
|
BuildRequires: fdupes
|
2025-07-29 12:18:18 +02:00
|
|
|
BuildRequires: libsecp256k1-6
|
2025-04-04 06:32:48 +02:00
|
|
|
BuildRequires: python3-Kivy
|
|
|
|
BuildRequires: python3-QDarkStyle
|
|
|
|
BuildRequires: python3-PySocks >= 1.6.6
|
|
|
|
BuildRequires: python3-aiohttp-socks
|
|
|
|
BuildRequires: python3-aiorpcX
|
|
|
|
BuildRequires: python3-attrs
|
|
|
|
BuildRequires: python3-bitstring
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-dnspython
|
2025-07-29 12:18:18 +02:00
|
|
|
BuildRequires: python3-electrum-aionostr
|
|
|
|
BuildRequires: python3-electrum-ecc
|
2025-04-04 06:32:48 +02:00
|
|
|
BuildRequires: python3-jsonpatch
|
|
|
|
BuildRequires: python3-jsonrpclib-pelix
|
|
|
|
BuildRequires: python3-pbkdf2
|
|
|
|
BuildRequires: python3-protobuf
|
|
|
|
BuildRequires: python3-qrcode
|
|
|
|
BuildRequires: python3-qt6-devel
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
BuildRequires: python3-setuptools
|
2025-07-29 12:18:18 +02:00
|
|
|
Provides: qt6qmlimport(org.electrum)
|
2025-04-04 06:32:48 +02:00
|
|
|
Provides: qt6qmlimport(org.electrum.1)
|
2025-07-29 12:18:18 +02:00
|
|
|
Requires: libsecp256k1-6
|
|
|
|
Requires: python3-PyQt6
|
2025-04-04 06:32:48 +02:00
|
|
|
Recommends: %{name}-lang
|
|
|
|
%{?python_enable_dependency_generator}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Electrum is an easy to use BitCoin wallet. It protects you from losing coins in
|
|
|
|
a backup mistake or computer failure, because your wallet can be recovered from
|
|
|
|
a secret phrase that you can write on paper or learn by heart. There is no
|
|
|
|
waiting time when you start the client, because it does not download the
|
|
|
|
BitCoin blockchain.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n Electrum-%{version}
|
|
|
|
%{__sed} -i -e 's#^Exec=sh -c "PATH=.* \(electrum.* %u\)"$#Exec=\1#' %{name}.desktop
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python3_install
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{python3_sitelib}/electrum/plugins/payserver/www/{.editorconfig,.gitignore}
|
|
|
|
|
|
|
|
find %{buildroot}%{python3_sitelib} -type f \( -name '*.py' -o -name electrum \) -exec sed -i '1 { /#! *\/usr\/bin\/env python3*/ d }' {} + -exec chmod a-x {} +
|
2025-07-29 12:18:18 +02:00
|
|
|
find %{buildroot}%{python3_sitelib} -type f -name '.gitignore' -delete
|
2025-04-04 06:32:48 +02:00
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
%fdupes %{buildroot}%{python3_sitelib}/%{name}
|
|
|
|
%fdupes %{buildroot}%{_datadir}/icons/ %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
|
|
|
|
%check
|
|
|
|
# it fails:
|
|
|
|
#%%{__python3} setup.py test
|
|
|
|
|
|
|
|
# at least a naive test
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}/
|
|
|
|
%{buildroot}%{_bindir}/%{name} --help | grep -q 'show this help message and exit'
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS README.md RELEASE-NOTES
|
|
|
|
%license LICENCE
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%exclude %{python3_sitelib}/%{name}/locale
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%dir %{_datadir}/icons/hicolor/
|
|
|
|
%dir %{_datadir}/icons/hicolor/*x*/
|
|
|
|
%dir %{_datadir}/icons/hicolor/*x*/apps/
|
|
|
|
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2025-07-29 12:18:18 +02:00
|
|
|
%dir %{python3_sitelib}/%{name}/locale/
|
|
|
|
%dir %{python3_sitelib}/%{name}/locale/locale/
|
|
|
|
%dir %{python3_sitelib}/%{name}/locale/locale/*/
|
|
|
|
%dir %{python3_sitelib}/%{name}/locale/locale/*/*/
|
2025-04-04 06:32:48 +02:00
|
|
|
|
|
|
|
%changelog
|