From 93c3b28f4255d1705267b332334f1864cd2aa3dc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 4 Mar 2023 18:56:01 +0100 Subject: [PATCH] Initial import (memoffset 0.7 compat package) --- .gitignore | 1 + README.md | 3 -- rust-memoffset0.7.spec | 80 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-memoffset0.7.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..253f5d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/memoffset-0.7.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index ee911da..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-memoffset0.7 - -The rust-memoffset0.7 package diff --git a/rust-memoffset0.7.spec b/rust-memoffset0.7.spec new file mode 100644 index 0000000..55edb39 --- /dev/null +++ b/rust-memoffset0.7.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate memoffset + +Name: rust-memoffset0.7 +Version: 0.7.1 +Release: %autorelease +Summary: Offset_of functionality for Rust structs + +License: MIT +URL: https://crates.io/crates/memoffset +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Offset_of functionality for Rust structs.} + +%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 + +%package -n %{name}+unstable_const-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable_const-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable_const" feature of the "%{crate}" crate. + +%files -n %{name}+unstable_const-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..d567f9d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (memoffset-0.7.1.crate) = 40ca3c4b1fb929bec75bfcde0135037f81a6c5aa80181bc7dd7bbcd9c0946288eea8d23fca95e296567ccb02155ed0f66c7c23644b5cb3e6d3932be9f9742157