From 1b97bbd050134babe96bf3d355025de975047309 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 15 Dec 2022 12:31:53 +0100 Subject: [PATCH] Initial import (cargo_metadata 0.12 compat package) --- .gitignore | 1 + README.md | 3 -- rust-cargo_metadata0.12.spec | 69 ++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-cargo_metadata0.12.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bf81d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cargo_metadata-0.12.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index edc3e95..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-cargo_metadata0.12 - -The rust-cargo_metadata0.12 package diff --git a/rust-cargo_metadata0.12.spec b/rust-cargo_metadata0.12.spec new file mode 100644 index 0000000..d8da9d5 --- /dev/null +++ b/rust-cargo_metadata0.12.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate cargo_metadata + +Name: rust-cargo_metadata0.12 +Version: 0.12.3 +Release: %autorelease +Summary: Structured access to the output of `cargo metadata` + +License: MIT +URL: https://crates.io/crates/cargo_metadata +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Structured access to the output of `cargo metadata`.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# * skip tests that depend on fixtures which are not included in published crates +%cargo_test -a -- -- --skip advanced_feature_configuration --skip all_the_fields --skip current_dir +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..7c89fb0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cargo_metadata-0.12.3.crate) = fc67003f014d6b13b12d8a897168665dbafed7516662bce53bff3dec75892a930f602a4ddf9e2be44fdbdb77b4f2641c0adb116be31929142c3d4a2e6cee4e1f