c2e994e
# Generated by rust2rpm 24
c2e994e
# * missing dev-dependencies: average ^0.9.2, rand_xoshiro ^0.1
95c186b
%bcond_with check
95c186b
%global debug_package %{nil}
95c186b
95c186b
%global crate rand
95c186b
c2e994e
Name:           rust-rand0.6
95c186b
Version:        0.6.5
349004d
Release:        %autorelease
95c186b
Summary:        Random number generators and other randomness functionality
95c186b
95c186b
# Upstream license specification: MIT/Apache-2.0
c2e994e
License:        MIT OR Apache-2.0
95c186b
URL:            https://crates.io/crates/rand
95c186b
Source:         %{crates_source}
c2e994e
# Automatically generated patch to strip foreign dependencies
c2e994e
Patch:          rand-fix-metadata-auto.diff
c2e994e
# Manually created patch for downstream crate metadata changes
c2e994e
# * bump autocfg build-dependency from 0.1 to 1
c2e994e
Patch:          rand-fix-metadata.diff
95c186b
c2e994e
BuildRequires:  rust-packaging >= 21
95c186b
95c186b
%global _description %{expand:
95c186b
Random number generators and other randomness functionality.}
95c186b
95c186b
%description %{_description}
95c186b
95c186b
%package        devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description    devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "%{crate}" crate.
95c186b
95c186b
%files          devel
c2e994e
%license %{crate_instdir}/COPYRIGHT
c2e994e
%license %{crate_instdir}/LICENSE-APACHE
c2e994e
%license %{crate_instdir}/LICENSE-MIT
c2e994e
%doc %{crate_instdir}/CHANGELOG.md
c2e994e
%doc %{crate_instdir}/README.md
c2e994e
%{crate_instdir}/
95c186b
95c186b
%package     -n %{name}+default-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+default-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "default" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+default-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%package     -n %{name}+alloc-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+alloc-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "alloc" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+alloc-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%package     -n %{name}+i128_support-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+i128_support-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "i128_support" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+i128_support-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%package     -n %{name}+log-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+log-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "log" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+log-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%package     -n %{name}+rand_os-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+rand_os-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "rand_os" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+rand_os-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%package     -n %{name}+serde1-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+serde1-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "serde1" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+serde1-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%package     -n %{name}+std-devel
95c186b
Summary:        %{summary}
95c186b
BuildArch:      noarch
95c186b
95c186b
%description -n %{name}+std-devel %{_description}
95c186b
c2e994e
This package contains library source intended for building other packages which
c2e994e
use the "std" feature of the "%{crate}" crate.
95c186b
95c186b
%files       -n %{name}+std-devel
c2e994e
%ghost %{crate_instdir}/Cargo.toml
95c186b
95c186b
%prep
95c186b
%autosetup -n %{crate}-%{version_no_tilde} -p1
95c186b
%cargo_prep
95c186b
95c186b
%generate_buildrequires
95c186b
%cargo_generate_buildrequires
95c186b
95c186b
%build
95c186b
%cargo_build
95c186b
95c186b
%install
95c186b
%cargo_install
95c186b
95c186b
%if %{with check}
95c186b
%check
95c186b
%cargo_test
95c186b
%endif
95c186b
95c186b
%changelog
349004d
%autochangelog