diff --git a/.gitignore b/.gitignore index 2e573e2..160a5b3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /memchr-2.3.3.crate /memchr-2.3.4.crate /memchr-2.4.0.crate +/memchr-2.4.1.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..302578b --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,5 @@ +[DEFAULT] +unwanted-features = + compiler_builtins + core + rustc-dep-of-std diff --git a/memchr-fix-metadata.diff b/memchr-fix-metadata.diff new file mode 100644 index 0000000..c3fde02 --- /dev/null +++ b/memchr-fix-metadata.diff @@ -0,0 +1,11 @@ +--- memchr-2.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ memchr-2.4.1/Cargo.toml 2021-08-21T09:08:55.012961+00:00 +@@ -14,7 +14,7 @@ + name = "memchr" + version = "2.4.1" + authors = ["Andrew Gallant ", "bluss"] +-exclude = ["/bench", "/.github", "/fuzz"] ++exclude = ["/bench", "/.github", "/fuzz", "/scripts"] + description = "Safe interface to memchr." + homepage = "https://github.com/BurntSushi/memchr" + documentation = "https://docs.rs/memchr/" diff --git a/rust-memchr.spec b/rust-memchr.spec index e18ad93..6d8ec9a 100644 --- a/rust-memchr.spec +++ b/rust-memchr.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate memchr Name: rust-%{crate} -Version: 2.4.0 +Version: 2.4.1 Release: %autorelease Summary: Safe interface to memchr @@ -13,6 +13,9 @@ Summary: Safe interface to memchr License: Unlicense or MIT URL: https://crates.io/crates/memchr Source: %{crates_source} +# Initial patched metadata +# * exclude scripts used for upstream development +Patch0: memchr-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} diff --git a/sources b/sources index 26f7977..f1deb56 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (memchr-2.4.0.crate) = b142e308a5aef8e45910411789031e194349ee540c4ced0e2384d864dc1913299fb63a161ceb5228256e97d0949661b7f83a169ef9d4b78afbd9004cb7b8a2fb +SHA512 (memchr-2.4.1.crate) = d8912e3902a2126f86159bdc998532a2890b882cbb7d59b5a470fffcad4c32281e045f2fff48a235aa4189f1928866bf3d33b699d50866ad6b6c272bba7adb11