mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix: depthcharge-tools (#12171)
* fix: depthcharge tools This patch was fixed upstream Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * Delete fix-importlib.patch Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --------- Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,6 @@ URL: https://gitlab.postmarketos.org/postmarketOS/depthcharge-tools
|
||||
Source0: %url/-/archive/v%version/%name-v%version.tar.gz
|
||||
Requires: vboot-utils dtc gzip lz4 python3-setuptools uboot-tools vboot-utils xz python3-importlib-resources
|
||||
BuildRequires: python3-setuptools python3-rpm-macros pyproject-rpm-macros python3dist(pip) systemd-rpm-macros redhat-rpm-config python3-docutils python3-importlib-resources
|
||||
Patch0: fix-importlib.patch
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -17,7 +16,7 @@ with depthcharge, the Chrome OS bootloader.
|
||||
%pkg_completion -Bz mkdepthcharge depthchargectl
|
||||
|
||||
%prep
|
||||
%autosetup -n %name-v%version -p1
|
||||
%autosetup -n %name-v%version
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -45,4 +44,5 @@ install -Dm644 *.1.gz %buildroot%_mandir/man1/
|
||||
%_unitdir/depthchargectl-bless.service
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
* Sun May 10 2026 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Remove patch
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --git a/depthcharge_tools/__init__.py b/depthcharge_tools/__init__.py
|
||||
index fabb79d..2b7d7d5 100644
|
||||
--- a/depthcharge_tools/__init__.py
|
||||
+++ b/depthcharge_tools/__init__.py
|
||||
@@ -9,6 +9,7 @@ import glob
|
||||
import logging
|
||||
import pathlib
|
||||
import importlib
|
||||
+import importlib.resources
|
||||
import importlib_metadata
|
||||
from packaging.version import parse as parse_version
|
||||
import re
|
||||
Reference in New Issue
Block a user