Blob Blame History Raw
# Generated by rust2rpm-9-1.fc31
%bcond_with check
%global debug_package %{nil}

%global crate ammonia

Name:           rust-%{crate}
Version:        2.1.1
Release:        1%{?dist}
Summary:        HTML Sanitization

# Upstream license specification: MIT / Apache-2.0
License:        MIT or ASL 2.0
URL:            https://crates.io/crates/ammonia
Source:         %{crates_source}

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging
BuildRequires:  (crate(html5ever/default) >= 0.23.0 with crate(html5ever/default) < 0.24.0)
BuildRequires:  (crate(lazy_static/default) >= 1.3.0 with crate(lazy_static/default) < 2.0.0)
BuildRequires:  (crate(maplit/default) >= 1.0.0 with crate(maplit/default) < 2.0.0)
BuildRequires:  (crate(matches/default) >= 0.1.6 with crate(matches/default) < 0.2.0)
BuildRequires:  (crate(tendril/default) >= 0.4.0 with crate(tendril/default) < 0.5.0)
BuildRequires:  (crate(url/default) >= 1.0.0 with crate(url/default) < 2.0.0)
%if %{with check}
BuildRequires:  (crate(version-sync/default) >= 0.7.0 with crate(version-sync/default) < 0.8.0)
%endif

%global _description \
HTML Sanitization.

%description %{_description}

%package        devel
Summary:        %{summary}
BuildArch:      noarch

%description    devel %{_description}

This package contains library source intended for building other packages
which use "%{crate}" crate.

%files          devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version}/

%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 "default" feature of "%{crate}" crate.

%files       -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%changelog
* Thu May 09 08:23:15 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.1-1
- Update to 2.1.1

* Sun May 05 12:45:51 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-2
- Update html5ever to 0.23

* Tue Apr 30 08:38:51 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-1
- Update to 2.1.0

* Mon Mar 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-1
- Initial package