From 3bdbe39fb8697ca06dcc2fb94946c5b307e11e1f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 5 May 2022 11:52:32 +0200 Subject: [PATCH] Initial import (strum_macros 0.21 compat package) --- .gitignore | 1 + README.md | 3 -- rust-strum_macros0.21.spec | 71 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-strum_macros0.21.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64fea18 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/strum_macros-0.21.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 7062ac1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-strum_macros0.21 - -The rust-strum_macros0.21 package diff --git a/rust-strum_macros0.21.spec b/rust-strum_macros0.21.spec new file mode 100644 index 0000000..65684b4 --- /dev/null +++ b/rust-strum_macros0.21.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 21 +# * resolve dependency loop with strum +%bcond_with check +%global debug_package %{nil} + +%global crate strum_macros + +Name: rust-%{crate}0.21 +Version: 0.21.1 +Release: %autorelease +Summary: Helpful macros for working with enums and strings + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/strum_macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Helpful macros for working with enums and strings.} + +%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 +%{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 +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..177ca15 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (strum_macros-0.21.1.crate) = 85ea12f8e03f04c427b99e027065279bd559ea1c51532c6f35cc842218e350e27349258f0fe25f5efc9fca047387da3ec5d670f94a50d574b15f4b5f1c99ddea