diff --git a/.gitignore b/.gitignore index bd30550..851385a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ /os_str_bytes-2.4.0.crate /os_str_bytes-5.0.0.crate +/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 +/os_str_bytes-6.3.0.crate diff --git a/os_str_bytes-fix-metadata.diff b/os_str_bytes-fix-metadata.diff deleted file mode 100644 index 4015927..0000000 --- a/os_str_bytes-fix-metadata.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- os_str_bytes-5.0.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ os_str_bytes-5.0.0/Cargo.toml 2021-11-23T13:51:48.444589+00:00 -@@ -30,13 +30,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 a8389cc..e0aa3c0 100644 --- a/rust-os_str_bytes.spec +++ b/rust-os_str_bytes.spec @@ -1,31 +1,24 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate os_str_bytes -Name: rust-%{crate} -Version: 5.0.0 +Name: rust-os_str_bytes +Version: 6.3.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} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +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} @@ -35,13 +28,15 @@ 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 COPYRIGHT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,23 +44,23 @@ 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}+deprecated-byte-patterns-devel +%package -n %{name}+checked_conversions-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+deprecated-byte-patterns-devel %{_description} +%description -n %{name}+checked_conversions-devel %{_description} -This package contains library source intended for building other packages -which use "deprecated-byte-patterns" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "checked_conversions" feature of the "%{crate}" crate. -%files -n %{name}+deprecated-byte-patterns-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+checked_conversions-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+memchr-devel Summary: %{summary} @@ -73,11 +68,23 @@ BuildArch: noarch %description -n %{name}+memchr-devel %{_description} -This package contains library source intended for building other packages -which use "memchr" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "memchr" feature of the "%{crate}" crate. %files -n %{name}+memchr-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%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} @@ -85,11 +92,11 @@ BuildArch: noarch %description -n %{name}+raw_os_str-devel %{_description} -This package contains library source intended for building other packages -which use "raw_os_str" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "raw_os_str" feature of the "%{crate}" crate. %files -n %{name}+raw_os_str-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 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 a7975ec..6654798 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (os_str_bytes-5.0.0.crate) = 338b8c811e5c1c609ce2480f93d0370846335244a48e7cb88b7baa08dca765ce276d4abe2d828afd40e4ded87b9b9fc7c3b940749d27743ab1db3ef7f1016046 +SHA512 (os_str_bytes-6.3.0.crate) = 34f861a15543933c9fcb560a835bd943231ffcef2c68126d8633f8e792d2d59a20765947feddb0c795a15329d74260d6c2bf74a1f10ee88f355f47240acbb42e