diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72a6ad9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/strum_macros-0.24.3.crate diff --git a/rust-strum_macros0.24.spec b/rust-strum_macros0.24.spec new file mode 100644 index 0000000..0a5c8a9 --- /dev/null +++ b/rust-strum_macros0.24.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +# * resolve dependency loop with strum +%bcond_with check +%global debug_package %{nil} + +%global crate strum_macros + +Name: rust-strum_macros0.24 +Version: 0.24.3 +Release: %autorelease +Summary: Helpful macros for working with enums and strings + +License: MIT +URL: https://crates.io/crates/strum_macros +Source: %{crates_source} + +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 +%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 + +%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..6584d73 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (strum_macros-0.24.3.crate) = 8276343808afe71d68d7984d5a223a4fc630df0adb5a547cbcc6912fbffcf7e4ad38f115888a2dd3a8443d6fa7b9c7726318d4f5d1ab43f463dd97ec20df9134