diff --git a/anda/langs/rust/wild/anda.hcl b/anda/langs/rust/wild/anda.hcl new file mode 100644 index 0000000000..45e6b694f5 --- /dev/null +++ b/anda/langs/rust/wild/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-wild-linker.spec" + } +} diff --git a/anda/langs/rust/wild/rust-wild-linker.spec b/anda/langs/rust/wild/rust-wild-linker.spec new file mode 100644 index 0000000000..049c86f0d1 --- /dev/null +++ b/anda/langs/rust/wild/rust-wild-linker.spec @@ -0,0 +1,54 @@ +# Generated by rust2rpm 27 +%bcond check 0 + +%global crate wild-linker + +Name: rust-wild-linker +Version: 0.5.0 +Release: 1%?dist +Summary: Very fast linker for Linux + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/wild-linker +Source: %{crates_source} +Source1: https://github.com/davidlattimore/wild/archive/refs/tags/%version.tar.gz + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: gcc-c++ + +%global _description %{expand: +A very fast linker for Linux.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (CC0-1.0 OR MIT-0 OR Apache-2.0) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR NCSA) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND Zlib AND (Zlib OR Apache-2.0 OR MIT) +# LICENSE.dependencies contains a full license breakdown +Provides: wild = %evr + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE-APACHE LICENSE-MIT +%license LICENSE.dependencies +%doc README.md +%{_bindir}/wild + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep_online +tar xf %{S:1} +cp wild-%version/LICENSE-* . + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif diff --git a/anda/langs/rust/wild/update.rhai b/anda/langs/rust/wild/update.rhai new file mode 100644 index 0000000000..ea2dd2af4d --- /dev/null +++ b/anda/langs/rust/wild/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("wild-linker"));