From f670ae7685ec530c7a2d03d6ae39749e08658f4a Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Fri, 5 Jan 2024 12:53:35 +0800 Subject: [PATCH] Add ccase.spec based on sd.spec --- README.md | 12 ++++++------ specs/ccase.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 specs/ccase.spec diff --git a/README.md b/README.md index 9d0abb1..9b28592 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,11 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org atuin bandwhich bat + ccase didyoumean - diskus + diskus dog ( @@ -34,35 +35,34 @@ You can install the built packages from [COPR](https://copr.fedorainfracloud.org ) fd - fend + fend garbage git-delta hck httplz - miniserve + miniserve mprocs ouch podlet procs - pueue + pueue ripgrep rustscan sd tealdeer - tokei + tokei xh More to come - diff --git a/specs/ccase.spec b/specs/ccase.spec new file mode 100644 index 0000000..1c43110 --- /dev/null +++ b/specs/ccase.spec @@ -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