| |
@@ -1,6 +1,6 @@
|
| |
Name: electrum
|
| |
- Version: 4.2.1
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 4.3.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A lightweight Bitcoin Client
|
| |
|
| |
License: MIT
|
| |
@@ -9,29 +9,32 @@
|
| |
Source1: https://download.electrum.org/%{version}/Electrum-%{version}.tar.gz.asc
|
| |
#Wed Feb 01 2017, exported the upstream gpg key using the command:
|
| |
#gpg2 --export --export-options export-minimal 6694D8DE7BE8EE5631BED9502BD5824B7F9470E6 9EDAFF80E080659604F4A76B2EBB056FD847F8A7 0EEDCFD5CAFB459067349B23CA9EEEC43DF911DC > gpgkey-electrum.gpg
|
| |
- Source2: gpgkey-electrum.gpg
|
| |
- Source3: electrum.appdata.xml
|
| |
- Source4: electrum.1
|
| |
+ Source2: gpgkey-%{name}.gpg
|
| |
+ Source3: %{name}.metainfo.xml
|
| |
+ Source4: %{name}.1
|
| |
|
| |
Patch0: fix-desktop-exec.patch
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
- BuildRequires: python3-qt5-devel
|
| |
BuildRequires: gettext
|
| |
|
| |
+ BuildRequires: desktop-file-utils
|
| |
BuildRequires: libappstream-glib
|
| |
BuildRequires: gnupg2
|
| |
|
| |
- Requires: python%{python3_version}dist(pyqt5)
|
| |
- Requires: python3-cryptography
|
| |
+ Requires: hicolor-icon-theme
|
| |
+
|
| |
# Unlucky rpm automatic dependency generation doesn't catch this dependency
|
| |
Requires: libsecp256k1
|
| |
|
| |
- Recommends: zbar
|
| |
- Recommends: python3-trezor >= 0.13.0
|
| |
- Recommends: python3-btchip >= 0.1.32
|
| |
+ # Extra items are not tracked by runtime autodeps yet
|
| |
+ Requires: %{py3_dist cryptography}
|
| |
+ Requires: %{py3_dist pyqt5}
|
| |
+
|
| |
+ Recommends: zbar
|
| |
+ Recommends: python3-trezor >= 0.13.0
|
| |
+ Recommends: python3-btchip >= 0.1.32
|
| |
|
| |
Conflicts: python3-trezor < 0.11.2
|
| |
Conflicts: python3-btchip < 0.1.32
|
| |
@@ -44,17 +47,22 @@
|
| |
it does not download the Bitcoin block chain.
|
| |
|
| |
%prep
|
| |
- gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
| |
+ %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
| |
%autosetup -p1 -n Electrum-%{version}
|
| |
rm -rf Electrum.egg-info
|
| |
rm -rf packages
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires -x gui -x crypto
|
| |
+
|
| |
%build
|
| |
- %{py3_build}
|
| |
+ %pyproject_wheel
|
| |
|
| |
%install
|
| |
- %{py3_install}
|
| |
- install -Dpm 644 %{SOURCE3} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files %{name}
|
| |
+
|
| |
+ install -Dpm 644 %{SOURCE3} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
|
| |
install -Dpm 644 %{SOURCE4} %{buildroot}%{_mandir}/man1/%{name}.1
|
| |
|
| |
# Remove shebang lines from .py files that aren't executable, and
|
| |
@@ -66,26 +74,29 @@
|
| |
-perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
|
| |
-exec chmod a-x {} \; \) \)
|
| |
|
| |
- %find_lang %{name}
|
| |
-
|
| |
%check
|
| |
- appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
| |
+ appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.metainfo.xml
|
| |
+ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
| |
|
| |
- %files -f %{name}.lang
|
| |
- %doc AUTHORS
|
| |
- %doc README.rst
|
| |
- %doc RELEASE-NOTES
|
| |
- %doc PKG-INFO
|
| |
+ %files -f %{pyproject_files}
|
| |
+ %doc AUTHORS README.md RELEASE-NOTES
|
| |
%license LICENCE
|
| |
- %{_bindir}/electrum
|
| |
+ %{_bindir}/%{name}
|
| |
%{_mandir}/man1/%{name}.1*
|
| |
+ %{_datadir}/icons/hicolor/*/apps/%{name}.png
|
| |
%{_datadir}/pixmaps/%{name}.png
|
| |
%{_datadir}/applications/%{name}.desktop
|
| |
- %{_datadir}/appdata/%{name}.appdata.xml
|
| |
- %{python3_sitelib}/*
|
| |
- %exclude %{python3_sitelib}/%{name}/locale
|
| |
+ %{_metainfodir}/%{name}.metainfo.xml
|
| |
|
| |
%changelog
|
| |
+ * Wed Aug 31 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 4.3.1-1
|
| |
+ - Updated to version 4.3.1.
|
| |
+ - Converted to 202x-era Python packaging guidelines.
|
| |
+ - Switched metainfo to the latest XDG standard.
|
| |
+ - Switched to gpgverify macros as required by packaging guidelines.
|
| |
+ - Added desktop file check.
|
| |
+ - Moved binary file with GPG keys to Fedora look-aside cache.
|
| |
+
|
| |
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-4
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
|
| |