From d82c863c55caaeeea73b45c5fd9a936aa860aa37 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Tue, 26 Jul 2022 14:32:39 -0700 Subject: [PATCH] Initial import; Fixes: RHBZ#2105874 --- .gitignore | 1 + rust-konst_macro_rules.spec | 142 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 144 insertions(+) create mode 100644 .gitignore create mode 100644 rust-konst_macro_rules.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..694d4fe --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/konst_macro_rules-0.2.14.crate diff --git a/rust-konst_macro_rules.spec b/rust-konst_macro_rules.spec new file mode 100644 index 0000000..c2980d6 --- /dev/null +++ b/rust-konst_macro_rules.spec @@ -0,0 +1,142 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate konst_macro_rules + +Name: rust-%{crate} +Version: 0.2.14 +Release: %autorelease +Summary: Implementation detail of the konst crate + +# Upstream license specification: Zlib +License: zlib +URL: https://crates.io/crates/konst_macro_rules +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Implementation detail of the konst 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-ZLIB.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}+const_generics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const_generics-devel %{_description} + +This package contains library source intended for building other packages which +use the "const_generics" feature of the "%{crate}" crate. + +%files -n %{name}+const_generics-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+deref_raw_in_fn-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+deref_raw_in_fn-devel %{_description} + +This package contains library source intended for building other packages which +use the "deref_raw_in_fn" feature of the "%{crate}" crate. + +%files -n %{name}+deref_raw_in_fn-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+mut_refs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mut_refs-devel %{_description} + +This package contains library source intended for building other packages which +use the "mut_refs" feature of the "%{crate}" crate. + +%files -n %{name}+mut_refs-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly_mut_refs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly_mut_refs-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly_mut_refs" feature of the "%{crate}" crate. + +%files -n %{name}+nightly_mut_refs-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rust_1_55-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rust_1_55-devel %{_description} + +This package contains library source intended for building other packages which +use the "rust_1_55" feature of the "%{crate}" crate. + +%files -n %{name}+rust_1_55-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rust_1_56-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rust_1_56-devel %{_description} + +This package contains library source intended for building other packages which +use the "rust_1_56" feature of the "%{crate}" crate. + +%files -n %{name}+rust_1_56-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..7f59d3f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (konst_macro_rules-0.2.14.crate) = 056b1b7591c91166c1b03a6f3d0a212b80a897ffa945f266899343aeeb15110148f0d0a56fcfb95076918466fcf3a9486aa55543273d37d7269f633afca8ab8a