From 0cf2e56abda573c965ac3e811edecbe414130c89 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 8 Oct 2024 15:36:01 +0200 Subject: [PATCH] Initial import (bytecheck_derive 0.6 compat package) --- .gitignore | 1 + README.md | 3 -- rust-bytecheck_derive0.6.spec | 79 +++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-bytecheck_derive0.6.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb71e39 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bytecheck_derive-0.6.12.crate diff --git a/README.md b/README.md deleted file mode 100644 index fb206e6..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bytecheck_derive0.6 - -The rust-bytecheck_derive0.6 package diff --git a/rust-bytecheck_derive0.6.spec b/rust-bytecheck_derive0.6.spec new file mode 100644 index 0000000..32f21d6 --- /dev/null +++ b/rust-bytecheck_derive0.6.spec @@ -0,0 +1,79 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate bytecheck_derive + +Name: rust-bytecheck_derive0.6 +Version: 0.6.12 +Release: %autorelease +Summary: Derive macro for bytecheck + +License: MIT +URL: https://crates.io/crates/bytecheck_derive +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Derive macro for bytecheck.} + +%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 + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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..39e3b77 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bytecheck_derive-0.6.12.crate) = 57f8480ddb76d8620095962acd203231fb7938c0caf9c216d89466f22464a6970f13adca5f4d5b10c9e1ec99d6e0b260ba7586c2bb895fad0380f8f9ac9a4fc8