Initial package

epel9
Josh Stone 7 years ago
parent 0cc248b462
commit 9f2d6a6686

1
.gitignore vendored

@ -0,0 +1 @@
/humantime-1.1.0.crate

@ -0,0 +1,64 @@
# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate humantime
Name: rust-%{crate}
Version: 1.1.0
Release: 1%{?dist}
Summary: Parser and formatter for std::time::{Duration, SystemTime}
License: ASL 2.0 or MIT
URL: https://crates.io/crates/humantime
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(quick-error) >= 1.0.0 with crate(quick-error) < 2.0.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0)
BuildRequires: (crate(rand) >= 0.4.2 with crate(rand) < 0.5.0)
BuildRequires: (crate(time) >= 0.1.39 with crate(time) < 0.2.0)
%endif
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A parser and formatter for std::time::{Duration, SystemTime}.
This package contains library source intended for building other packages
which use %{crate} from crates.io.
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%files devel
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/{bulk,vagga}.yaml
%changelog
* Mon Feb 26 2018 Josh Stone <jistone@redhat.com> - 1.1.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (humantime-1.1.0.crate) = 795159e13203510bd3b77d1d7a2ed5c640df4f408d38fe6543f1c2feb463895f0ed0e84002b6763cb81338328878e8c45454bdd8521d4196b90f5743e748c0e8
Loading…
Cancel
Save