From 543a1c5ce3fcb2c518c44e9d488c8beeb3e397a7 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 9 Dec 2024 14:29:32 +0100 Subject: [PATCH] Initial import (pyo3-macros-backend 0.22 compat package) --- .gitignore | 1 + README.md | 3 - rust-pyo3-macros-backend0.22.spec | 92 +++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-pyo3-macros-backend0.22.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3111369 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pyo3-macros-backend-0.22.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index f35cfe4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pyo3-macros-backend0.22 - -The rust-pyo3-macros-backend0.22 package diff --git a/rust-pyo3-macros-backend0.22.spec b/rust-pyo3-macros-backend0.22.spec new file mode 100644 index 0000000..1c0d586 --- /dev/null +++ b/rust-pyo3-macros-backend0.22.spec @@ -0,0 +1,92 @@ +# Generated by rust2rpm 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate pyo3-macros-backend + +Name: rust-pyo3-macros-backend0.22 +Version: 0.22.6 +Release: %autorelease +Summary: Code generation for PyO3 package + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/pyo3-macros-backend +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Code generation for PyO3 package.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{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}+experimental-async-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+experimental-async-devel %{_description} + +This package contains library source intended for building other packages which +use the "experimental-async" feature of the "%{crate}" crate. + +%files -n %{name}+experimental-async-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+gil-refs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+gil-refs-devel %{_description} + +This package contains library source intended for building other packages which +use the "gil-refs" feature of the "%{crate}" crate. + +%files -n %{name}+gil-refs-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..98cff23 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyo3-macros-backend-0.22.6.crate) = 87463939b5a5674e30e8ca05ae747f652f8679f0c5c85d20967e9910ad853768a769a914580e82e409188fe4add80a3117ccb9da24c250406bc6f76fe4453799