Skip to content

Commit

Permalink
Add evcxr-repl.spec based on sd.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Sep 18, 2024
1 parent a25427a commit 8f37506
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,30 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org
<span>)</span>
</td>
<td align="center"><a href="https://github.com/Canop/dysk">dysk</a></td>
<td align="center"><a href="https://github.com/evcxr/evcxr">evcxr-repl</a></td>
<td align="center"><a href="https://github.com/printfn/fend">fend</a></td>
<td align="center"><a href="https://git.sr.ht/~mzhang/garbage">garbage</a></td>
<td align="center"><a href="https://github.com/sstadick/hck">hck</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/sstadick/hck">hck</a></td>
<td align="center"><a href="https://github.com/thecoshman/http">httplz</a></td>
<td align="center"><a href="https://github.com/svenstaro/miniserve">miniserve</a></td>
<td align="center"><a href="https://github.com/pvolok/mprocs">mprocs</a></td>
<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>
</tr>
<tr>
<td align="center"><a href="https://github.com/k9withabone/podlet">podlet</a></td>
<td align="center"><a href="https://github.com/Nukesor/pueue">pueue</a></td>
<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/ducaale/xh">xh</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/ducaale/xh">xh</a></td>
<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
44 changes: 44 additions & 0 deletions specs/evcxr-repl.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
%global debug_package %{nil}
%global _bin_name evcxr

Name: evcxr-repl
Version: 0.17.0
Release: 1%{?dist}
Summary: A Rust REPL

License: MIT AND Apache-2.0
URL: https://github.com/evcxr/evcxr
Source0: %{url}/archive/v%{version}.tar.gz

Requires: rust-src
BuildRequires: gcc

%description
A Rust REPL.

%prep
%autosetup

# use latest stable version from rustup
curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo +stable build --release

%check
source ~/.cargo/env
cargo +stable test

%install
# bin
install -Dpm 755 -t %{buildroot}%{_bindir} target/release/%{_bin_name}

%files
%license LICENSE
%doc COMMON.md README.md RELEASE_NOTES.md
%{_bindir}/%{_bin_name}

%changelog
* Wed Sep 18 2024 cyqsimon - 0.17.0-1
- Release 0.17.0

0 comments on commit 8f37506

Please sign in to comment.