From 044a65915793663641137170af798e0461ef6fb3 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Fri, 27 Oct 2023 08:26:17 +0800 Subject: [PATCH] Add podlet.spec based on sd.spec --- README.md | 9 ++++++++- specs/podlet.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 specs/podlet.spec diff --git a/README.md b/README.md index 09f82eb..bee76b5 100644 --- a/README.md +++ b/README.md @@ -45,17 +45,24 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org ouch + podlet procs pueue ripgrep - rustscan + rustscan sd tealdeer tokei xh + + More to come + + + + diff --git a/specs/podlet.spec b/specs/podlet.spec new file mode 100644 index 0000000..d76ca07 --- /dev/null +++ b/specs/podlet.spec @@ -0,0 +1,42 @@ +%global debug_package %{nil} + +Name: podlet +Version: 0.2.0 +Release: 1%{?dist} +Summary: Generate podman quadlet (systemd-like) files from a podman command + +License: MPLv2.0 +URL: https://github.com/k9withabone/podlet +Source0: %{url}/archive/v%{version}.tar.gz + +BuildRequires: gcc + +%description +Podlet generates podman quadlet (systemd-like) files from a podman command. + +%prep +%autosetup + +# use latest stable version from rustup +curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y + +%build +source ~/.cargo/env +RUSTFLAGS="-C strip=symbols" cargo build --release + +%check +source ~/.cargo/env +cargo test + +%install +# bin +install -Dpm 755 target/release/%{name} %{buildroot}%{_bindir}/%{name} + +%files +%license LICENSE +%doc CHANGELOG.md README.md +%{_bindir}/%{name} + +%changelog +* Fri Oct 27 2023 cyqsimon - 0.2.0-1 +- Release 0.2.0