4c4c5df
Name:           electrum
Jonathan Schleifer 3331205
Version:        4.5.2
Jonathan Schleifer 3331205
Release:        1%{?dist}
4c4c5df
Summary:        A lightweight Bitcoin Client
4c4c5df
72e3b1d
License:        MIT
4c4c5df
URL:            https://electrum.org/
Jonathan Schleifer 3331205
Source0:        https://download.electrum.org/%{version}/Electrum-sourceonly-%{version}.tar.gz
Jonathan Schleifer 3331205
Source1:        https://download.electrum.org/%{version}/Electrum-sourceonly-%{version}.tar.gz.asc
cf3216f
#Wed Feb 01 2017, exported the upstream gpg key using the command:
Henrik Nordström 4d17058
#gpg2 --export --export-options export-minimal 6694D8DE7BE8EE5631BED9502BD5824B7F9470E6 9EDAFF80E080659604F4A76B2EBB056FD847F8A7 0EEDCFD5CAFB459067349B23CA9EEEC43DF911DC > gpgkey-electrum.gpg
82ef906
Source2:        gpgkey-%{name}.gpg
82ef906
Source3:        %{name}.metainfo.xml
82ef906
Source4:        %{name}.1
911258a
Jonathan Schleifer 3331205
Patch0:         relax-protobuf-requirement.patch
67fd8a8
4c4c5df
BuildArch:      noarch
67fd8a8
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
67fd8a8
ExcludeArch:    %{ix86}
4c4c5df
97782f0
BuildRequires:  python3-devel
Jonathan Schleifer 3331205
BuildRequires:  python3-wheel
4c4c5df
BuildRequires:  gettext
4c4c5df
82ef906
BuildRequires:  desktop-file-utils
e5dda5b
BuildRequires:  libappstream-glib
cf3216f
BuildRequires:  gnupg2
Jonathan Schleifer 3331205
BuildRequires:  protobuf-compiler
e5dda5b
82ef906
Requires:       hicolor-icon-theme
3ce3366
911258a
# Unlucky rpm automatic dependency generation doesn't catch this dependency
b1f51d2
Requires:       libsecp256k1
911258a
3ce3366
# Extra items are not tracked by runtime autodeps yet
3ce3366
Requires:       %{py3_dist cryptography}
3ce3366
Requires:       %{py3_dist pyqt5}
3ce3366
3ce3366
Recommends:     zbar
3ce3366
Recommends:     python3-trezor >= 0.13.0
3ce3366
Recommends:     python3-btchip >= 0.1.32
4c4c5df
aa30e42
Conflicts:      python3-trezor < 0.11.2
Henrik Nordström c1ddf7b
Conflicts:      python3-btchip < 0.1.32
78de767
4c4c5df
%description
4c4c5df
Electrum is an easy to use Bitcoin client. It protects you from losing
4c4c5df
coins in a backup mistake or computer failure, because your wallet can
4c4c5df
be recovered from a secret phrase that you can write on paper or learn
4c4c5df
by heart. There is no waiting time when you start the client, because
4c4c5df
it does not download the Bitcoin block chain.
4c4c5df
4c4c5df
%prep
82ef906
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
Jonathan Schleifer 3331205
%autosetup -p0 -n Electrum-%{version}
4c4c5df
rm -rf Electrum.egg-info
4c4c5df
rm -rf packages
4c4c5df
Jonathan Schleifer 3331205
contrib/generate_payreqpb2.sh
Jonathan Schleifer 3331205
contrib/build_locale.sh electrum/locale electrum/locale
Jonathan Schleifer 3331205
3ce3366
%generate_buildrequires
3ce3366
%pyproject_buildrequires -x gui -x crypto
3ce3366
4c4c5df
%build
3ce3366
%pyproject_wheel
4c4c5df
4c4c5df
%install
3ce3366
%pyproject_install
3ce3366
%pyproject_save_files %{name}
3ce3366
82ef906
install -Dpm 644 %{SOURCE3} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
911258a
install -Dpm 644 %{SOURCE4} %{buildroot}%{_mandir}/man1/%{name}.1
4c4c5df
4c4c5df
# Remove shebang lines from .py files that aren't executable, and
4c4c5df
# remove executability from .py files that don't have a shebang line:
4c4c5df
# Source: dmalcolm.fedorapeople.org/python3.spec
4c4c5df
find %{buildroot} -name \*.py \
4c4c5df
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
4c4c5df
  -print -exec sed -i '1d' {} \; \) -o \( \
4c4c5df
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
4c4c5df
  -exec chmod a-x {} \; \) \)
