75c9cbe
# Generated by rust2rpm 24
19e7427
%bcond_without check
7d561ba
%global debug_package %{nil}
7d561ba
7d561ba
%global crate serde_urlencoded
7d561ba
75c9cbe
Name:           rust-serde_urlencoded
5abcc76
Version:        0.7.1
d7c5e5d
Release:        %autorelease
75c9cbe
Summary:        X-www-form-urlencoded meets Serde
7d561ba
5838a08
# Upstream license specification: MIT/Apache-2.0
75c9cbe
License:        MIT OR Apache-2.0
7d561ba
URL:            https://crates.io/crates/serde_urlencoded
15941c9
Source:         %{crates_source}
7d561ba
75c9cbe
BuildRequires:  rust-packaging >= 21
7d561ba
19e7427
%global _description %{expand:
19e7427
`x-www-form-urlencoded` meets Serde.}
0f6c69c
0f6c69c
%description %{_description}
7d561ba
7d561ba
%package        devel
7d561ba
Summary:        %{summary}
7d561ba
BuildArch:      noarch
7d561ba
0f6c69c
%description    devel %{_description}
7d561ba
5abcc76
This package contains library source intended for building other packages which
5abcc76
use the "%{crate}" crate.
0f6c69c
0f6c69c
%files          devel
75c9cbe
%license %{crate_instdir}/LICENSE-APACHE
75c9cbe
%license %{crate_instdir}/LICENSE-MIT
75c9cbe
%doc %{crate_instdir}/README.md
75c9cbe
%{crate_instdir}/
0f6c69c
0f6c69c
%package     -n %{name}+default-devel
0f6c69c
Summary:        %{summary}
0f6c69c
BuildArch:      noarch
0f6c69c
0f6c69c
%description -n %{name}+default-devel %{_description}
0f6c69c
5abcc76
This package contains library source intended for building other packages which
5abcc76
use the "default" feature of the "%{crate}" crate.
0f6c69c
0f6c69c
%files       -n %{name}+default-devel
75c9cbe
%ghost %{crate_instdir}/Cargo.toml
7d561ba
7d561ba
%prep
15941c9
%autosetup -n %{crate}-%{version_no_tilde} -p1
7d561ba
%cargo_prep
7d561ba
19e7427
%generate_buildrequires
19e7427
%cargo_generate_buildrequires
19e7427
7d561ba
%build
7d561ba
%cargo_build
7d561ba
7d561ba
%install
7d561ba
%cargo_install
7d561ba
7d561ba
%if %{with check}
7d561ba
%check
7d561ba
%cargo_test
7d561ba
%endif
7d561ba
7d561ba
%changelog
d7c5e5d
%autochangelog