From d92e285747b62580aa318d66cbd4758841b37aac Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 12 Dec 2022 17:36:23 +0100 Subject: [PATCH] Initial import (memoffset 0.6 compat package) --- .gitignore | 1 + README.md | 3 -- rust-memoffset0.6.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.6.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..083ebae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/memoffset-0.6.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8fedce1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-memoffset0.6 - -The rust-memoffset0.6 package diff --git a/rust-memoffset0.6.spec b/rust-memoffset0.6.spec new file mode 100644 index 0000000..735aa3f --- /dev/null +++ b/rust-memoffset0.6.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate memoffset + +Name: rust-memoffset0.6 +Version: 0.6.5 +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..f65a111 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (memoffset-0.6.5.crate) = 11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f