Files
packages/anda/system/depthcharge-tools/depthcharge-tools.spec
T
Raboneko b5c9d492c1 chore (depthcharge-tools): runtime dep on needed packages (#12177) (#12181)
This probably should be fixed upstream, but for now lets do this


(cherry picked from commit 6144cb2b6f)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
2026-05-10 16:28:11 -05:00

50 lines
2.0 KiB
RPMSpec

Name: depthcharge-tools
Version: 0.6.4
Release: 2%{?dist}
Summary: Tools to manage the Chrome OS bootloader
License: GPL-2.0-or-later
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
Requires: python3-setuptools python3-packaging python3-importlib-metadata
BuildArch: noarch
%description
depthcharge-tools is a collection of tools that ease and automate interacting
with depthcharge, the Chrome OS bootloader.
%pkg_completion -Bz mkdepthcharge depthchargectl
%prep
%autosetup -n %name-v%version
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files depthcharge_tools
mkdir -p %buildroot/usr/lib/kernel/install.d %buildroot{%_unitdir,%bash_completions_dir,%zsh_completions_dir,%_mandir/man1}
install -Dm644 systemd/*.install %buildroot/usr/lib/kernel/install.d/
install -Dm644 systemd/*.service %buildroot%_unitdir/
install -Dm644 completions/_mkdepthcharge.bash %buildroot%bash_completions_dir/mkdepthcharge
install -Dm644 completions/_depthchargectl.bash %buildroot%bash_completions_dir/depthchargectl
install -Dm644 completions/_mkdepthcharge.zsh %buildroot%zsh_completions_dir/_mkdepthcharge
install -Dm644 completions/_depthchargectl.zsh %buildroot%zsh_completions_dir/_depthchargectl
rst2man mkdepthcharge.rst | gzip > mkdepthcharge.1.gz
rst2man depthchargectl.rst | gzip > depthchargectl.1.gz
install -Dm644 *.1.gz %buildroot%_mandir/man1/
%files -f %{pyproject_files}
%doc README.rst
%license LICENSE
%_bindir/{mkdepthcharge,depthchargectl}
%_mandir/man1/{mkdepthcharge,depthchargectl}.1.gz
/usr/lib/kernel/install.d/90-depthcharge-tools.install
%_unitdir/depthchargectl-bless.service
%changelog
* Sun May 10 2026 Owen Zimmerman <owen@fyralabs.com>
- Remove patch