From d3fd3bc6a3fa13014b05f51be3e1e4f27b757916 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mar 03 2020 14:34:11 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a11d51a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/humantime-1.3.0.crate diff --git a/rust-humantime1.spec b/rust-humantime1.spec new file mode 100644 index 0000000..e0e9794 --- /dev/null +++ b/rust-humantime1.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate humantime + +Name: rust-%{crate}1 +Version: 1.3.0 +Release: 1%{?dist} +Summary: Parser and formatter for std::time::{Duration, SystemTime} + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/humantime +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Parser and formatter for std::time::{Duration, SystemTime}.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Tue Mar 03 15:33:46 CET 2020 Igor Raits - 1.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..0855b89 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (humantime-1.3.0.crate) = 2589bfdac96108951882b7ee497528b9084ddd344a67914810ea9961a1e319167d5cab959c66cbb26e398e75ca50d488a251694fff35f3c2f69a88b6f22844da