Blame rust-chrono-humanize.spec

3328db0
# Generated by rust2rpm 24
9a45ea0
%bcond_without check
ecc1ef1
%global debug_package %{nil}
ecc1ef1
ecc1ef1
%global crate chrono-humanize
ecc1ef1
154f17e
Name:           rust-chrono-humanize
3328db0
Version:        0.2.3
0e294fd
Release:        %autorelease
ecc1ef1
Summary:        Human-friendly time expressions
ecc1ef1
ecc1ef1
# Upstream license specification: MIT/Apache-2.0
154f17e
License:        MIT OR Apache-2.0
ecc1ef1
URL:            https://crates.io/crates/chrono-humanize
ecc1ef1
Source:         %{crates_source}
ecc1ef1
154f17e
BuildRequires:  rust-packaging >= 21
ecc1ef1
9a45ea0
%global _description %{expand:
9a45ea0
Human-friendly time expressions - similar to Python arrow.humanize.}
ecc1ef1
ecc1ef1
%description %{_description}
ecc1ef1
ecc1ef1
%package        devel
ecc1ef1
Summary:        %{summary}
ecc1ef1
BuildArch:      noarch
ecc1ef1
ecc1ef1
%description    devel %{_description}
ecc1ef1
154f17e
This package contains library source intended for building other packages which
154f17e
use the "%{crate}" crate.
ecc1ef1
ecc1ef1
%files          devel
154f17e
%license %{crate_instdir}/LICENSE-APACHE
154f17e
%license %{crate_instdir}/LICENSE-MIT
154f17e
%doc %{crate_instdir}/README.md
154f17e
%{crate_instdir}/
ecc1ef1
ecc1ef1
%package     -n %{name}+default-devel
ecc1ef1
Summary:        %{summary}
ecc1ef1
BuildArch:      noarch
ecc1ef1
ecc1ef1
%description -n %{name}+default-devel %{_description}
ecc1ef1
154f17e
This package contains library source intended for building other packages which
154f17e
use the "default" feature of the "%{crate}" crate.
ecc1ef1
ecc1ef1
%files       -n %{name}+default-devel
154f17e
%ghost %{crate_instdir}/Cargo.toml
ecc1ef1
ecc1ef1
%package     -n %{name}+pedantic-devel
ecc1ef1
Summary:        %{summary}
ecc1ef1
BuildArch:      noarch
ecc1ef1
ecc1ef1
%description -n %{name}+pedantic-devel %{_description}
ecc1ef1
154f17e
This package contains library source intended for building other packages which
154f17e
use the "pedantic" feature of the "%{crate}" crate.
ecc1ef1
ecc1ef1
%files       -n %{name}+pedantic-devel
154f17e
%ghost %{crate_instdir}/Cargo.toml
ecc1ef1
ecc1ef1
%prep
ecc1ef1
%autosetup -n %{crate}-%{version_no_tilde} -p1
ecc1ef1
%cargo_prep
ecc1ef1
7ac4ca9
%generate_buildrequires
7ac4ca9
%cargo_generate_buildrequires
7ac4ca9
ecc1ef1
%build
ecc1ef1
%cargo_build
ecc1ef1
ecc1ef1
%install
ecc1ef1
%cargo_install
ecc1ef1
ecc1ef1
%if %{with check}
ecc1ef1
%check
ecc1ef1
%cargo_test
ecc1ef1
%endif
ecc1ef1
ecc1ef1
%changelog
0e294fd
%autochangelog