From 19a72089c24cd439339223e2520de8ef925b3df4 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mon, 2 Mar 2020 14:46:21 +0100 Subject: [PATCH] Update to 0.4.11 Signed-off-by: Igor Raits --- .gitignore | 1 + ...-build.rs-Simplify-check-for-version.patch | 29 ------------------- rust-proc-macro-error-attr.spec | 7 +++-- sources | 2 +- 4 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 0001-build.rs-Simplify-check-for-version.patch diff --git a/.gitignore b/.gitignore index 1cc37ef..e6e6d9d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /proc-macro-error-attr-0.4.8.crate /proc-macro-error-attr-0.4.9.crate /proc-macro-error-attr-0.4.10.crate +/proc-macro-error-attr-0.4.11.crate diff --git a/0001-build.rs-Simplify-check-for-version.patch b/0001-build.rs-Simplify-check-for-version.patch deleted file mode 100644 index f0d4bed..0000000 --- a/0001-build.rs-Simplify-check-for-version.patch +++ /dev/null @@ -1,29 +0,0 @@ -From e7626a25471d2db29e7cdee81308ee4604b41544 Mon Sep 17 00:00:00 2001 -From: Igor Raits -Date: Mon, 2 Mar 2020 12:14:11 +0100 -Subject: [PATCH] build.rs: Simplify check for version - -This also fixes build with rustc shipped by distributions. - -Fixes: https://gitlab.com/CreepySkeleton/proc-macro-error/issues/8 -Signed-off-by: Igor Raits ---- - build.rs | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) - -diff --git a/build.rs b/build.rs -index fb4384c..f2ac6a7 100644 ---- a/build.rs -+++ b/build.rs -@@ -1,7 +1,5 @@ - fn main() { -- let (version, _, _) = version_check::triple().unwrap(); -- -- if version.at_most("1.36.0") { -+ if version_check::is_max_version("1.36.0").unwrap_or(false) { - println!("cargo:rustc-cfg=always_assert_unwind"); - } - } --- -2.25.1 - diff --git a/rust-proc-macro-error-attr.spec b/rust-proc-macro-error-attr.spec index f8ad90f..69a897f 100644 --- a/rust-proc-macro-error-attr.spec +++ b/rust-proc-macro-error-attr.spec @@ -5,7 +5,7 @@ %global crate proc-macro-error-attr Name: rust-%{crate} -Version: 0.4.10 +Version: 0.4.11 Release: 1%{?dist} Summary: Attribute macro for proc-macro-error crate @@ -13,8 +13,6 @@ Summary: Attribute macro for proc-macro-error crate License: MIT or ASL 2.0 URL: https://crates.io/crates/proc-macro-error-attr Source: %{crates_source} -# https://gitlab.com/CreepySkeleton/proc-macro-error/-/merge_requests/25 -Patch0001: 0001-build.rs-Simplify-check-for-version.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -72,6 +70,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Mon Mar 02 14:45:57 CET 2020 Igor Raits - 0.4.11-1 +- Update to 0.4.11 + * Mon Mar 02 09:05:47 CET 2020 Igor Raits - 0.4.10-1 - Update to 0.4.10 diff --git a/sources b/sources index 31679dc..356e7bd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (proc-macro-error-attr-0.4.10.crate) = 5098c75fbb932fa6343dcadf1bfb147b8c328d8bf87ecfa81175cc4e944e2cd72776f830df62c07ee90ca40d3218de5277e33d305d69fcc87c856d05e30f6cac +SHA512 (proc-macro-error-attr-0.4.11.crate) = a1e23486c7f4af41b419b4c833789e0edd0506bc774e3504fff2bc5bc88c2f8799ae545b79138e6ce686f479ec703f90112589639bae861b99daef0f08496885