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..b0b7808d2c --- /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: openssl-devel cmake 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"));