diff --git a/.gitignore b/.gitignore index 969ebf6..07eee02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /humansize-1.1.0.crate /humansize-1.1.1.crate +/humansize-2.1.3.crate diff --git a/rust-humansize.spec b/rust-humansize.spec index 7796cf4..9319104 100644 --- a/rust-humansize.spec +++ b/rust-humansize.spec @@ -5,9 +5,9 @@ %global crate humansize Name: rust-humansize -Version: 1.1.1 +Version: 2.1.3 Release: %autorelease -Summary: Configurable crate to easily represent file sizes in a human-readable format +Summary: Configurable crate to easily represent sizes in a human-readable format # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 @@ -17,7 +17,7 @@ Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: -A configurable crate to easily represent file sizes in a human-readable +A configurable crate to easily represent sizes in a human-readable format.} %description %{_description} @@ -35,6 +35,7 @@ use the "%{crate}" crate. %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/README.md +%doc %{crate_instdir}/changelog.md %{crate_instdir}/ %package -n %{name}+default-devel @@ -49,6 +50,30 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+impl_style-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+impl_style-devel %{_description} + +This package contains library source intended for building other packages which +use the "impl_style" feature of the "%{crate}" crate. + +%files -n %{name}+impl_style-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+no_alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no_alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "no_alloc" feature of the "%{crate}" crate. + +%files -n %{name}+no_alloc-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index eadd79b..0acb8b4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (humansize-1.1.1.crate) = 90b25500014d7ff541b6feb496ebb25ffbf0bbdfc3ea80ce3b3a1597d08c2cea9b967c674e261d3c8c3587d3481da8d899cc5e3fb05b22c55f90e178508ebeff +SHA512 (humansize-2.1.3.crate) = 0adb6825650fa074a0ff33a4090563987ef311de5ab23e12f715286d8198310d17cca9028f41b8ef0e17d15b939e50d165419853ffde6a7ccf977d33acd920fe