From 8d2fbedbffabe67ffc2bd7b4c204d92460ed80a1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 11 Jan 2024 19:48:14 +0100 Subject: [PATCH] Update to version 1.7.0; Fixes RHBZ#2256353 --- .gitignore | 1 + rust-clang-sys.spec | 21 +++++++++++++++++---- rust2rpm.conf | 43 ------------------------------------------- rust2rpm.toml | 28 ++++++++++++++++++++++++++++ sources | 2 +- 5 files changed, 47 insertions(+), 48 deletions(-) delete mode 100644 rust2rpm.conf create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index c47990c..e785ce5 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ /clang-sys-1.3.3.crate /clang-sys-1.6.0.crate /clang-sys-1.6.1.crate +/clang-sys-1.7.0.crate diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index 31f3026..8e66ad6 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate clang-sys Name: rust-clang-sys -Version: 1.6.1 +Version: 1.7.0 Release: %autorelease Summary: Rust bindings for libclang @@ -13,7 +13,7 @@ License: Apache-2.0 URL: https://crates.io/crates/clang-sys Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust bindings for libclang.} @@ -126,6 +126,19 @@ 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_16_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 16.0 + +%description -n %{name}+clang_16_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_16_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_16_0-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+clang_3_5-devel Summary: %{summary} BuildArch: noarch @@ -307,7 +320,7 @@ use the "static" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 858ad19..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,43 +0,0 @@ -[DEFAULT] -unwanted-features = - clang_16_0 -buildrequires = - clang-devel >= 3.5 -lib+default.requires = - clang-devel >= 3.5 -lib+clang_3_5.requires = - clang-devel >= 3.5 -lib+clang_3_6.requires = - clang-devel >= 3.6 -lib+clang_3_7.requires = - clang-devel >= 3.7 -lib+clang_3_8.requires = - clang-devel >= 3.8 -lib+clang_3_9.requires = - clang-devel >= 3.9 -lib+clang_4_0.requires = - clang-devel >= 4.0 -lib+clang_5_0.requires = - clang-devel >= 5.0 -lib+clang_6_0.requires = - clang-devel >= 6.0 -lib+clang_7_0.requires = - clang-devel >= 7.0 -lib+clang_8_0.requires = - clang-devel >= 8.0 -lib+clang_9_0.requires = - clang-devel >= 9.0 -lib+clang_10_0.requires = - clang-devel >= 10.0 -lib+clang_11_0.requires = - clang-devel >= 11.0 -lib+clang_12_0.requires = - clang-devel >= 12.0 -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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..f8a1960 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,28 @@ +[features] +hide = ["clang_17_0"] + +[requires] +build = ["clang-devel >= 3.5"] + +[requires.features] +default = ["clang-devel >= 3.5"] +runtime = ["clang-libs"] +clang_3_5 = ["clang-devel >= 3.5"] +clang_3_6 = ["clang-devel >= 3.6"] +clang_3_7 = ["clang-devel >= 3.7"] +clang_3_8 = ["clang-devel >= 3.8"] +clang_3_9 = ["clang-devel >= 3.9"] +clang_4_0 = ["clang-devel >= 4.0"] +clang_5_0 = ["clang-devel >= 5.0"] +clang_6_0 = ["clang-devel >= 6.0"] +clang_7_0 = ["clang-devel >= 7.0"] +clang_8_0 = ["clang-devel >= 8.0"] +clang_9_0 = ["clang-devel >= 9.0"] +clang_10_0 = ["clang-devel >= 10.0"] +clang_11_0 = ["clang-devel >= 11.0"] +clang_12_0 = ["clang-devel >= 12.0"] +clang_13_0 = ["clang-devel >= 13.0"] +clang_14_0 = ["clang-devel >= 14.0"] +clang_15_0 = ["clang-devel >= 15.0"] +clang_16_0 = ["clang-devel >= 16.0"] + diff --git a/sources b/sources index 662aeb5..bd93fae 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clang-sys-1.6.1.crate) = a6c62c1d3faae3796f5e7d98ed4f1a8119f0ffaf8fceee8e728cd4da57b0140e82631012450bb0c551cd13814a97065e9e47015320707a87bdfbb6fd317e952c +SHA512 (clang-sys-1.7.0.crate) = e544984d5bd76824ea2093f43f98b59a99e1ca8a5de40e49164b870ed4a91a530f3492faf0678190b91e74aa5d122bdbb32c649998d0ce24912dfb0b83ed6b81