diff --git a/.gitignore b/.gitignore index af7d2e1..7da43ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /bytesize-1.0.0.crate /bytesize-1.0.1.crate /bytesize-1.1.0.crate +/bytesize-1.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index ad8cd84..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bytesize - -The rust-bytesize package \ No newline at end of file diff --git a/rust-bytesize.spec b/rust-bytesize.spec index 07efe39..ff590dc 100644 --- a/rust-bytesize.spec +++ b/rust-bytesize.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate bytesize -Name: rust-%{crate} -Version: 1.1.0 +Name: rust-bytesize +Version: 1.2.0 Release: %autorelease Summary: Utility for human-readable bytes representations -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/bytesize Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Utility for human-readable bytes representations.} +An utility for human-readable bytes representations.} %description %{_description} @@ -32,13 +26,13 @@ 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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +40,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}+serde-devel Summary: %{summary} @@ -58,11 +52,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-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/sources b/sources index d33dc01..a3660df 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bytesize-1.1.0.crate) = 36f35cf53c468cf011b231d3fc5d00c5224fa3d917854e347daeaaae53ae7ee36c4d8ba26788460d56c922c9ffb0eeebc60655fef7366ae42e221950d03f6715 +SHA512 (bytesize-1.2.0.crate) = 425d284141175f0e40ba88a77141269b65bb63175ca8d1624359309fab546dd9e2959470cf16dec3f69a41b334e45eef62ee34298d3a74f3e987b44a7df912f5