From 0bb9841e522ecad28c8824424b043e3c5fb28970 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:09:00 +0800 Subject: [PATCH 1/3] add: gitoxide --- anda/rust/gitoxide/anda.hcl | 5 +++ anda/rust/gitoxide/rust-gitoxide.spec | 51 +++++++++++++++++++++++++++ anda/rust/gitoxide/update.rhai | 1 + 3 files changed, 57 insertions(+) create mode 100644 anda/rust/gitoxide/anda.hcl create mode 100644 anda/rust/gitoxide/rust-gitoxide.spec create mode 100644 anda/rust/gitoxide/update.rhai diff --git a/anda/rust/gitoxide/anda.hcl b/anda/rust/gitoxide/anda.hcl new file mode 100644 index 0000000000..1b3582f702 --- /dev/null +++ b/anda/rust/gitoxide/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-gitoxide.spec" + } +} diff --git a/anda/rust/gitoxide/rust-gitoxide.spec b/anda/rust/gitoxide/rust-gitoxide.spec new file mode 100644 index 0000000000..0137244fb8 --- /dev/null +++ b/anda/rust/gitoxide/rust-gitoxide.spec @@ -0,0 +1,51 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate gitoxide + +Name: rust-gitoxide +Version: 0.20.0 +Release: %autorelease +Summary: Command-line application for interacting with git repositories + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gitoxide +Source: %{crates_source} + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Command-line application for interacting with git repositories.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE-APACHE +%license LICENSE-MIT +%doc CHANGELOG.md +%doc README.md +%{_bindir}/ein +%{_bindir}/gix + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/gitoxide/update.rhai b/anda/rust/gitoxide/update.rhai new file mode 100644 index 0000000000..4d5f8eec24 --- /dev/null +++ b/anda/rust/gitoxide/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("gitoxide")); From 4d928ec791197c999eb54ac8b2f14db176e13f1e Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:22:53 +0800 Subject: [PATCH 2/3] Apparently we need cmake --- anda/rust/gitoxide/rust-gitoxide.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/rust/gitoxide/rust-gitoxide.spec b/anda/rust/gitoxide/rust-gitoxide.spec index 0137244fb8..38d5554452 100644 --- a/anda/rust/gitoxide/rust-gitoxide.spec +++ b/anda/rust/gitoxide/rust-gitoxide.spec @@ -12,7 +12,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/gitoxide Source: %{crates_source} -BuildRequires: anda-srpm-macros rust-packaging >= 21 +BuildRequires: cmake anda-srpm-macros rust-packaging >= 21 %global _description %{expand: Command-line application for interacting with git repositories.} From 9601944e1fd087d9ebc3d3b4ac09d201461c1344 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:37:01 +0800 Subject: [PATCH 3/3] deps --- anda/rust/gitoxide/rust-gitoxide.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/rust/gitoxide/rust-gitoxide.spec b/anda/rust/gitoxide/rust-gitoxide.spec index 38d5554452..b0b7808d2c 100644 --- a/anda/rust/gitoxide/rust-gitoxide.spec +++ b/anda/rust/gitoxide/rust-gitoxide.spec @@ -12,7 +12,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/gitoxide Source: %{crates_source} -BuildRequires: cmake anda-srpm-macros rust-packaging >= 21 +BuildRequires: openssl-devel cmake anda-srpm-macros rust-packaging >= 21 %global _description %{expand: Command-line application for interacting with git repositories.}