From d5639a7a7ab248d1b8810b194490fca7162c5819 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 25 Feb 2023 23:34:21 +0100 Subject: [PATCH] Initial import (clap_complete 3 compat package) --- .gitignore | 1 + README.md | 3 - rust-clap_complete3.spec | 166 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 168 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-clap_complete3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..98ea3df --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/clap_complete-3.2.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index 10c9e36..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-clap_complete3 - -The rust-clap_complete3 package diff --git a/rust-clap_complete3.spec b/rust-clap_complete3.spec new file mode 100644 index 0000000..7269dbd --- /dev/null +++ b/rust-clap_complete3.spec @@ -0,0 +1,166 @@ +# Generated by rust2rpm 24 +# * missing dev-dependencies: snapbox, trycmd +%bcond_with check +%global debug_package %{nil} + +%global crate clap_complete + +Name: rust-clap_complete3 +Version: 3.2.5 +Release: %autorelease +Summary: Generate shell completion scripts for your clap::Command + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/clap_complete +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Generate shell completion scripts for your clap::Command.} + +%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}+clap_lex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+clap_lex-devel %{_description} + +This package contains library source intended for building other packages which +use the "clap_lex" feature of the "%{crate}" crate. + +%files -n %{name}+clap_lex-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}+is_executable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+is_executable-devel %{_description} + +This package contains library source intended for building other packages which +use the "is_executable" feature of the "%{crate}" crate. + +%files -n %{name}+is_executable-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+os_str_bytes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+os_str_bytes-devel %{_description} + +This package contains library source intended for building other packages which +use the "os_str_bytes" feature of the "%{crate}" crate. + +%files -n %{name}+os_str_bytes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+pathdiff-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pathdiff-devel %{_description} + +This package contains library source intended for building other packages which +use the "pathdiff" feature of the "%{crate}" crate. + +%files -n %{name}+pathdiff-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+shlex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+shlex-devel %{_description} + +This package contains library source intended for building other packages which +use the "shlex" feature of the "%{crate}" crate. + +%files -n %{name}+shlex-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-xid-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-xid-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-xid" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-xid-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unstable-dynamic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-dynamic-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable-dynamic" feature of the "%{crate}" crate. + +%files -n %{name}+unstable-dynamic-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..470bab1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clap_complete-3.2.5.crate) = c26d6c15a0ab44720cd7a5979dd4c66a9171082b99c04cda10fe4f6dd9a1405f8ca9022c344d03d7d2af7788bc28be033c9e2311f6879993901773176783f61e