From 61ac92310a43433cbb2a0197cf9afcbbb9187d85 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 17 May 2023 20:48:14 +0200 Subject: [PATCH] Update to version 1.6.1; Fixes RHBZ#2182940 --- .gitignore | 1 + clang-sys-fix-metadata.diff | 10 ---------- rust-clang-sys.spec | 18 ++++++++++++++---- rust2rpm.conf | 3 ++- sources | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 clang-sys-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 9872e68..c47990c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ /clang-sys-1.3.2.crate /clang-sys-1.3.3.crate /clang-sys-1.6.0.crate +/clang-sys-1.6.1.crate diff --git a/clang-sys-fix-metadata.diff b/clang-sys-fix-metadata.diff deleted file mode 100644 index 57a5c56..0000000 --- a/clang-sys-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- clang-sys-1.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ clang-sys-1.6.0/Cargo.toml 2023-02-23T15:25:42.991764+00:00 -@@ -20,6 +20,7 @@ - readme = "README.md" - license = "Apache-2.0" - repository = "https://github.com/KyleMayes/clang-sys" -+exclude = ["/clippy.toml"] - - [package.metadata.docs.rs] - features = [ diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index f42be5f..31f3026 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -5,16 +5,13 @@ %global crate clang-sys Name: rust-clang-sys -Version: 1.6.0 +Version: 1.6.1 Release: %autorelease Summary: Rust bindings for libclang License: Apache-2.0 URL: https://crates.io/crates/clang-sys Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * exclude files that are only useful for upstream development -Patch: clang-sys-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -116,6 +113,19 @@ use the "clang_14_0" feature of the "%{crate}" crate. %files -n %{name}+clang_14_0-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+clang_15_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 15.0 + +%description -n %{name}+clang_15_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_15_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_15_0-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+clang_3_5-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.conf b/rust2rpm.conf index b65e25d..858ad19 100644 --- a/rust2rpm.conf +++ b/rust2rpm.conf @@ -1,6 +1,5 @@ [DEFAULT] unwanted-features = - clang_15_0 clang_16_0 buildrequires = clang-devel >= 3.5 @@ -38,5 +37,7 @@ lib+clang_13_0.requires = clang-devel >= 13.0 lib+clang_14_0.requires = clang-devel >= 14.0 +lib+clang_15_0.requires = + clang-devel >= 15.0 lib+runtime.requires = clang-libs diff --git a/sources b/sources index 3eb8b8a..662aeb5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clang-sys-1.6.0.crate) = 0cceba8835b7c2108c5be6124aeb36130da759e9e05fe34c04528c9fa3f14826af2ec003ff8232ef789a740ff39635007cade54833c0ce30869ab3f2bb9560ef +SHA512 (clang-sys-1.6.1.crate) = a6c62c1d3faae3796f5e7d98ed4f1a8119f0ffaf8fceee8e728cd4da57b0140e82631012450bb0c551cd13814a97065e9e47015320707a87bdfbb6fd317e952c