diff --git a/.gitignore b/.gitignore index 3591ead..ac68fa3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /serde_with_macros-1.4.1.crate /serde_with_macros-1.5.1.crate /serde_with_macros-1.5.2.crate +/serde_with_macros-3.4.0.crate diff --git a/rust-serde_with_macros.spec b/rust-serde_with_macros.spec index ae49a8c..0f6ab31 100644 --- a/rust-serde_with_macros.spec +++ b/rust-serde_with_macros.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate serde_with_macros Name: rust-serde_with_macros -Version: 1.5.2 +Version: 3.4.0 Release: %autorelease Summary: Proc-macro library for serde_with @@ -13,7 +13,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/serde_with_macros Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Proc-macro library for serde_with.} @@ -49,7 +49,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires @@ -63,7 +63,8 @@ use the "default" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip a test that can only be run in-tree +%cargo_test -- -- --exact --skip test_serde_with_dependency %endif %changelog diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..281face --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,5 @@ +[tests] +skip = ["test_serde_with_dependency"] +skip-exact = true +comments = ["skip a test that can only be run in-tree"] + diff --git a/sources b/sources index 3721283..f7e3479 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (serde_with_macros-1.5.2.crate) = 4619ce9f35b7659f5641eb3b3891910a7780c76911968b53cdae9fc6b03ca66643157707c67f6ac5d16f657d7f3332671430e828d111d7fc8968683523b93fba +SHA512 (serde_with_macros-3.4.0.crate) = 473d9a0ae39fbfb7163231670bc1da5b2662e19f7224b99e11b8395776344ba6e8e1da7a190fd9752a1f05edd9a0c7edcdfe3df0e05d2a96074690c13e42f1a7