Skip to content

Commit

Permalink
Add podlet.spec based on sd.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Oct 27, 2023
1 parent d41676d commit 044a659
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,24 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org
</tr>
<tr>
<td align="center"><a href="https://github.com/ouch-org/ouch">ouch</a></td>
<td align="center"><a href="https://github.com/k9withabone/podlet">podlet</a></td>
<td align="center"><a href="https://github.com/dalance/procs">procs</a></td>
<td align="center"><a href="https://github.com/Nukesor/pueue">pueue</a></td>
<td align="center"><a href="https://github.com/BurntSushi/ripgrep">ripgrep</a></td>
<td align="center"><a href="https://github.com/RustScan/RustScan">rustscan</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/RustScan/RustScan">rustscan</a></td>
<td align="center"><a href="https://github.com/chmln/sd">sd</a></td>
<td align="center"><a href="https://github.com/dbrgn/tealdeer">tealdeer</a></td>
<td align="center"><a href="https://github.com/XAMPPRocky/tokei">tokei</a></td>
<td align="center"><a href="https://github.com/ducaale/xh">xh</a></td>
</tr>
<tr>
<td align="center">More to come</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="center"><img width=200/></td>
Expand Down
42 changes: 42 additions & 0 deletions specs/podlet.spec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 044a659

Please sign in to comment.