From db9ba2af9d0b4fb4629479fc9626c1bae6e6abc6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 30 Jan 2023 17:38:06 +0100 Subject: [PATCH] Add missing runtime dependency on clang-libs --- rust-clang-sys.spec | 18 ++---------------- rust2rpm.conf | 7 ++++--- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index d209406..1573de4 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} @@ -16,8 +16,6 @@ Source: %{crates_source} # * exclude files that are only useful for upstream development Patch: clang-sys-fix-metadata.diff -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: @@ -118,19 +116,6 @@ 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 @@ -289,6 +274,7 @@ use the "libloading" feature of the "%{crate}" crate. %package -n %{name}+runtime-devel Summary: %{summary} BuildArch: noarch +Requires: clang-libs %description -n %{name}+runtime-devel %{_description} diff --git a/rust2rpm.conf b/rust2rpm.conf index 8b6cc3e..b65e25d 100644 --- a/rust2rpm.conf +++ b/rust2rpm.conf @@ -1,6 +1,7 @@ [DEFAULT] unwanted-features = - clang_16_0 + clang_15_0 + clang_16_0 buildrequires = clang-devel >= 3.5 lib+default.requires = @@ -37,5 +38,5 @@ 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