diff --git a/path-dedot-fix-metadata.diff b/path-dedot-fix-metadata.diff new file mode 100644 index 0000000..20d5298 --- /dev/null +++ b/path-dedot-fix-metadata.diff @@ -0,0 +1,31 @@ +--- path-dedot-3.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ path-dedot-3.1.1/Cargo.toml 2024-10-25T19:25:02.742032+00:00 +@@ -20,7 +20,6 @@ + "Cargo.toml", + "README.md", + "LICENSE", +- "benches/bench.rs", + ] + description = "A library for extending `Path` and `PathBuf` in order to parse the path which contains dots." + homepage = "https://magiclen.org/path-dedot" +@@ -39,10 +38,6 @@ + license = "MIT" + repository = "https://github.com/magiclen/path-dedot" + +-[[bench]] +-name = "bench" +-harness = false +- + [dependencies.lazy_static] + version = "1.4" + optional = true +@@ -50,9 +45,6 @@ + [dependencies.once_cell] + version = "1.4" + +-[dev-dependencies.bencher] +-version = "0.1.5" +- + [features] + lazy_static_cache = ["lazy_static"] + once_cell_cache = [] diff --git a/rust-path-dedot.spec b/rust-path-dedot.spec index ceca3b0..57a7037 100644 --- a/rust-path-dedot.spec +++ b/rust-path-dedot.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -12,8 +12,11 @@ Summary: Parse path with dots in Path and PathBuf License: MIT URL: https://crates.io/crates/path-dedot Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop bencher dependency and benchmark code +Patch: path-dedot-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A library for extending `Path` and `PathBuf` in order to parse the path @@ -108,7 +111,7 @@ use the "use_unix_paths_on_wasm" 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 diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index d0971ed..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -summary = Parse path with dots in Path and PathBuf diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..455ef0e --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Parse path with dots in Path and PathBuf"