From e1a79744294086dd45b0c04f6e42a4191adf267f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 22 Sep 2024 13:28:22 +0200 Subject: [PATCH] Disable tests and bump idna dependency from 0.3 to 0.4 --- README.md | 3 --- publicsuffix-fix-metadata.diff | 11 +++++++++++ rust-publicsuffix.spec | 12 ++++++++---- 3 files changed, 19 insertions(+), 7 deletions(-) delete mode 100644 README.md create mode 100644 publicsuffix-fix-metadata.diff diff --git a/README.md b/README.md deleted file mode 100644 index 387811a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-publicsuffix - -The rust-publicsuffix package \ No newline at end of file diff --git a/publicsuffix-fix-metadata.diff b/publicsuffix-fix-metadata.diff new file mode 100644 index 0000000..a9d6578 --- /dev/null +++ b/publicsuffix-fix-metadata.diff @@ -0,0 +1,11 @@ +--- publicsuffix-2.2.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ publicsuffix-2.2.3/Cargo.toml 2024-09-22T10:52:01.476337+00:00 +@@ -36,7 +36,7 @@ + optional = true + + [dependencies.idna] +-version = "0.3" ++version = "0.4" + optional = true + + [dependencies.psl-types] diff --git a/rust-publicsuffix.spec b/rust-publicsuffix.spec index 84a8cb3..ac5deea 100644 --- a/rust-publicsuffix.spec +++ b/rust-publicsuffix.spec @@ -1,5 +1,6 @@ -# Generated by rust2rpm 23 -%bcond_without check +# Generated by rust2rpm 26 +# * oudated dev-dependencies: rspec +%bcond_with check %global debug_package %{nil} %global crate publicsuffix @@ -13,8 +14,11 @@ Summary: Extract root domain and suffix from a domain name License: MIT OR Apache-2.0 URL: https://crates.io/crates/publicsuffix Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump idna dependency from 0.3 to 0.4 +Patch: publicsuffix-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Extract root domain and suffix from a domain name.} @@ -121,7 +125,7 @@ use the "unicase" 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