Blame rust-below-common.spec

bf12250
# Generated by rust2rpm 24
9d50dc7
%bcond_without check
9d50dc7
%global debug_package %{nil}
9d50dc7
9d50dc7
%global crate below-common
9d50dc7
9404cc4
Name:           rust-below-common
bf12250
Version:        0.7.1
d53737b
Release:        %autorelease
9d50dc7
Summary:        Common below code
9d50dc7
9404cc4
License:        Apache-2.0
9d50dc7
URL:            https://crates.io/crates/below-common
9d50dc7
Source:         %{crates_source}
9d50dc7
9404cc4
BuildRequires:  rust-packaging >= 21
9d50dc7
9d50dc7
%global _description %{expand:
9d50dc7
Common below code.}
9d50dc7
9d50dc7
%description %{_description}
9d50dc7
9d50dc7
%package        devel
9d50dc7
Summary:        %{summary}
9d50dc7
BuildArch:      noarch
9d50dc7
9d50dc7
%description    devel %{_description}
9d50dc7
ea6fa53
This package contains library source intended for building other packages which
ea6fa53
use the "%{crate}" crate.
9d50dc7
9d50dc7
%files          devel
9404cc4
%license %{crate_instdir}/LICENSE
9404cc4
%{crate_instdir}/
9d50dc7
9d50dc7
%package     -n %{name}+default-devel
9d50dc7
Summary:        %{summary}
9d50dc7
BuildArch:      noarch
9d50dc7
9d50dc7
%description -n %{name}+default-devel %{_description}
9d50dc7
ea6fa53
This package contains library source intended for building other packages which
ea6fa53
use the "default" feature of the "%{crate}" crate.
9d50dc7
9d50dc7
%files       -n %{name}+default-devel
9404cc4
%ghost %{crate_instdir}/Cargo.toml
9d50dc7
9d50dc7
%prep
9d50dc7
%autosetup -n %{crate}-%{version_no_tilde} -p1
9d50dc7
%cargo_prep
9d50dc7
9d50dc7
%generate_buildrequires
9d50dc7
%cargo_generate_buildrequires
9d50dc7
9d50dc7
%build
9d50dc7
%cargo_build
9d50dc7
9d50dc7
%install
9d50dc7
%cargo_install
9d50dc7
9d50dc7
%if %{with check}
9d50dc7
%check
9d50dc7
%cargo_test
9d50dc7
%endif
9d50dc7
9d50dc7
%changelog
d53737b
%autochangelog