diff --git a/.gitignore b/.gitignore index 5a7e942..81eff55 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /bytestring-0.1.4.crate /bytestring-0.1.5.crate /bytestring-1.0.0.crate +/bytestring-1.1.0.crate diff --git a/bytestring-fix-metadata.diff b/bytestring-fix-metadata.diff deleted file mode 100644 index 5147684..0000000 --- a/bytestring-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- bytestring-1.0.0/Cargo.toml 2020-12-31T02:31:22+00:00 -+++ bytestring-1.0.0/Cargo.toml 2021-07-20T22:33:58.979591+00:00 -@@ -32,3 +32,6 @@ - [dependencies.serde] - version = "1.0" - optional = true -+ -+[dev-dependencies.siphasher] -+version = "0.3" diff --git a/rust-bytestring.spec b/rust-bytestring.spec index 4836e2d..452a391 100644 --- a/rust-bytestring.spec +++ b/rust-bytestring.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 18 -%bcond_without check +# Generated by rust2rpm 22 +# * tests can only be run in-tree +%bcond_with check %global debug_package %{nil} %global crate bytestring -Name: rust-%{crate} -Version: 1.0.0 +Name: rust-bytestring +Version: 1.1.0 Release: %autorelease Summary: Immutable UTF-8 encoded string using Bytes as storage -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/bytestring Source: %{crates_source} -# Initial patched metadata -# * add missing siphasher dev-dependency -Patch0: bytestring-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Immutable UTF-8 encoded string using Bytes as storage.} @@ -35,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 CHANGES.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGES.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,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}+serde-devel Summary: %{summary} @@ -61,11 +56,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 2030eb3..3dbdcdf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bytestring-1.0.0.crate) = 47563ba32263c334c1ab42e4331f090bc2c5d2c938dd9664037cc52665f37217a538d09545d252e55971543645253ef022bea404f0f871cb85a043bb82a872f5 +SHA512 (bytestring-1.1.0.crate) = 6f6b96a6a9022ac2a06221f13fed43685b4481a6df2bfea5d585d24e5033c7d1ebd504d2d3331139955a93effc917229686271ba350ad3e01f4baca121432193