From e0ab9911ac85a5b857744bc1af4291c03fe9bc30 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 21 Feb 2023 12:36:34 +0100 Subject: [PATCH] Initial import (clap_derive 3 compat package) --- .gitignore | 1 + README.md | 3 -- rust-clap_derive3.spec | 117 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 119 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-clap_derive3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ac7ba7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/clap_derive-3.2.18.crate diff --git a/README.md b/README.md deleted file mode 100644 index 4fe4320..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-clap_derive3 - -The rust-clap_derive3 package diff --git a/rust-clap_derive3.spec b/rust-clap_derive3.spec new file mode 100644 index 0000000..2f89716 --- /dev/null +++ b/rust-clap_derive3.spec @@ -0,0 +1,117 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate clap_derive + +Name: rust-clap_derive3 +Version: 3.2.18 +Release: %autorelease +Summary: Parse command line argument by defining a struct, derive crate + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/clap_derive +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Parse command line argument by defining a struct, derive crate.} + +%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-APACHE +%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 + +%package -n %{name}+debug-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+debug-devel %{_description} + +This package contains library source intended for building other packages which +use the "debug" feature of the "%{crate}" crate. + +%files -n %{name}+debug-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+deprecated-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+deprecated-devel %{_description} + +This package contains library source intended for building other packages which +use the "deprecated" feature of the "%{crate}" crate. + +%files -n %{name}+deprecated-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+raw-deprecated-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+raw-deprecated-devel %{_description} + +This package contains library source intended for building other packages which +use the "raw-deprecated" feature of the "%{crate}" crate. + +%files -n %{name}+raw-deprecated-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unstable-v4-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-v4-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable-v4" feature of the "%{crate}" crate. + +%files -n %{name}+unstable-v4-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 +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..fc211ad --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clap_derive-3.2.18.crate) = d5349b3d5711bd4900173aa5210d7c4aebb0bf70128e11f26b362f5acb43687f6ce5ef73e4d614ce9c1d649d34b68ff15ab8b65fdf1898fd295ee4b4a7523497