4c4c5df
e5dda5b
%check
3ce3366
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.metainfo.xml
82ef906
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
e5dda5b
3ce3366
%files -f %{pyproject_files}
3ce3366
%doc AUTHORS README.md RELEASE-NOTES
4c4c5df
%license LICENCE
82ef906
%{_bindir}/%{name}
911258a
%{_mandir}/man1/%{name}.1*
82ef906
%{_datadir}/icons/hicolor/*/apps/%{name}.png
e5dda5b
%{_datadir}/pixmaps/%{name}.png
e5dda5b
%{_datadir}/applications/%{name}.desktop
82ef906
%{_metainfodir}/%{name}.metainfo.xml
4c4c5df
4c4c5df
%changelog
Jonathan Schleifer 3331205
* Sun Jan 28 2024 Jonathan Schleifer <js@nil.im> - 4.5.2-1
Jonathan Schleifer 3331205
- Updated to version 4.5.2.
Jonathan Schleifer 3331205
- Switched to sourceonly tarball.
Jonathan Schleifer 3331205
- Regenerate pb2 files to lower protobuf requirement.
Jonathan Schleifer 3331205
85f069a
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-5
85f069a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
85f069a
2e5e62b
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-4
2e5e62b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2e5e62b
67fd8a8
* Sun Sep 24 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 4.3.4-3
67fd8a8
- Drop x86 support (leaf package)
67fd8a8
bad55be
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-2
bad55be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
bad55be
d65b6bb
* Wed Mar 01 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 4.3.4-1
d65b6bb
- Updated to version 4.3.4.
d65b6bb
b3cd820
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-2
b3cd820
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
b3cd820
be1dfa0
* Wed Jan 04 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 4.3.3-1
be1dfa0
- Updated to version 4.3.3.
be1dfa0
1da77d4
* Mon Nov 07 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 4.3.2-1
1da77d4
- Updated to version 4.3.2.
1da77d4
82ef906
* Wed Aug 31 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 4.3.1-1
82ef906
- Updated to version 4.3.1.
3ce3366
- Converted to 202x-era Python packaging guidelines.
82ef906
- Switched metainfo to the latest XDG standard.
82ef906
- Switched to gpgverify macros as required by packaging guidelines.
82ef906
- Added desktop file check.
82ef906
- Moved binary file with GPG keys to Fedora look-aside cache.
82ef906
49ee5d3
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-4
49ee5d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
49ee5d3
cd32b8f
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.2.1-3
cd32b8f
- Rebuilt for Python 3.11
cd32b8f
Henrik Nordström c1ddf7b
* Tue Apr 12 2022 Henrik Nordstrom <henrik@henriknordstrom.net> - 4.2.1-2
Henrik Nordström c1ddf7b
- Bump package requirements to match the code
Henrik Nordström c1ddf7b
Jonathan Schleifer 0196c24
* Sun Mar 27 2022 Jonathan Schleifer <js@nil.im> - 4.2.1-1
Jonathan Schleifer 0196c24
- Updated to 4.2.1
Jonathan Schleifer 0196c24
4b64948
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-2
4b64948
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4b64948
Henrik Nordström f75b7c3
* Fri Jul 23 2021 Henrik Nordstrom <henrik@henriknordstrom.net> - 4.1.5-1
Henrik Nordström f75b7c3
- Updated to version 4.1.5
Henrik Nordström f75b7c3
b28c2ac
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.4-3
b28c2ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b28c2ac
Henrik Nordström 0462d5a
* Wed Jun 23 2021 Henrik Nordstrom 
Henrik Nordström 0462d5a
- Allow building with current qdarkstyle and dnspython
Henrik Nordström 0462d5a
Henrik Nordström f547b16
* Wed Jun 23 2021 Henrik Nordstrom <henrik@henriknordstrom.net> - 4.1.4-0
Henrik Nordström f547b16
- Updated to version 4.1.4
Henrik Nordström f547b16
3793d63
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.1.0-2
3793d63
- Rebuilt for Python 3.10
3793d63
3fb2607
* Thu Apr 01 2021 Timothy Redaelli <tredaelli@redhat.com> - 4.1.0-1
3fb2607
- Updated to version 4.1.0
3fb2607
e2008db
* Sun Feb 21 2021 Timothy Redaelli <tredaelli@redhat.com> - 4.0.9-3
e2008db
- Add python3-cryptography dependency (#1909753)
e2008db
cb93560
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.9-2
cb93560
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cb93560
90ee27b
* Mon Jan 04 2021 Timothy Redaelli <tredaelli@redhat.com> - 4.0.9-1
90ee27b
- Updated to version 4.0.9
90ee27b
97613cc
* Thu Dec 17 2020 Timothy Redaelli <tredaelli@redhat.com> - 4.0.8-1
97613cc
- Updated to version 4.0.8
97613cc
911258a
* Thu Dec 10 2020 Timothy Redaelli <tredaelli@redhat.com> - 4.0.7-2
911258a
- Restore zbar as weak dependency since it's only used for QR scanner (#1766821)
911258a
- Fix rpmlint warnings and errors ("E: explicit-lib-dependency libsecp256k" is a false positive)
911258a
b1f51d2
* Thu Dec 10 2020 Timothy Redaelli <tredaelli@redhat.com> - 4.0.7-1
b1f51d2
- Updated to version 4.0.7
b1f51d2
4c49f17
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-2
4c49f17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4c49f17
0a12e31
* Fri Jul 03 2020 Jonny Heggheim <hegjon@gmail.com> - 4.0.2-1
0a12e31
- Updated to version 4.0.2
0a12e31
48f8d75
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.3.4-7
48f8d75
- Rebuilt for Python 3.9
48f8d75
3129258
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-6
3129258
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3129258
0fd3335
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.4-5
0fd3335
- Rebuilt for Python 3.8.0rc1 (#1748018)
0fd3335
71e34b0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.4-4
71e34b0
- Rebuilt for Python 3.8
71e34b0
6b1eb22
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.4-3
6b1eb22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6b1eb22
6a7015b
* Sun Apr 21 2019 Jonny Heggheim <hegjon@gmail.com> - 3.3.4-2
6a7015b
- Allow usage of aiorpcx-0.12
6a7015b
aa30e42
* Wed Apr 03 2019 Jonny Heggheim <hegjon@gmail.com> - 3.3.4-1
aa30e42
- Updated to version 3.3.4
aa30e42
f9c3519
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-3
f9c3519
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f9c3519
1e4a3b7
* Wed Jan 16 2019 Jonny Heggheim <hegjon@gmail.com> - 3.2.4-2
1e4a3b7
- Deactiated requires for typing and qdarkstyle
1e4a3b7
1e51b93
* Tue Jan 01 2019 Jonny Heggheim <hegjon@gmail.com> - 3.2.4-1
499ab7d
- Downgraded to version 3.2.4. Fedora lacks dependencies for 3.3.2
499ab7d
235bed3
* Sun Dec 30 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.2-3
235bed3
- Fix typo in pyqt5 requires
235bed3
c9d2726
* Sun Dec 30 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.2-2
c9d2726
- Enable python dependency generator
c9d2726
fff5707
* Sat Dec 29 2018 Jonny Heggheim <hegjon@gmail.com> - 3.3.2-1
fff5707
- Updated to version 3.3.2
1e51b93
26c6f34
* Sun Sep 16 2018 Jonny Heggheim <hegjon@gmail.com> - 3.2.3-1
26c6f34
- Updated to version 3.2.3
26c6f34
e7674c1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-2
e7674c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e7674c1
cbf1508
* Tue Jul 03 2018 Jonny Heggheim <hegjon@gmail.com> - 3.2.2-1
cbf1508
- Updated to version 3.2.2
cbf1508
db4cb82
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.3-2
db4cb82
- Rebuilt for Python 3.7
db4cb82
f8b7c18
* Fri Apr 20 2018 Jonny Heggheim <hegjon@gmail.com> - 3.1.3-1
f8b7c18
- Updated to version 3.1.3
f8b7c18
ea646ce
* Mon Mar 26 2018 Jonny Heggheim <hegjon@gmail.com> - 3.1.1-1
ea646ce
- Updated to version 3.1.1
ea646ce
b4a2733
* Mon Feb 19 2018 Jonny Heggheim <hegjon@gmail.com> - 3.0.6-1
b4a2733
- Updated to version 3.0.6
b4a2733
a454a6b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-2
a454a6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a454a6b
5dcbbcb
* Mon Jan 08 2018 Jonny Heggheim <hegjon@gmail.com> - 3.0.5-1
5dcbbcb
- Updated to version 3.0.5
5dcbbcb
3cacfbb
* Sun Jan 07 2018 Jonny Heggheim <hegjon@gmail.com> - 3.0.4-1
3cacfbb
- Updated to version 3.0.4
3cacfbb
50eb8dc
* Thu Dec 14 2017 Jonny Heggheim <hegjon@gmail.com> - 3.0.3-1
50eb8dc
- Updated to version 3.0.3
50eb8dc
97782f0
* Sat Dec 09 2017 Jonny Heggheim <hegjon@gmail.com> - 3.0.2-1
97782f0
- Updated to version 3.0.2
97782f0
b0b802a
* Sat Aug 12 2017 Jonny Heggheim <hegjon@gmail.com> - 2.9.3-1
b0b802a
- Updated to version 2.9.3
b0b802a
ee407e3
* Thu Aug 10 2017 Jonny Heggheim <hegjon@gmail.com> - 2.9.2-1
ee407e3
- Updated to version 2.9.2
ee407e3
8346cbf
* Tue Aug 01 2017 Jonny Heggheim <hegjon@gmail.com> - 2.9.0-1
8346cbf
- Updated to version 2.9.0
8346cbf
19499c4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.3-2
19499c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
19499c4
b71404b
* Tue Jun 13 2017 Jonny Heggheim <hegjon@gmail.com> - 2.8.3-1
7d05585
- new version
7d05585
b71404b
* Mon Apr 10 2017 Jonny Heggheim <hegjon@gmail.com> - 2.8.2-1
9ad031c
- new version
9ad031c
b6aa224
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.18-3
b6aa224
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b6aa224
b71404b
* Wed Feb 01 2017 Jonny Heggheim <hegjon@gmail.com> - 2.7.18-2
cf3216f
- Verify the signature of the source tarball
cf3216f
b71404b
* Tue Jan 24 2017 Jonny Heggheim <hegjon@gmail.com> - 2.7.18-1
264adb7
- new version
264adb7
b71404b
* Thu Jan 12 2017 Jonny Heggheim <hegjon@gmail.com> - 2.7.17-1
32bd219
- new version
32bd219
b71404b
* Mon Jan 09 2017 Jonny Heggheim <hegjon@gmail.com> - 2.7.13-2
9a08630
- Added suggests python2-btchip
9a08630
b71404b
* Tue Jan 03 2017 Jonny Heggheim <hegjon@gmail.com> - 2.7.13-1
e7400f1
- new version
e7400f1
b71404b
* Tue Nov 29 2016 Jonny Heggheim <hegjon@gmail.com> - 2.7.12-5
e5dda5b
- Include appdata.xml file
e5dda5b
b71404b
* Fri Nov 18 2016 Jonny Heggheim <hegjon@gmail.com> - 2.7.12-4
4c4c5df
- Updated license to MIT and BSD
4c4c5df
b71404b
* Tue Nov 15 2016 Jonny Heggheim <hegjon@gmail.com> - 2.7.12-3
4c4c5df
- Added Provides: bundled(python-SocksiPy)
4c4c5df
b71404b
* Sun Nov 13 2016 Jonny Heggheim <hegjon@gmail.com> - 2.7.12-2
4c4c5df
- Added weak dependency on zbar-pygtk
4c4c5df
b71404b
* Wed Nov 09 2016 Jonny Heggheim <hegjon@gmail.com> - 2.7.12-1
4c4c5df
- new version
4c4c5df
4c4c5df
* Tue Apr 26 2016 gyger@fsfe.org - 2.6.4-2
4c4c5df
- Fixed for python2 and new packaging requirements.
4c4c5df
4c4c5df
* Mon Apr 25 2016 gyger@fsfe.org - 2.6.4-1
4c4c5df
- Upgrade to new Version.
4c4c5df
- Relicenced to MIT.
4c4c5df
4c4c5df
* Sat Nov 7 2015 gyger@fsfe.org - 2.5.2-1
4c4c5df
- Upgrade to new Version.
4c4c5df
4c4c5df
* Sat Jul 25 2015 gyger@fsfe.org - 2.3.3-1
4c4c5df
- Upgrade to new Version.
4c4c5df
4c4c5df
* Wed Jan 28 2015 gyger@fsfe.org - 2.0.0-4
4c4c5df
- Add Dependency on Pbkdf2
4c4c5df
4c4c5df
* Wed Jan 28 2015 gyger@fsfe.org - 2.0.0-1
4c4c5df
- Packaging the Beta Version.
4c4c5df
4c4c5df
* Wed Jan 28 2015 gyger@fsfe.org - 1.9.8-1
4c4c5df
- Initial Packaging for electrum on Fedora