Skip to content

Commit

Permalink
Add ccase.spec based on sd.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Jan 5, 2024
1 parent e88f3e0 commit f670ae7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org
<td align="center"><a href="https://github.com/ellie/atuin">atuin</a></td>
<td align="center"><a href="https://github.com/imsnif/bandwhich">bandwhich</a></td>
<td align="center"><a href="https://github.com/sharkdp/bat">bat</a></td>
<td align="center"><a href="https://github.com/rutrum/ccase">ccase</a></td>
<td align="center"><a href="https://github.com/hisbaan/didyoumean">didyoumean</a></td>
<td align="center"><a href="https://github.com/sharkdp/diskus">diskus</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/sharkdp/diskus">diskus</a></td>
<td align="center">
<a href="https://github.com/ogham/dog">dog</a>
<span>(</span>
Expand All @@ -34,35 +35,34 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org
<span>)</span>
</td>
<td align="center"><a href="https://github.com/sharkdp/fd">fd</a></td>
<td align="center"><a href="https://github.com/printfn/fend">fend</a></td>
</tr>
<tr>
<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/dandavison/delta">git-delta</a></td>
<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>
</tr>
<tr>
<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>
<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>
</tr>
<tr>
<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>
<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>
</tr>
<tr>
<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>
<td align="center">More to come</td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="center"><img width=200/></td>
Expand Down
45 changes: 45 additions & 0 deletions specs/ccase.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
%global debug_package %{nil}

Name: ccase
Version: 0.4.1
Release: 1%{?dist}
Summary: A command line utility for converting between string cases

License: MIT
URL: https://github.com/rutrum/ccase
Source0: %{url}/archive/v%{version}.tar.gz

BuildRequires: gcc

%description
Convert strings between snake case, kebab case, camel case, title case, pascal
case, and so many more.

%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
# tests require the debug binary to be built
cargo build
cargo test

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

%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}

%changelog
* Fri Jan 05 2024 cyqsimon - 0.4.1-1
- Release 0.4.1

0 comments on commit f670ae7

Please sign in to comment.