diff --git a/.gitignore b/.gitignore index c7176bc..70910fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /chrono-humanize-0.2.1.crate +/chrono-humanize-0.2.2.crate diff --git a/rust-chrono-humanize.spec b/rust-chrono-humanize.spec index 3a0d6b1..3716b08 100644 --- a/rust-chrono-humanize.spec +++ b/rust-chrono-humanize.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate chrono-humanize -Name: rust-%{crate} -Version: 0.2.1 +Name: rust-chrono-humanize +Version: 0.2.2 Release: %autorelease Summary: Human-friendly time expressions # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/chrono-humanize Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Human-friendly time expressions - similar to Python arrow.humanize.} @@ -32,13 +29,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +44,11 @@ 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. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pedantic-devel Summary: %{summary} @@ -58,11 +56,11 @@ BuildArch: noarch %description -n %{name}+pedantic-devel %{_description} -This package contains library source intended for building other packages -which use "pedantic" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "pedantic" feature of the "%{crate}" crate. %files -n %{name}+pedantic-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index c9e0113..e2bb4e2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (chrono-humanize-0.2.1.crate) = 199a3da317791cd4fd607894afedc8b6607a8562f9f69ff805304a65e935b51cd7681521bb23c1c00baaa6d7e836174d51986f77e683c1312d3017f41f95d083 +SHA512 (chrono-humanize-0.2.2.crate) = 9829f71baeb218828d14de83d29a2407bc4f992292330f53a6bd6316cfc87976d338ab893087fad9d69d1dc3a5bec13b70dcb4593fcecde3eb100ab6555e534b