From 1e7bf09c89e723217f3809af58fde0bd6315a0b3 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Fri, 25 Dec 2020 17:24:51 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-clap_derive.spec | 111 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 113 insertions(+) create mode 100644 .gitignore create mode 100644 rust-clap_derive.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..769d9ff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/clap_derive-3.0.0-beta.2.crate diff --git a/rust-clap_derive.spec b/rust-clap_derive.spec new file mode 100644 index 0000000..5ad5212 --- /dev/null +++ b/rust-clap_derive.spec @@ -0,0 +1,111 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate clap_derive + +Name: rust-%{crate} +Version: 3.0.0~beta.2 +Release: 1%{?dist} +Summary: Parse command line argument by defining a struct, derive crate + +# Upstream license specification: MIT OR Apache-2.0 +# https://github.com/clap-rs/clap/issues/2270 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/clap_derive +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%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 "%{crate}" crate. + +%files devel +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "debug" feature of "%{crate}" crate. + +%files -n %{name}+debug-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+doc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+doc-devel %{_description} + +This package contains library source intended for building other packages +which use "doc" feature of "%{crate}" crate. + +%files -n %{name}+doc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable" feature of "%{crate}" crate. + +%files -n %{name}+unstable-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Fri Dec 25 11:57:40 CET 2020 Igor Raits - 3.0.0~beta.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..25e6d15 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clap_derive-3.0.0-beta.2.crate) = 4e2620557daae4f1da925e0ead0f18c76586b59b9e2289d85a949a081f88e097b56bfda2ef07c88704e7b5704dc58de3a468bf73705ba64a85d59103ff60dd5f