9842f63
# Generated by rust2rpm 24
2ea40df
%bcond_without check
c7a095b
%global debug_package %{nil}
c7a095b
c7a095b
%global crate arbitrary
c7a095b
0f7c87a
Name:           rust-arbitrary
9842f63
Version:        1.3.0
09abc9c
Release:        %autorelease
03ad510
Summary:        Trait for generating structured data from unstructured data
c7a095b
0f7c87a
License:        MIT OR Apache-2.0
c7a095b
URL:            https://crates.io/crates/arbitrary
c7a095b
Source:         %{crates_source}
c7a095b
8267617
BuildRequires:  rust-packaging >= 21
c7a095b
c7a095b
%global _description %{expand:
9842f63
The trait for generating structured data from unstructured data.}
c7a095b
c7a095b
%description %{_description}
c7a095b
c7a095b
%package        devel
c7a095b
Summary:        %{summary}
c7a095b
BuildArch:      noarch
c7a095b
c7a095b
%description    devel %{_description}
c7a095b
7699c86
This package contains library source intended for building other packages which
7699c86
use the "%{crate}" crate.
c7a095b
c7a095b
%files          devel
8267617
%license %{crate_instdir}/LICENSE-APACHE
8267617
%license %{crate_instdir}/LICENSE-MIT
8267617
%doc %{crate_instdir}/CHANGELOG.md
8267617
%doc %{crate_instdir}/README.md
8267617
%{crate_instdir}/
c7a095b
c7a095b
%package     -n %{name}+default-devel
c7a095b
Summary:        %{summary}
c7a095b
BuildArch:      noarch
c7a095b
c7a095b
%description -n %{name}+default-devel %{_description}
c7a095b
7699c86
This package contains library source intended for building other packages which
7699c86
use the "default" feature of the "%{crate}" crate.
c7a095b
c7a095b
%files       -n %{name}+default-devel
8267617
%ghost %{crate_instdir}/Cargo.toml
c7a095b
03ad510
%package     -n %{name}+derive-devel
03ad510
Summary:        %{summary}
03ad510
BuildArch:      noarch
03ad510
03ad510
%description -n %{name}+derive-devel %{_description}
03ad510
7699c86
This package contains library source intended for building other packages which
7699c86
use the "derive" feature of the "%{crate}" crate.
03ad510
03ad510
%files       -n %{name}+derive-devel
8267617
%ghost %{crate_instdir}/Cargo.toml
03ad510
03ad510
%package     -n %{name}+derive_arbitrary-devel
03ad510
Summary:        %{summary}
03ad510
BuildArch:      noarch
03ad510
03ad510
%description -n %{name}+derive_arbitrary-devel %{_description}
03ad510
7699c86
This package contains library source intended for building other packages which
7699c86
use the "derive_arbitrary" feature of the "%{crate}" crate.
03ad510
03ad510
%files       -n %{name}+derive_arbitrary-devel
8267617
%ghost %{crate_instdir}/Cargo.toml
03ad510
c7a095b
%prep
c7a095b
%autosetup -n %{crate}-%{version_no_tilde} -p1
c7a095b
%cargo_prep
7699c86
# * remove accidental executable bit from test sources
7699c86
chmod -x tests/derive.rs
c7a095b
c7a095b
%generate_buildrequires
c7a095b
%cargo_generate_buildrequires
c7a095b
c7a095b
%build
c7a095b
%cargo_build
c7a095b
c7a095b
%install
c7a095b
%cargo_install
c7a095b
c7a095b
%if %{with check}
c7a095b
%check
c7a095b
%cargo_test
c7a095b
%endif
c7a095b
c7a095b
%changelog
09abc9c
%autochangelog