diff --git a/.gitignore b/.gitignore index 610b181..b2c761c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /html5ever-0.24.0.crate /html5ever-0.24.1.crate /html5ever-0.25.1.crate +/html5ever-0.25.2.crate diff --git a/html5ever-fix-metadata-auto.diff b/html5ever-fix-metadata-auto.diff new file mode 100644 index 0000000..f9026da --- /dev/null +++ b/html5ever-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- html5ever-0.25.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ html5ever-0.25.2/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -43,5 +43,3 @@ + [build-dependencies.syn] + version = "1" + features = ["extra-traits", "full", "fold"] +-[target."cfg(bench)".dev-dependencies.criterion] +-version = "0.3" diff --git a/rust-html5ever.spec b/rust-html5ever.spec index b92793b..516a40f 100644 --- a/rust-html5ever.spec +++ b/rust-html5ever.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate html5ever -Name: rust-%{crate} -Version: 0.25.1 +Name: rust-html5ever +Version: 0.25.2 Release: %autorelease Summary: High-performance browser-grade HTML5 parser -# Upstream license specification: MIT / Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/html5ever Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: html5ever-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: High-performance browser-grade HTML5 parser.} @@ -32,12 +29,13 @@ 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 -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +43,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 diff --git a/sources b/sources index ae1f189..50b774b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (html5ever-0.25.1.crate) = 2b946224a0c5859436a57a507a89601adeffc12092376fe47429c5c5a61bd1d00b3271f0be7dea82ba1dce93a1cb820f72df8ba4c90fd13bd1ec408cff6ca660 +SHA512 (html5ever-0.25.2.crate) = 08042721c9db82ab45c98c8f1e5a1d3359906c829ad17ebefb1b933553786c6e7c3b7cad400ea382feb5f0187060a2ba4f1a271c25a870a90cb5c596ac6daf0f