From 7fc75466d74872f0bc214138bf3824ad5d2c21c2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 23 May 2022 18:04:29 +0200 Subject: [PATCH] Update to version 1.3.2; Fixes RHBZ#2087615 --- .gitignore | 1 + clang-sys-fix-metadata.diff | 4 +-- rust-clang-sys.spec | 51 +++++++++++++++++++------------------ sources | 2 +- 4 files changed, 30 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 2814dc6..95995ac 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /clang-sys-1.2.2.crate /clang-sys-1.3.0.crate /clang-sys-1.3.1.crate +/clang-sys-1.3.2.crate diff --git a/clang-sys-fix-metadata.diff b/clang-sys-fix-metadata.diff index 01f6bd5..d1e8650 100644 --- a/clang-sys-fix-metadata.diff +++ b/clang-sys-fix-metadata.diff @@ -1,5 +1,5 @@ ---- clang-sys-1.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ clang-sys-1.3.1/Cargo.toml 2022-02-04T23:11:52.843635+00:00 +--- clang-sys-1.3.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ clang-sys-1.3.2/Cargo.toml 2022-05-23T16:02:40.047284+00:00 @@ -20,6 +20,7 @@ readme = "README.md" license = "Apache-2.0" diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index 45b6929..ef3bee6 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate clang-sys Name: rust-%{crate} -Version: 1.3.1 +Version: 1.3.2 Release: %autorelease Summary: Rust bindings for libclang @@ -19,7 +19,7 @@ Patch0: clang-sys-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Rust bindings for libclang.} @@ -36,9 +36,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE.txt -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE.txt +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +52,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_10_0-devel Summary: %{summary} @@ -64,7 +65,7 @@ This package contains library source intended for building other packages which use the "clang_10_0" feature of the "%{crate}" crate. %files -n %{name}+clang_10_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_11_0-devel Summary: %{summary} @@ -77,7 +78,7 @@ This package contains library source intended for building other packages which use the "clang_11_0" feature of the "%{crate}" crate. %files -n %{name}+clang_11_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_12_0-devel Summary: %{summary} @@ -90,7 +91,7 @@ This package contains library source intended for building other packages which use the "clang_12_0" feature of the "%{crate}" crate. %files -n %{name}+clang_12_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_13_0-devel Summary: %{summary} @@ -103,7 +104,7 @@ This package contains library source intended for building other packages which use the "clang_13_0" feature of the "%{crate}" crate. %files -n %{name}+clang_13_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_3_5-devel Summary: %{summary} @@ -116,7 +117,7 @@ This package contains library source intended for building other packages which use the "clang_3_5" feature of the "%{crate}" crate. %files -n %{name}+clang_3_5-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_3_6-devel Summary: %{summary} @@ -129,7 +130,7 @@ This package contains library source intended for building other packages which use the "clang_3_6" feature of the "%{crate}" crate. %files -n %{name}+clang_3_6-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_3_7-devel Summary: %{summary} @@ -142,7 +143,7 @@ This package contains library source intended for building other packages which use the "clang_3_7" feature of the "%{crate}" crate. %files -n %{name}+clang_3_7-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_3_8-devel Summary: %{summary} @@ -155,7 +156,7 @@ This package contains library source intended for building other packages which use the "clang_3_8" feature of the "%{crate}" crate. %files -n %{name}+clang_3_8-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_3_9-devel Summary: %{summary} @@ -168,7 +169,7 @@ This package contains library source intended for building other packages which use the "clang_3_9" feature of the "%{crate}" crate. %files -n %{name}+clang_3_9-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_4_0-devel Summary: %{summary} @@ -181,7 +182,7 @@ This package contains library source intended for building other packages which use the "clang_4_0" feature of the "%{crate}" crate. %files -n %{name}+clang_4_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_5_0-devel Summary: %{summary} @@ -194,7 +195,7 @@ This package contains library source intended for building other packages which use the "clang_5_0" feature of the "%{crate}" crate. %files -n %{name}+clang_5_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_6_0-devel Summary: %{summary} @@ -207,7 +208,7 @@ This package contains library source intended for building other packages which use the "clang_6_0" feature of the "%{crate}" crate. %files -n %{name}+clang_6_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_7_0-devel Summary: %{summary} @@ -220,7 +221,7 @@ This package contains library source intended for building other packages which use the "clang_7_0" feature of the "%{crate}" crate. %files -n %{name}+clang_7_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_8_0-devel Summary: %{summary} @@ -233,7 +234,7 @@ This package contains library source intended for building other packages which use the "clang_8_0" feature of the "%{crate}" crate. %files -n %{name}+clang_8_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+clang_9_0-devel Summary: %{summary} @@ -246,7 +247,7 @@ This package contains library source intended for building other packages which use the "clang_9_0" feature of the "%{crate}" crate. %files -n %{name}+clang_9_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libloading-devel Summary: %{summary} @@ -258,7 +259,7 @@ This package contains library source intended for building other packages which use the "libloading" feature of the "%{crate}" crate. %files -n %{name}+libloading-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+runtime-devel Summary: %{summary} @@ -270,7 +271,7 @@ This package contains library source intended for building other packages which use the "runtime" feature of the "%{crate}" crate. %files -n %{name}+runtime-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+static-devel Summary: %{summary} @@ -282,7 +283,7 @@ This package contains library source intended for building other packages which use the "static" feature of the "%{crate}" crate. %files -n %{name}+static-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index cf72257..f50d4fc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clang-sys-1.3.1.crate) = aeea37957f7e9a7ecc862f56c6492b68b57217d1a893d3978f5d48d5ef9f80cefa8c52604d7201b9c96402d87ca43ba694890b0bc849d4d623f74ea009ce45bb +SHA512 (clang-sys-1.3.2.crate) = 500cee4af6510741e5fe7b72d6e25a513072aff26a90ce9766a70cb5e266e7c76bb4178f15ad517a0dea0d1e2f61b8b5953a2639e8cb87525bf2bb62b64847f4