Skip to content

Commit

Permalink
add: sheldon (#2897) (#2918)
Browse files Browse the repository at this point in the history
* add: sheldon

* pkgconfig(openssl)

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
(cherry picked from commit daee1f6)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Jan 12, 2025
1 parent 7e31456 commit 0d90ae2
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/tools/sheldon/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "sheldon.spec"
}
}
51 changes: 51 additions & 0 deletions anda/tools/sheldon/sheldon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Generated by rust2rpm 27
%bcond check 0

%global crate sheldon

Name: rust-sheldon
Version: 0.8.0
Release: 1%?dist
Summary: Fast, configurable, shell plugin manager

License: MIT OR Apache-2.0
URL: https://sheldon.cli.rs
Source: %{crates_source}

BuildRequires: cargo-rpm-macros >= 24
BuildRequires: anda-srpm-macros
BuildRequires: pkgconfig(openssl)

%global _description %{expand:
Fast, configurable, shell plugin manager.}

%description %{_description}

%package -n %{crate}
Summary: %{summary}
License: (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)

%description -n %{crate} %{_description}

%files -n %{crate}
%license LICENSE-APACHE
%license LICENSE-MIT
%license LICENSE.dependencies
%doc README.md
%{_bindir}/sheldon

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online

%build
%{cargo_license_summary_online}
%{cargo_license_online} > LICENSE.dependencies

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif
1 change: 1 addition & 0 deletions anda/tools/sheldon/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(crates("sheldon"));

0 comments on commit 0d90ae2

Please sign in to comment.