88a1fa1
# Generated by rust2rpm 24
3c70488
%bcond_without check
a0e3eb4
%global debug_package %{nil}
a0e3eb4
a0e3eb4
%global crate void
a0e3eb4
88a1fa1
Name:           rust-void
a0e3eb4
Version:        1.0.2
31bb54e
Release:        %autorelease
a0e3eb4
Summary:        Uninhabited void type for use in statically impossible cases
a0e3eb4
a0e3eb4
# https://github.com/reem/rust-void/issues/15
a0e3eb4
License:        MIT
a0e3eb4
URL:            https://crates.io/crates/void
3c70488
Source:         %{crates_source}
a0e3eb4
88a1fa1
BuildRequires:  rust-packaging >= 21
a0e3eb4
3c70488
%global _description %{expand:
88a1fa1
The uninhabited void type for use in statically impossible cases.}
c0d2cf6
c0d2cf6
%description %{_description}
a0e3eb4
a0e3eb4
%package        devel
a0e3eb4
Summary:        %{summary}
a0e3eb4
BuildArch:      noarch
a0e3eb4
c0d2cf6
%description    devel %{_description}
c0d2cf6
88a1fa1
This package contains library source intended for building other packages which
88a1fa1
use the "%{crate}" crate.
c0d2cf6
c0d2cf6
%files          devel
88a1fa1
%doc %{crate_instdir}/README.md
88a1fa1
%{crate_instdir}/
c0d2cf6
c0d2cf6
%package     -n %{name}+default-devel
c0d2cf6
Summary:        %{summary}
c0d2cf6
BuildArch:      noarch
c0d2cf6
c0d2cf6
%description -n %{name}+default-devel %{_description}
a0e3eb4
88a1fa1
This package contains library source intended for building other packages which
88a1fa1
use the "default" feature of the "%{crate}" crate.
c0d2cf6
c0d2cf6
%files       -n %{name}+default-devel
88a1fa1
%ghost %{crate_instdir}/Cargo.toml
c0d2cf6
c0d2cf6
%package     -n %{name}+std-devel
c0d2cf6
Summary:        %{summary}
c0d2cf6
BuildArch:      noarch
c0d2cf6
c0d2cf6
%description -n %{name}+std-devel %{_description}
c0d2cf6
88a1fa1
This package contains library source intended for building other packages which
88a1fa1
use the "std" feature of the "%{crate}" crate.
c0d2cf6
c0d2cf6
%files       -n %{name}+std-devel
88a1fa1
%ghost %{crate_instdir}/Cargo.toml
a0e3eb4
a0e3eb4
%prep
3c70488
%autosetup -n %{crate}-%{version_no_tilde} -p1
a0e3eb4
%cargo_prep
a0e3eb4
3c70488
%generate_buildrequires
3c70488
%cargo_generate_buildrequires
3c70488
a0e3eb4
%build
a0e3eb4
%cargo_build
a0e3eb4
a0e3eb4
%install
a0e3eb4
%cargo_install
a0e3eb4
a0e3eb4
%if %{with check}
a0e3eb4
%check
a0e3eb4
%cargo_test
a0e3eb4
%endif
a0e3eb4
a0e3eb4
%changelog
31bb54e
%autochangelog