Drop bencher dependency and benchmark code

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
epel10 imports/epel10/rust-path-dedot-3.1.1-4.el10
Michel Lind 3 months ago
parent 6ebb5371b7
commit b05853c302
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

@ -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 = []

@ -1,4 +1,4 @@
# Generated by rust2rpm 24 # Generated by rust2rpm 26
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
@ -12,8 +12,11 @@ Summary: Parse path with dots in Path and PathBuf
License: MIT License: MIT
URL: https://crates.io/crates/path-dedot URL: https://crates.io/crates/path-dedot
Source: %{crates_source} 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: %global _description %{expand:
A library for extending `Path` and `PathBuf` in order to parse the path 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 %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
%generate_buildrequires %generate_buildrequires

@ -1,2 +0,0 @@
[DEFAULT]
summary = Parse path with dots in Path and PathBuf

@ -0,0 +1,2 @@
[package]
summary = "Parse path with dots in Path and PathBuf"
Loading…
Cancel
Save