892e361
# Generated by rust2rpm 24
a882992
%bcond_without check
a882992
%global debug_package %{nil}
a882992
a882992
%global crate cssparser
a882992
040eb7d
Name:           rust-cssparser
5a960f4
Version:        0.31.2
1353e30
Release:        %autorelease
a882992
Summary:        Rust implementation of CSS Syntax Level 3
a882992
040eb7d
License:        MPL-2.0
a882992
URL:            https://crates.io/crates/cssparser
a882992
Source:         %{crates_source}
a882992
040eb7d
BuildRequires:  rust-packaging >= 21
a882992
a882992
%global _description %{expand:
a882992
Rust implementation of CSS Syntax Level 3.}
a882992
a882992
%description %{_description}
a882992
a882992
%package        devel
a882992
Summary:        %{summary}
a882992
BuildArch:      noarch
a882992
a882992
%description    devel %{_description}
a882992
040eb7d
This package contains library source intended for building other packages which
040eb7d
use the "%{crate}" crate.
a882992
a882992
%files          devel
040eb7d
%license %{crate_instdir}/LICENSE
040eb7d
%doc %{crate_instdir}/README.md
040eb7d
%{crate_instdir}/
a882992
a882992
%package     -n %{name}+default-devel
a882992
Summary:        %{summary}
a882992
BuildArch:      noarch
a882992
a882992
%description -n %{name}+default-devel %{_description}
a882992
040eb7d
This package contains library source intended for building other packages which
040eb7d
use the "default" feature of the "%{crate}" crate.
a882992
a882992
%files       -n %{name}+default-devel
040eb7d
%ghost %{crate_instdir}/Cargo.toml
a882992
a882992
%package     -n %{name}+bench-devel
a882992
Summary:        %{summary}
a882992
BuildArch:      noarch
a882992
a882992
%description -n %{name}+bench-devel %{_description}
a882992
040eb7d
This package contains library source intended for building other packages which
040eb7d
use the "bench" feature of the "%{crate}" crate.
a882992
a882992
%files       -n %{name}+bench-devel
040eb7d
%ghost %{crate_instdir}/Cargo.toml
a882992
a882992
%package     -n %{name}+dummy_match_byte-devel
a882992
Summary:        %{summary}
a882992
BuildArch:      noarch
a882992
a882992
%description -n %{name}+dummy_match_byte-devel %{_description}
a882992
040eb7d
This package contains library source intended for building other packages which
040eb7d
use the "dummy_match_byte" feature of the "%{crate}" crate.
a882992
a882992
%files       -n %{name}+dummy_match_byte-devel
040eb7d
%ghost %{crate_instdir}/Cargo.toml
a882992
a882992
%package     -n %{name}+serde-devel
a882992
Summary:        %{summary}
a882992
BuildArch:      noarch
a882992
a882992
%description -n %{name}+serde-devel %{_description}
a882992
040eb7d
This package contains library source intended for building other packages which
040eb7d
use the "serde" feature of the "%{crate}" crate.
a882992
a882992
%files       -n %{name}+serde-devel
040eb7d
%ghost %{crate_instdir}/Cargo.toml
a882992
a882992
%prep
a882992
%autosetup -n %{crate}-%{version_no_tilde} -p1
a882992
%cargo_prep
a882992
a882992
%generate_buildrequires
a882992
%cargo_generate_buildrequires
a882992
a882992
%build
a882992
%cargo_build
a882992
a882992
%install
a882992
%cargo_install
a882992
a882992
%if %{with check}
a882992
%check
a882992
# https://github.com/servo/rust-cssparser/issues/213
a882992
%cargo_test -- --doc
a882992
%endif
a882992
a882992
%changelog
1353e30
%autochangelog