|
|
@ -7,37 +7,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 1.1.1
|
|
|
|
Version: 1.1.1
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Parser and formatter for std::time::{Duration, SystemTime}
|
|
|
|
Summary: Parser and formatter for std::time::{Duration, SystemTime}
|
|
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0 or MIT
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
URL: https://crates.io/crates/humantime
|
|
|
|
URL: https://crates.io/crates/humantime
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(quick-error/default) >= 1.0.0 with crate(quick-error/default) < 2.0.0)
|
|
|
|
BuildRequires: (crate(quick-error) >= 1.0.0 with crate(quick-error) < 2.0.0)
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
# [dev-dependencies]
|
|
|
|
BuildRequires: (crate(chrono/default) >= 0.4.0 with crate(chrono/default) < 0.5.0)
|
|
|
|
BuildRequires: (crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0)
|
|
|
|
BuildRequires: (crate(rand/default) >= 0.4.2 with crate(rand/default) < 0.5.0)
|
|
|
|
BuildRequires: (crate(rand) >= 0.4.2 with crate(rand) < 0.5.0)
|
|
|
|
BuildRequires: (crate(time/default) >= 0.1.39 with crate(time/default) < 0.2.0)
|
|
|
|
BuildRequires: (crate(time) >= 0.1.39 with crate(time) < 0.2.0)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%global _description \
|
|
|
|
%{summary}.
|
|
|
|
A parser and formatter for std::time::{Duration, SystemTime}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel %{_description}
|
|
|
|
A parser and formatter for std::time::{Duration, SystemTime}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use %{crate} from crates.io.
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{bulk,vagga}.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
@ -54,13 +72,10 @@ which use %{crate} from crates.io.
|
|
|
|
%cargo_test
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{bulk,vagga}.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Oct 30 2018 Josh Stone <jistone@redhat.com> - 1.1.1-4
|
|
|
|
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.1-3
|
|
|
|
* Sat Aug 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.1-3
|
|
|
|
- Run tests in infrastructure
|
|
|
|
- Run tests in infrastructure
|
|
|
|
|
|
|
|
|
|
|
|