From 81bcdba8f5678bc589247bff09398e48ff865a88 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 3 Apr 2023 20:34:36 +0200 Subject: [PATCH] Initial import (#2183332) --- .gitignore | 1 + README.md | 3 -- rust-serde_spanned.spec | 85 +++++++++++++++++++++++++++++++++ serde_spanned-fix-metadata.diff | 15 ++++++ sources | 1 + 5 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-serde_spanned.spec create mode 100644 serde_spanned-fix-metadata.diff create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..190a126 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde_spanned-0.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index d5aeadc..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serde_spanned - -The rust-serde_spanned package diff --git a/rust-serde_spanned.spec b/rust-serde_spanned.spec new file mode 100644 index 0000000..eafdd82 --- /dev/null +++ b/rust-serde_spanned.spec @@ -0,0 +1,85 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate serde_spanned + +Name: rust-serde_spanned +Version: 0.6.1 +Release: %autorelease +Summary: Serde-compatible spanned Value + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/serde_spanned +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * fix copypasta in upstream crate description: +# https://github.com/toml-rs/toml/pull/536 +Patch: serde_spanned-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Serde-compatible spanned Value.} + +%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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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/serde_spanned-fix-metadata.diff b/serde_spanned-fix-metadata.diff new file mode 100644 index 0000000..81a040d --- /dev/null +++ b/serde_spanned-fix-metadata.diff @@ -0,0 +1,15 @@ +--- serde_spanned-0.6.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ serde_spanned-0.6.1/Cargo.toml 2023-03-30T21:13:30.708654+00:00 +@@ -23,11 +23,7 @@ + "benches/**/*", + "tests/**/*", + ] +-description = """ +-A native Rust encoder and decoder of TOML-formatted files and streams. Provides +-implementations of the standard Serialize/Deserialize traits for TOML data to +-facilitate deserializing and serializing Rust structures. +-""" ++description = "Serde-compatible spanned Value" + homepage = "https://github.com/toml-rs/toml" + documentation = "https://docs.rs/serde_spanned" + readme = "README.md" diff --git a/sources b/sources new file mode 100644 index 0000000..352ca10 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde_spanned-0.6.1.crate) = 6271aa2af243021002a10cdbd16cb081bf10ab53a61cace104182eb4f28e0c0d7c447b7dcedb350ce78debf5ed6ce6502cb823ae9177d98c5288310094eb22d9