From 80ca916026748fe99443192e25536ab1075d79b6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 29 Nov 2020 17:51:00 +0100 Subject: [PATCH] update to version 1.0.3 --- .gitignore | 1 + .rust2rpm.conf | 22 +++-- clang-sys-fix-metadata.diff | 17 +--- rust-clang-sys.spec | 166 +++++++----------------------------- sources | 2 +- 5 files changed, 50 insertions(+), 158 deletions(-) diff --git a/.gitignore b/.gitignore index 4eac36c..a53ad06 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /clang-sys-0.29.1.crate /clang-sys-0.29.2.crate /clang-sys-0.29.3.crate +/clang-sys-1.0.3.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index f9bad4c..d3a102a 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -5,21 +5,25 @@ lib+default.requires = clang-devel >= 3.5 lib+clang_3_5.requires = clang-devel >= 3.5 -lib+gte_clang_3_6.requires = +lib+clang_3_6.requires = clang-devel >= 3.6 -lib+gte_clang_3_7.requires = +lib+clang_3_7.requires = clang-devel >= 3.7 -lib+gte_clang_3_8.requires = +lib+clang_3_8.requires = clang-devel >= 3.8 -lib+gte_clang_3_9.requires = +lib+clang_3_9.requires = clang-devel >= 3.9 -lib+gte_clang_4_0.requires = +lib+clang_4_0.requires = clang-devel >= 4.0 -lib+gte_clang_5_0.requires = +lib+clang_5_0.requires = clang-devel >= 5.0 -lib+gte_clang_6_0.requires = +lib+clang_6_0.requires = clang-devel >= 6.0 -lib+gte_clang_7_0.requires = +lib+clang_7_0.requires = clang-devel >= 7.0 -lib+gte_clang_8_0.requires = +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 diff --git a/clang-sys-fix-metadata.diff b/clang-sys-fix-metadata.diff index ab891bd..2d8191f 100644 --- a/clang-sys-fix-metadata.diff +++ b/clang-sys-fix-metadata.diff @@ -1,19 +1,10 @@ ---- clang-sys-0.29.3/Cargo.toml 2020-03-31T17:22:34+00:00 -+++ clang-sys-0.29.3/Cargo.toml 2020-05-29T23:55:12.149631+00:00 +--- clang-sys-1.0.3/Cargo.toml 2020-11-19T10:46:33+00:00 ++++ clang-sys-1.0.3/Cargo.toml 2020-11-27T22:43:53.920534+00:00 @@ -21,6 +21,7 @@ readme = "README.md" license = "Apache-2.0" repository = "https://github.com/KyleMayes/clang-sys" -+exclude = ["/appveyor.yml", "/ci/*", "/clippy.toml"] ++exclude = ["/.github/", "/clippy.toml"] [package.metadata.docs.rs] - features = ["clang_9_0", "runtime"] + features = ["clang_10_0", "runtime"] [dependencies.glob] -@@ -31,7 +32,7 @@ - default-features = false - - [dependencies.libloading] --version = "0.5" -+version = "0.6" - optional = true - [build-dependencies.glob] - version = "0.3" diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index ce8ccde..25c43f9 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 13 -%bcond_with check +# Generated by rust2rpm 16 +%bcond_without check %global debug_package %{nil} %global crate clang-sys Name: rust-%{crate} -Version: 0.29.3 -Release: 3%{?dist} +Version: 1.0.3 +Release: 1%{?dist} Summary: Rust bindings for libclang # Upstream license specification: Apache-2.0 @@ -15,7 +15,6 @@ URL: https://crates.io/crates/clang-sys Source: %{crates_source} # Initial patched metadata # * Exclude unneeded files -# * Bump to libloading 0.6 Patch0: clang-sys-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -24,6 +23,7 @@ BuildArch: noarch %endif BuildRequires: rust-packaging +BuildRequires: clang-devel >= 3.5 %global _description %{expand: Rust bindings for libclang.} @@ -57,6 +57,19 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+clang_10_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 10.0 + +%description -n %{name}+clang_10_0-devel %{_description} + +This package contains library source intended for building other packages +which use "clang_10_0" feature of "%{crate}" crate. + +%files -n %{name}+clang_10_0-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+clang_3_5-devel Summary: %{summary} BuildArch: noarch @@ -73,6 +86,7 @@ which use "clang_3_5" feature of "%{crate}" crate. %package -n %{name}+clang_3_6-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 3.6 %description -n %{name}+clang_3_6-devel %{_description} @@ -85,6 +99,7 @@ which use "clang_3_6" feature of "%{crate}" crate. %package -n %{name}+clang_3_7-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 3.7 %description -n %{name}+clang_3_7-devel %{_description} @@ -97,6 +112,7 @@ which use "clang_3_7" feature of "%{crate}" crate. %package -n %{name}+clang_3_8-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 3.8 %description -n %{name}+clang_3_8-devel %{_description} @@ -109,6 +125,7 @@ which use "clang_3_8" feature of "%{crate}" crate. %package -n %{name}+clang_3_9-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 3.9 %description -n %{name}+clang_3_9-devel %{_description} @@ -121,6 +138,7 @@ which use "clang_3_9" feature of "%{crate}" crate. %package -n %{name}+clang_4_0-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 4.0 %description -n %{name}+clang_4_0-devel %{_description} @@ -133,6 +151,7 @@ which use "clang_4_0" feature of "%{crate}" crate. %package -n %{name}+clang_5_0-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 5.0 %description -n %{name}+clang_5_0-devel %{_description} @@ -145,6 +164,7 @@ which use "clang_5_0" feature of "%{crate}" crate. %package -n %{name}+clang_6_0-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 6.0 %description -n %{name}+clang_6_0-devel %{_description} @@ -157,6 +177,7 @@ which use "clang_6_0" feature of "%{crate}" crate. %package -n %{name}+clang_7_0-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 7.0 %description -n %{name}+clang_7_0-devel %{_description} @@ -169,6 +190,7 @@ which use "clang_7_0" feature of "%{crate}" crate. %package -n %{name}+clang_8_0-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 8.0 %description -n %{name}+clang_8_0-devel %{_description} @@ -181,6 +203,7 @@ which use "clang_8_0" feature of "%{crate}" crate. %package -n %{name}+clang_9_0-devel Summary: %{summary} BuildArch: noarch +Requires: clang-devel >= 9.0 %description -n %{name}+clang_9_0-devel %{_description} @@ -190,135 +213,6 @@ which use "clang_9_0" feature of "%{crate}" crate. %files -n %{name}+clang_9_0-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+gte_clang_3_6-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 3.6 - -%description -n %{name}+gte_clang_3_6-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_3_6" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_3_6-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_3_7-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 3.7 - -%description -n %{name}+gte_clang_3_7-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_3_7" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_3_7-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_3_8-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 3.8 - -%description -n %{name}+gte_clang_3_8-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_3_8" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_3_8-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_3_9-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 3.9 - -%description -n %{name}+gte_clang_3_9-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_3_9" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_3_9-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_4_0-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 4.0 - -%description -n %{name}+gte_clang_4_0-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_4_0" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_4_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_5_0-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 5.0 - -%description -n %{name}+gte_clang_5_0-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_5_0" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_5_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_6_0-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 6.0 - -%description -n %{name}+gte_clang_6_0-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_6_0" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_6_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_7_0-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 7.0 - -%description -n %{name}+gte_clang_7_0-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_7_0" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_7_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_8_0-devel -Summary: %{summary} -BuildArch: noarch -Requires: clang-devel >= 8.0 - -%description -n %{name}+gte_clang_8_0-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_8_0" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_8_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+gte_clang_9_0-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+gte_clang_9_0-devel %{_description} - -This package contains library source intended for building other packages -which use "gte_clang_9_0" feature of "%{crate}" crate. - -%files -n %{name}+gte_clang_9_0-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+libloading-devel Summary: %{summary} BuildArch: noarch @@ -361,7 +255,6 @@ which use "static" feature of "%{crate}" crate. %generate_buildrequires %cargo_generate_buildrequires -echo 'clang-devel >= 3.5' %build %cargo_build @@ -375,6 +268,9 @@ echo 'clang-devel >= 3.5' %endif %changelog +* Fri Nov 27 2020 Fabio Valentini - 1.0.3-1 +- Update to version 1.0.3. + * Wed Jul 29 2020 Fedora Release Engineering - 0.29.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 457ccfc..33a919b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clang-sys-0.29.3.crate) = a34ae3e1963e64e3d5e28e2d665aca7caea1c0b604ffa184eaec8824d2fd8f8b4f48a6bf4721be8355411163a521e273218217deaac7adf1e4f8542244277bec +SHA512 (clang-sys-1.0.3.crate) = e31bf0ae28f1e8c516fe2558b1ea8a46b925ddcbf4963d1e598c668331b65b139927bff58dc3ff3a80f9e258f69af2893d24ec3977cbb9f5e440a344eaf150c8