From 000ae4c57a6fed582fd8a029f844dd814c7f0696 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 6 Nov 2023 15:08:16 +0100 Subject: [PATCH] Update to version 0.26.0 --- .gitignore | 1 + README.md | 3 -- rust-serde_derive_internals.spec | 56 +++++++++++++++++++------------- rust2rpm.toml | 3 ++ sources | 2 +- 5 files changed, 39 insertions(+), 26 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 2be3b32..3ef64e5 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /serde_derive_internals-0.22.1.crate /serde_derive_internals-0.22.2.crate /serde_derive_internals-0.23.1.crate +/serde_derive_internals-0.26.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index bbdccfa..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serde_derive_internals - -The rust-serde_derive_internals package \ No newline at end of file diff --git a/rust-serde_derive_internals.spec b/rust-serde_derive_internals.spec index d58fb07..dd75314 100644 --- a/rust-serde_derive_internals.spec +++ b/rust-serde_derive_internals.spec @@ -1,42 +1,59 @@ -# Generated by rust2rpm -%bcond_without check +# Generated by rust2rpm 25 +# * tests fail to compile +%bcond_with check %global debug_package %{nil} %global crate serde_derive_internals -Name: rust-%{crate} -Version: 0.23.1 +Name: rust-serde_derive_internals +Version: 0.26.0 Release: %autorelease Summary: AST representation used by Serde derive macros -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/serde_derive_internals -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} -ExclusiveArch: %{rust_arches} +BuildRequires: cargo-rpm-macros >= 24 -BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(proc-macro2) >= 0.3.0 with crate(proc-macro2) < 0.4.0) -BuildRequires: ((crate(syn) >= 0.13.0 with crate(syn) < 0.14.0) with crate(syn/derive) with crate(syn/parsing) with crate(syn/clone-impls)) +%global _description %{expand: +AST representation used by Serde derive macros. Unstable.} -%description -%{summary}. +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -AST representation used by Serde derive macros. Unstable. +%description devel %{_description} -This package contains library source intended for building other packages -which use %{crate} from crates.io. +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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -48,10 +65,5 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog %autochangelog diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..f721091 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "AST representation used by Serde derive macros" + diff --git a/sources b/sources index 202e8f5..3456eef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (serde_derive_internals-0.23.1.crate) = 3aa605aa836b1787efbc7b124159c88acd796ca642af99ae8f2c44f9aff41af6409665b4cfe48073080242f34ed3a08384b646978e5448066e19efb8d6128c3d +SHA512 (serde_derive_internals-0.26.0.crate) = acf635d10b41400e2c10d326fc7ca60dbe9094c2d1d94f4f34905e6978b155e014aebe29e0cc2b00587c97751360ab0dfa71b5c6901629bda9322754e2f07890