diff --git a/.gitignore b/.gitignore index 3aa1d09..13baf39 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /os_str_bytes-6.0.0.crate /os_str_bytes-6.0.1.crate /os_str_bytes-6.1.0.crate +/os_str_bytes-6.2.0.crate diff --git a/os_str_bytes-fix-metadata.diff b/os_str_bytes-fix-metadata.diff deleted file mode 100644 index 9c6547d..0000000 --- a/os_str_bytes-fix-metadata.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- os_str_bytes-6.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ os_str_bytes-6.1.0/Cargo.toml 2022-07-16T14:28:30.213036+00:00 -@@ -56,14 +56,6 @@ - version = "2.4" - optional = true - --[dependencies.print_bytes] --version = "0.5" --optional = true -- --[dependencies.uniquote] --version = "3.0" --optional = true -- - [dev-dependencies.getrandom] - version = "0.2" - diff --git a/rust-os_str_bytes.spec b/rust-os_str_bytes.spec index 7d0f34e..0a7b5e0 100644 --- a/rust-os_str_bytes.spec +++ b/rust-os_str_bytes.spec @@ -1,28 +1,24 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate os_str_bytes -Name: rust-%{crate} -Version: 6.1.0 +Name: rust-os_str_bytes +Version: 6.2.0 Release: %autorelease -Summary: Utilities for converting between byte sequences and platform-native strings +Summary: Convert between byte sequences and platform-native strings -# 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/os_str_bytes Source: %{crates_source} -# Initial patched metadata -# * drop optional dependencies that are not packaged for Fedora -Patch0: os_str_bytes-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: -Utilities for converting between byte sequences and platform-native strings.} +Convert between byte sequences and platform-native strings.} %description %{_description} @@ -66,6 +62,18 @@ use the "memchr" feature of the "%{crate}" crate. %files -n %{name}+memchr-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+print_bytes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+print_bytes-devel %{_description} + +This package contains library source intended for building other packages which +use the "print_bytes" feature of the "%{crate}" crate. + +%files -n %{name}+print_bytes-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+raw_os_str-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..1c973b4 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + uniquote diff --git a/sources b/sources index 46e8fd4..041b0ea 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (os_str_bytes-6.1.0.crate) = b15a901533380be745e3d3ee34d36e192bcf32c8ca66b0aeb77da66b931773b9bd818bd5485c142f8733e7af7d41958957d9ed8f8c6e405b89be69df625364f5 +SHA512 (os_str_bytes-6.2.0.crate) = aecfd7ad0433ffe532d72c6c269eefb7e7097cc1acdfe91511ecdaa7ad4db5d97026268bd216c70bf4fe17f23bc02b1fbbe95a28b8fedda3f812b3ce78723c75