From 17c131cffb719ab8ed1ce80a3150217b193dd429 Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Mon, 6 Dec 2021 00:19:15 -0800 Subject: [PATCH] Initial import (#2028890) --- .gitignore | 3 ++ rust-html-escape.spec | 84 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 rust-html-escape.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0140e79 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/results_*/ +/*.src.rpm +/html-escape-0.2.9.crate diff --git a/rust-html-escape.spec b/rust-html-escape.spec new file mode 100644 index 0000000..2866e28 --- /dev/null +++ b/rust-html-escape.spec @@ -0,0 +1,84 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate html-escape + +Name: rust-%{crate} +Version: 0.2.9 +Release: %autorelease +Summary: Library for escaping special characters and unescaping HTML entities in HTML + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/html-escape +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +This library is for encoding/escaping special characters in HTML and +decoding/unescaping HTML entities as well.} + +%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 LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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..6b75d71 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (html-escape-0.2.9.crate) = 9e3a306255bddea265c365ae0c50ebf3635e31a2b74b366be40a34a158c2a3af58859bff2d234fe1322050c3ff78236a62d76a588f5b08480e25a6eb5abf0a3b