diff --git a/0001-remove-harmful-deny-warnings-lint.patch b/0001-remove-harmful-deny-warnings-lint.patch new file mode 100644 index 0000000..59347e8 --- /dev/null +++ b/0001-remove-harmful-deny-warnings-lint.patch @@ -0,0 +1,21 @@ +From f5fca0fe3effefb9115da27c600727c0399ceb9a Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Wed, 11 Jan 2023 21:38:39 +0100 +Subject: [PATCH] remove harmful deny(warnings) lint + +--- + src/lib.rs | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/lib.rs b/src/lib.rs +index 5bdffb8..fd2556b 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -1,4 +1,3 @@ +-#![deny(warnings)] + #![warn(unused_extern_crates)] + #![deny( + clippy::all, +-- +2.39.0 + diff --git a/rust-simdutf8.spec b/rust-simdutf8.spec index f439594..68c652c 100644 --- a/rust-simdutf8.spec +++ b/rust-simdutf8.spec @@ -1,20 +1,19 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate simdutf8 -Name: rust-%{crate} +Name: rust-simdutf8 Version: 0.1.4 Release: %autorelease Summary: SIMD-accelerated UTF-8 validation -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/simdutf8 Source: %{crates_source} -ExclusiveArch: %{rust_arches} +Patch: 0001-remove-harmful-deny-warnings-lint.patch BuildRequires: rust-packaging >= 21