Drop unused, benchmark-only criterion dev-dependency

epel9
Fabio Valentini 2 years ago
parent bbba237484
commit fbfc824414
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,25 +1,23 @@
# Generated by rust2rpm 18
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate xml5ever
Name: rust-%{crate}
Name: rust-xml5ever
Version: 0.16.2
Release: %autorelease
Summary: Push based streaming parser for xml
# Upstream license specification: MIT / Apache-2.0
License: MIT or ASL 2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/xml5ever
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch: xml5ever-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Push based streaming parser for xml.}
@ -32,13 +30,14 @@ BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
@ -46,11 +45,11 @@ BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages
which use "default" feature of "%{crate}" crate.
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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1

@ -0,0 +1,8 @@
--- xml5ever-0.17.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ xml5ever-0.17.0/Cargo.toml 1970-01-01T00:00:01+00:00
@@ -37,5 +37,3 @@
version = "0.11"
[dev-dependencies.rustc-test]
version = "0.3"
-[target."cfg(bench)".dev-dependencies.criterion]
-version = "0.3"

@ -0,0 +1,11 @@
--- xml5ever-0.16.2/Cargo.toml 1970-01-01T00:00:00+00:00
+++ xml5ever-0.16.2/Cargo.toml 2022-11-04T21:09:51.410803+00:00
@@ -39,8 +39,6 @@
[dependencies.time]
version = "0.1"
-[dev-dependencies.criterion]
-version = "0.3"
[dev-dependencies.rustc-test]
version = "0.3"
Loading…
Cancel
Save