438b69e
# Generated by rust2rpm 19
fb94847
%bcond_without check
9f2d6a6
%global debug_package %{nil}
9f2d6a6
9f2d6a6
%global crate humantime
9f2d6a6
9f2d6a6
Name:           rust-%{crate}
dbec089
Version:        2.1.0
438b69e
Release:        %autorelease
9f2d6a6
Summary:        Parser and formatter for std::time::{Duration, SystemTime}
9f2d6a6
054caed
# Upstream license specification: MIT/Apache-2.0
054caed
License:        MIT or ASL 2.0
9f2d6a6
URL:            https://crates.io/crates/humantime
fb94847
Source:         %{crates_source}
9f2d6a6
9f2d6a6
ExclusiveArch:  %{rust_arches}
fb94847
%if %{__cargo_skip_build}
fb94847
BuildArch:      noarch
fb94847
%endif
9f2d6a6
9f2d6a6
BuildRequires:  rust-packaging
9f2d6a6
fb94847
%global _description %{expand:
fb94847
Parser and formatter for std::time::{Duration, SystemTime}.}
054caed
054caed
%description %{_description}
9f2d6a6
9f2d6a6
%package        devel
9f2d6a6
Summary:        %{summary}
9f2d6a6
BuildArch:      noarch
9f2d6a6
054caed
%description    devel %{_description}
9f2d6a6
438b69e
This package contains library source intended for building other packages which
438b69e
use "%{crate}" crate.
054caed
054caed
%files          devel
054caed
%license LICENSE-APACHE LICENSE-MIT
054caed
%doc README.md
750ce94
%{cargo_registry}/%{crate}-%{version_no_tilde}/
054caed
054caed
%package     -n %{name}+default-devel
054caed
Summary:        %{summary}
054caed
BuildArch:      noarch
054caed
054caed
%description -n %{name}+default-devel %{_description}
054caed
438b69e
This package contains library source intended for building other packages which
438b69e
use "the default" feature of the "%{crate}" crate.
054caed
054caed
%files       -n %{name}+default-devel
750ce94
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
9f2d6a6
9f2d6a6
%prep
fb94847
%autosetup -n %{crate}-%{version_no_tilde} -p1
9f2d6a6
%cargo_prep
9f2d6a6
fb94847
%generate_buildrequires
fb94847
%cargo_generate_buildrequires
fb94847
9f2d6a6
%build
9f2d6a6
%cargo_build
9f2d6a6
9f2d6a6
%install
9f2d6a6
%cargo_install
9f2d6a6
9f2d6a6
%if %{with check}
9f2d6a6
%check
9f2d6a6
%cargo_test
9f2d6a6
%endif
9f2d6a6
9f2d6a6
%changelog
438b69e
%autochangelog