Blame rust-powerfmt.spec

6b7768b
# Generated by rust2rpm 25
6b7768b
%bcond_without check
6b7768b
%global debug_package %{nil}
6b7768b
6b7768b
%global crate powerfmt
6b7768b
6b7768b
Name:           rust-powerfmt
6b7768b
Version:        0.2.0
6b7768b
Release:        %autorelease
6b7768b
Summary:        Utilities for formatting values
6b7768b
6b7768b
License:        MIT OR Apache-2.0
6b7768b
URL:            https://crates.io/crates/powerfmt
6b7768b
Source:         %{crates_source}
6b7768b
6b7768b
BuildRequires:  cargo-rpm-macros >= 24
6b7768b
6b7768b
%global _description %{expand:
6b7768b
`powerfmt` is a library that provides utilities for formatting values.
6b7768b
This crate makes it     significantly easier to support filling to a
6b7768b
minimum width with alignment, avoid heap     allocation, and avoid
6b7768b
repetitive calculations.}
6b7768b
6b7768b
%description %{_description}
6b7768b
6b7768b
%package        devel
6b7768b
Summary:        %{summary}
6b7768b
BuildArch:      noarch
6b7768b
6b7768b
%description    devel %{_description}
6b7768b
6b7768b
This package contains library source intended for building other packages which
6b7768b
use the "%{crate}" crate.
6b7768b
6b7768b
%files          devel
6b7768b
%license %{crate_instdir}/LICENSE-Apache
6b7768b
%license %{crate_instdir}/LICENSE-MIT
6b7768b
%doc %{crate_instdir}/README.md
6b7768b
%{crate_instdir}/
6b7768b
6b7768b
%package     -n %{name}+default-devel
6b7768b
Summary:        %{summary}
6b7768b
BuildArch:      noarch
6b7768b
6b7768b
%description -n %{name}+default-devel %{_description}
6b7768b
6b7768b
This package contains library source intended for building other packages which
6b7768b
use the "default" feature of the "%{crate}" crate.
6b7768b
6b7768b
%files       -n %{name}+default-devel
6b7768b
%ghost %{crate_instdir}/Cargo.toml
6b7768b
6b7768b
%package     -n %{name}+alloc-devel
6b7768b
Summary:        %{summary}
6b7768b
BuildArch:      noarch
6b7768b
6b7768b
%description -n %{name}+alloc-devel %{_description}
6b7768b
6b7768b
This package contains library source intended for building other packages which
6b7768b
use the "alloc" feature of the "%{crate}" crate.
6b7768b
6b7768b
%files       -n %{name}+alloc-devel
6b7768b
%ghost %{crate_instdir}/Cargo.toml
6b7768b
6b7768b
%package     -n %{name}+macros-devel
6b7768b
Summary:        %{summary}
6b7768b
BuildArch:      noarch
6b7768b
6b7768b
%description -n %{name}+macros-devel %{_description}
6b7768b
6b7768b
This package contains library source intended for building other packages which
6b7768b
use the "macros" feature of the "%{crate}" crate.
6b7768b
6b7768b
%files       -n %{name}+macros-devel
6b7768b
%ghost %{crate_instdir}/Cargo.toml
6b7768b
6b7768b
%package     -n %{name}+std-devel
6b7768b
Summary:        %{summary}
6b7768b
BuildArch:      noarch
6b7768b
6b7768b
%description -n %{name}+std-devel %{_description}
6b7768b
6b7768b
This package contains library source intended for building other packages which
6b7768b
use the "std" feature of the "%{crate}" crate.
6b7768b
6b7768b
%files       -n %{name}+std-devel
6b7768b
%ghost %{crate_instdir}/Cargo.toml
6b7768b
6b7768b
%prep
6b7768b
%autosetup -n %{crate}-%{version} -p1
6b7768b
%cargo_prep
6b7768b
6b7768b
%generate_buildrequires
6b7768b
%cargo_generate_buildrequires
6b7768b
6b7768b
%build
6b7768b
%cargo_build
6b7768b
6b7768b
%install
6b7768b
%cargo_install
6b7768b
6b7768b
%if %{with check}
6b7768b
%check
6b7768b
%cargo_test
6b7768b
%endif
6b7768b
6b7768b
%changelog
6b7768b
%autochangelog