From f5a4fce144ddd03c8fa69ca87b4aafcf804f2262 Mon Sep 17 00:00:00 2001 From: madonuko Date: Thu, 9 Jan 2025 17:50:25 +0800 Subject: [PATCH 1/2] add: sheldon --- anda/tools/sheldon/anda.hcl | 5 ++++ anda/tools/sheldon/sheldon.spec | 50 +++++++++++++++++++++++++++++++++ anda/tools/sheldon/update.rhai | 1 + 3 files changed, 56 insertions(+) create mode 100644 anda/tools/sheldon/anda.hcl create mode 100644 anda/tools/sheldon/sheldon.spec create mode 100644 anda/tools/sheldon/update.rhai diff --git a/anda/tools/sheldon/anda.hcl b/anda/tools/sheldon/anda.hcl new file mode 100644 index 0000000000..f1619f5fc3 --- /dev/null +++ b/anda/tools/sheldon/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "sheldon.spec" + } +} diff --git a/anda/tools/sheldon/sheldon.spec b/anda/tools/sheldon/sheldon.spec new file mode 100644 index 0000000000..5111f8988b --- /dev/null +++ b/anda/tools/sheldon/sheldon.spec @@ -0,0 +1,50 @@ +# 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 + +%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 diff --git a/anda/tools/sheldon/update.rhai b/anda/tools/sheldon/update.rhai new file mode 100644 index 0000000000..b9db76cfe7 --- /dev/null +++ b/anda/tools/sheldon/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("sheldon")); From 93408f81dc4a9198172b0da5fd47d2943551c337 Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 9 Jan 2025 18:05:01 +0800 Subject: [PATCH 2/2] pkgconfig(openssl) Signed-off-by: madomado --- anda/tools/sheldon/sheldon.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/anda/tools/sheldon/sheldon.spec b/anda/tools/sheldon/sheldon.spec index 5111f8988b..3a67ea26a4 100644 --- a/anda/tools/sheldon/sheldon.spec +++ b/anda/tools/sheldon/sheldon.spec @@ -14,6 +14,7 @@ Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: anda-srpm-macros +BuildRequires: pkgconfig(openssl) %global _description %{expand: Fast, configurable, shell plugin manager.}