diff --git a/.gitignore b/.gitignore index 06a64ca..30c24f1 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /io-lifetimes-1.0.9.crate /io-lifetimes-1.0.10.crate /io-lifetimes-1.0.11.crate +/io-lifetimes-2.0.2.crate diff --git a/io-lifetimes-fix-metadata-auto.diff b/io-lifetimes-fix-metadata-auto.diff index 4ad39f8..7ec186b 100644 --- a/io-lifetimes-fix-metadata-auto.diff +++ b/io-lifetimes-fix-metadata-auto.diff @@ -1,15 +1,15 @@ ---- io-lifetimes-1.0.11/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ io-lifetimes-1.0.11/Cargo.toml 2023-05-25T12:14:36.249026+00:00 -@@ -42,8 +42,6 @@ +--- io-lifetimes-2.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ io-lifetimes-2.0.2/Cargo.toml 2023-11-05T00:08:08.447170+00:00 +@@ -48,8 +48,6 @@ [features] close = [ "libc", - "hermit-abi", - "windows-sys", ] - default = ["close"] + default = [] -@@ -82,18 +80,3 @@ +@@ -88,17 +86,3 @@ version = "0.2.96" optional = true @@ -25,6 +25,5 @@ - "Win32_Networking_WinSock", - "Win32_Security", - "Win32_System_IO", -- "Win32_System_Threading", -] -optional = true diff --git a/rust-io-lifetimes.spec b/rust-io-lifetimes.spec index b06145b..3e8b183 100644 --- a/rust-io-lifetimes.spec +++ b/rust-io-lifetimes.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate io-lifetimes Name: rust-io-lifetimes -Version: 1.0.11 +Version: 2.0.2 Release: %autorelease Summary: Low-level I/O ownership and borrowing library License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT URL: https://crates.io/crates/io-lifetimes Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: io-lifetimes-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A low-level I/O ownership and borrowing library.} @@ -77,18 +77,6 @@ use the "close" feature of the "%{crate}" crate. %files -n %{name}+close-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+fs-err-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+fs-err-devel %{_description} - -This package contains library source intended for building other packages which -use the "fs-err" feature of the "%{crate}" crate. - -%files -n %{name}+fs-err-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+libc-devel Summary: %{summary} BuildArch: noarch @@ -150,7 +138,7 @@ use the "tokio" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 05ec09f..337855e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (io-lifetimes-1.0.11.crate) = 30c6e5ce6f5beabe0d7bee4f4522884d1316cf7d9b8d093ba0f952995997be3d0f10e1e77b9c20b7fe2b65429de0d2ec89bb35e939455795205206a3154ed544 +SHA512 (io-lifetimes-2.0.2.crate) = d6f99e968f660ab3fd65d4cabcb2ea099b8b951104606445cceec68d144e022399dc0d0763f319a442c1e10a843862e1acaccd4a13a737594cc47f69c96a4253