From bec1b57e117f30610fb2218c668276b12d6683b0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 3 Nov 2023 22:47:21 +0100 Subject: [PATCH] Initial import (#2246005) --- .gitignore | 1 + README.md | 3 -- rust-snapbox-macros.spec | 93 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-snapbox-macros.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c0b195 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/snapbox-macros-0.3.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index 4b3de13..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-snapbox-macros - -The rust-snapbox-macros package diff --git a/rust-snapbox-macros.spec b/rust-snapbox-macros.spec new file mode 100644 index 0000000..72981aa --- /dev/null +++ b/rust-snapbox-macros.spec @@ -0,0 +1,93 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate snapbox-macros + +Name: rust-snapbox-macros +Version: 0.3.6 +Release: %autorelease +Summary: Snapshot testing toolbox + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/snapbox-macros +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Snapshot testing toolbox.} + +%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 +%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}+color-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+color-devel %{_description} + +This package contains library source intended for building other packages which +use the "color" feature of the "%{crate}" crate. + +%files -n %{name}+color-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+debug-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+debug-devel %{_description} + +This package contains library source intended for building other packages which +use the "debug" feature of the "%{crate}" crate. + +%files -n %{name}+debug-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..a482b94 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (snapbox-macros-0.3.6.crate) = c1163e70342d0140ccad8a7c02065307ea23e585afa31985704d1eb2c06764e28d5f27b7b98e04698a92c7905606a7c85de9aefeadd1035b8e3a9adb7c9d9da7