From a953539f1163cc9ee20c5e2f52a5cf98847cbccc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 8 Oct 2024 15:33:39 +0200 Subject: [PATCH] Initial import (ptr_meta 0.1 compat package) --- .gitignore | 1 + README.md | 3 -- rust-ptr_meta0.1.spec | 81 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-ptr_meta0.1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3eed680 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ptr_meta-0.1.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 602e7aa..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ptr_meta0.1 - -The rust-ptr_meta0.1 package diff --git a/rust-ptr_meta0.1.spec b/rust-ptr_meta0.1.spec new file mode 100644 index 0000000..5b1051d --- /dev/null +++ b/rust-ptr_meta0.1.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate ptr_meta + +Name: rust-ptr_meta0.1 +Version: 0.1.4 +Release: %autorelease +Summary: Radioactive stabilization of the ptr_meta rfc + +License: MIT +URL: https://crates.io/crates/ptr_meta +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A radioactive stabilization of the ptr_meta rfc.} + +%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 +%doc %{crate_instdir}/crates-io.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}+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..f7e26f4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ptr_meta-0.1.4.crate) = 9936264dd52ae40e6afc8cef8914dbdc5767f397b91ea965d65275fe547a2d9cde7ccdcf908f787e25f84fbc23a2e30df895793fca308e09f48f2adf2e30d2bf