Initial import (#2028890)

epel10
Aleksei Bavshin 3 years ago
parent 06c22c758b
commit 17c131cffb
No known key found for this signature in database
GPG Key ID: 4F071603387A382A

3
.gitignore vendored

@ -0,0 +1,3 @@
/results_*/
/*.src.rpm
/html-escape-0.2.9.crate

@ -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

@ -0,0 +1 @@
SHA512 (html-escape-0.2.9.crate) = 9e3a306255bddea265c365ae0c50ebf3635e31a2b74b366be40a34a158c2a3af58859bff2d234fe1322050c3ff78236a62d76a588f5b08480e25a6eb5abf0a3b
Loading…
Cancel
Save