diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3398e11 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/html5ever-0.26.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 819ad35..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-html5ever0.26 - -The rust-html5ever0.26 package diff --git a/html5ever-fix-metadata-auto.diff b/html5ever-fix-metadata-auto.diff new file mode 100644 index 0000000..a821145 --- /dev/null +++ b/html5ever-fix-metadata-auto.diff @@ -0,0 +1,9 @@ +--- html5ever-0.26.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ html5ever-0.26.0/Cargo.toml 2024-09-24T14:12:25.444112+00:00 +@@ -43,5 +43,4 @@ + [build-dependencies.syn] + version = "1" + features = ["extra-traits", "full", "fold"] +-[target."cfg(bench)".dev-dependencies.criterion] +-version = "0.3" ++ diff --git a/rust-html5ever0.26.spec b/rust-html5ever0.26.spec new file mode 100644 index 0000000..cee53e5 --- /dev/null +++ b/rust-html5ever0.26.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate html5ever + +Name: rust-html5ever0.26 +Version: 0.26.0 +Release: %autorelease +Summary: High-performance browser-grade HTML5 parser + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/html5ever +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: html5ever-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +High-performance browser-grade HTML5 parser.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..23e17d2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (html5ever-0.26.0.crate) = 383a25421cddb0573e41ca93131d681cfbfaf551989337845a197e939a2580751ae90e96605bfc4e187dbd5189b6c014557cc69e3d7d2d2cdfb88eeca8896089