diff --git a/.gitignore b/.gitignore index 934aafe..2633ca7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /io-lifetimes-0.2.0.crate +/io-lifetimes-0.3.1.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..0ee83eb --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + fs-err diff --git a/io-lifetimes-fix-metadata.diff b/io-lifetimes-fix-metadata.diff index 70deb9f..6587b68 100644 --- a/io-lifetimes-fix-metadata.diff +++ b/io-lifetimes-fix-metadata.diff @@ -1,13 +1,9 @@ ---- io-lifetimes-0.2.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ io-lifetimes-0.2.0/Cargo.toml 2021-06-25T15:41:57.787507+00:00 -@@ -44,11 +44,8 @@ - features = ["io-std", "fs", "net", "process"] - optional = true - [build-dependencies.rustc_version] --version = "0.4.0" -+version = "0.3.3" +--- io-lifetimes-0.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ io-lifetimes-0.3.1/Cargo.toml 2021-09-22T21:47:35.524578+00:00 +@@ -55,8 +55,5 @@ [target."cfg(not(windows))".dependencies.libc] version = "0.2.96" + optional = true -[target."cfg(windows)".dependencies.winapi] -version = "0.3.9" -features = ["handleapi", "std", "winsock2"] diff --git a/rust-io-lifetimes.spec b/rust-io-lifetimes.spec index c036330..84169b8 100644 --- a/rust-io-lifetimes.spec +++ b/rust-io-lifetimes.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate io-lifetimes Name: rust-%{crate} -Version: 0.2.0 -Release: 2%{?dist} +Version: 0.3.1 +Release: 1%{?dist} Summary: Low-level I/O ownership and borrowing library # Upstream license specification: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT @@ -15,7 +15,6 @@ URL: https://crates.io/crates/io-lifetimes Source: %{crates_source} # Initial patched metadata # - Remove windows-only dependency -# - Use packaged version of rustc_version Patch0: io-lifetimes-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -70,6 +69,30 @@ which use "async-std" feature of "%{crate}" crate. %files -n %{name}+async-std-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+close-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+close-devel %{_description} + +This package contains library source intended for building other packages +which use "close" feature of "%{crate}" crate. + +%files -n %{name}+close-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+libc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libc-devel %{_description} + +This package contains library source intended for building other packages +which use "libc" feature of "%{crate}" crate. + +%files -n %{name}+libc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+mio-devel Summary: %{summary} BuildArch: noarch @@ -137,6 +160,9 @@ which use "tokio" feature of "%{crate}" crate. %endif %changelog +* Wed Sep 22 2021 Olivier Lemasle - 0.3.1-1 +- Update to upstream 0.3.1 (rhbz#1991767) + * Fri Jul 23 2021 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 2fb0d57..bd84538 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (io-lifetimes-0.2.0.crate) = a7c8821478d2180ce748958b2b4debd51a057f1d9a3ad1ac0b909e6e799f23bee87c92c87addf2f62da93a07fb699e9837aebe61a699f2800b825abaf733b379 +SHA512 (io-lifetimes-0.3.1.crate) = feaf3b2ed1e8d54aec35df04bda7b50e875de652a6310f423f070c4d69c02f6f50c40d48be5c7fac4c6d0b93a188683a6f2932f0e885261c6f8d05cdb5d7d17f