diff --git a/anda/rust/ouch/anda.hcl b/anda/rust/ouch/anda.hcl new file mode 100644 index 0000000000..002c75e303 --- /dev/null +++ b/anda/rust/ouch/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-ouch.spec" + } +} diff --git a/anda/rust/ouch/ouch-fix-metadata-auto.diff b/anda/rust/ouch/ouch-fix-metadata-auto.diff new file mode 100644 index 0000000000..020d0442d4 --- /dev/null +++ b/anda/rust/ouch/ouch-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- ouch-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ouch-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -155,9 +155,6 @@ + "zstd/thin", + ] + +-[target."cfg(not(unix))".dependencies.is_executable] +-version = "1.0.1" +- + [target."cfg(unix)".dependencies.time] + version = "0.3.17" + default-features = false diff --git a/anda/rust/ouch/rust-ouch.spec b/anda/rust/ouch/rust-ouch.spec new file mode 100644 index 0000000000..7819c6a8b2 --- /dev/null +++ b/anda/rust/ouch/rust-ouch.spec @@ -0,0 +1,53 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate ouch + +Name: rust-ouch +Version: 0.4.1 +Release: %autorelease +Summary: Command-line utility for easily compressing and decompressing files and directories + +License: MIT +URL: https://crates.io/crates/ouch +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: ouch-fix-metadata-auto.diff + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Command-line utility for easily compressing and decompressing files and +directories.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc CHANGELOG.md +%doc CONTRIBUTING.md +%doc README.md +%{_bindir}/ouch + +%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/ouch/update.rhai b/anda/rust/ouch/update.rhai new file mode 100644 index 0000000000..f247e06460 --- /dev/null +++ b/anda/rust/ouch/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("ouch"));