Blame rust-interpolate_name.spec

e734b83
# Generated by rust2rpm 24
bf5630c
%bcond_without check
658d104
%global debug_package %{nil}
658d104
658d104
%global crate interpolate_name
658d104
e734b83
Name:           rust-interpolate_name
06fe74a
Version:        0.2.4
9e99377
Release:        %autorelease
658d104
Summary:        Simple procedural macro attribute for repetitive tests
658d104
658d104
License:        MIT
658d104
URL:            https://crates.io/crates/interpolate_name
658d104
Source:         %{crates_source}
658d104
e734b83
BuildRequires:  rust-packaging >= 21
658d104
bf5630c
%global _description %{expand:
bf5630c
Simple procedural macro attribute for repetitive tests.}
658d104
658d104
%description %{_description}
658d104
658d104
%package        devel
658d104
Summary:        %{summary}
658d104
BuildArch:      noarch
658d104
658d104
%description    devel %{_description}
658d104
e734b83
This package contains library source intended for building other packages which
e734b83
use the "%{crate}" crate.
658d104
658d104
%files          devel
e734b83
%license %{crate_instdir}/LICENSE
e734b83
%doc %{crate_instdir}/README.md
e734b83
%{crate_instdir}/
658d104
658d104
%package     -n %{name}+default-devel
658d104
Summary:        %{summary}
658d104
BuildArch:      noarch
658d104
658d104
%description -n %{name}+default-devel %{_description}
658d104
e734b83
This package contains library source intended for building other packages which
e734b83
use the "default" feature of the "%{crate}" crate.
658d104
658d104
%files       -n %{name}+default-devel
e734b83
%ghost %{crate_instdir}/Cargo.toml
658d104
658d104
%prep
658d104
%autosetup -n %{crate}-%{version_no_tilde} -p1
658d104
%cargo_prep
658d104
bf5630c
%generate_buildrequires
bf5630c
%cargo_generate_buildrequires
bf5630c
658d104
%build
658d104
%cargo_build
658d104
658d104
%install
658d104
%cargo_install
658d104
658d104
%if %{with check}
658d104
%check
658d104
%cargo_test
658d104
%endif
658d104
658d104
%changelog
9e99377
%autochangelog