diff --git a/.gitignore b/.gitignore index a50afbe..b9d1b18 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ /libc-0.2.78.crate /libc-0.2.79.crate /libc-0.2.80.crate +/libc-0.2.81.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index 7bbe884..5a099e0 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,4 +1,8 @@ [DEFAULT] +unwanted-features = + const-extern-fn + rustc-dep-of-std + rustc-std-workspace-core buildrequires = glibc-devel lib.requires = diff --git a/libc-fix-metadata.diff b/libc-fix-metadata.diff deleted file mode 100644 index 11e2fb7..0000000 --- a/libc-fix-metadata.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- libc-0.2.80/Cargo.toml 2020-10-25T20:52:21+00:00 -+++ libc-0.2.80/Cargo.toml 2020-11-04T20:03:44.950947+00:00 -@@ -24,16 +24,11 @@ - categories = ["external-ffi-bindings", "no-std", "os"] - license = "MIT OR Apache-2.0" - repository = "https://github.com/rust-lang/libc" --[dependencies.rustc-std-workspace-core] --version = "1.0.0" --optional = true - - [features] - align = [] --const-extern-fn = [] - default = ["std"] - extra_traits = [] --rustc-dep-of-std = ["align", "rustc-std-workspace-core"] - std = [] - use_std = ["std"] - [badges.azure-devops] diff --git a/rust-libc.spec b/rust-libc.spec index abd5926..78ebc24 100644 --- a/rust-libc.spec +++ b/rust-libc.spec @@ -1,22 +1,18 @@ -# Generated by rust2rpm 15 +# Generated by rust2rpm 16 %bcond_without check %global debug_package %{nil} %global crate libc Name: rust-%{crate} -Version: 0.2.80 -Release: 2%{?dist} +Version: 0.2.81 +Release: 1%{?dist} Summary: Raw FFI bindings to platform libraries like libc # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/libc Source: %{crates_source} -# Initial patched metadata -# * drop dependencies on compiler internals (rustc-std-workspace-core) -# * drop nightly-only "const-extern-fn" feature -Patch0: libc-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -24,6 +20,7 @@ BuildArch: noarch %endif BuildRequires: rust-packaging +BuildRequires: glibc-devel %global _description %{expand: Raw FFI bindings to platform libraries like libc.} @@ -111,7 +108,6 @@ which use "use_std" feature of "%{crate}" crate. %generate_buildrequires %cargo_generate_buildrequires -echo 'glibc-devel' %build %cargo_build @@ -125,6 +121,10 @@ echo 'glibc-devel' %endif %changelog +* Mon Dec 07 2020 Fabio Valentini - 0.2.81-1 +- Update to version 0.2.81. +- Fixes RHBZ#1904841 + * Wed Nov 11 2020 Fabio Valentini - 0.2.80-2 - Reintroduce accidentally removed "align" feature. diff --git a/sources b/sources index a1f0c2b..8c2a81e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libc-0.2.80.crate) = 69b2f4c67d29bd4fc8f6d0388036ac3ea0de2ba7387f56f4e4bd035696ba313fdce10d18107ef83490f574d6fff796b305d5f2c2bb03a7cf33b9136386e65b8c +SHA512 (libc-0.2.81.crate) = 8e121e0dcbd8218e02c2c6536ef6398cd002a92406d433c39bf84576e9b881c5b8a66fee826da6a6189f44b825f3a9d959075eeb0501d7f604bf9cc1a8b8d437