diff --git a/clang-sys-1.4.0.crate b/clang-sys-1.4.0.crate new file mode 100644 index 0000000..ab04ebd Binary files /dev/null and b/clang-sys-1.4.0.crate differ diff --git a/clang-sys-fix-metadata.diff b/clang-sys-fix-metadata.diff index 472b513..5377742 100644 --- a/clang-sys-fix-metadata.diff +++ b/clang-sys-fix-metadata.diff @@ -1,10 +1,10 @@ ---- clang-sys-1.3.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ clang-sys-1.3.3/Cargo.toml 2022-07-16T14:22:07.714470+00:00 +--- clang-sys-1.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ clang-sys-1.4.0/Cargo.toml 2022-10-05T11:38:27.045648+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 = ["clang_13_0", "runtime"] - [dependencies.glob] + features = [ diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index e18813d..d209406 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -1,21 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate clang-sys -Name: rust-%{crate} -Version: 1.3.3 +Name: rust-clang-sys +Version: 1.4.0 Release: %autorelease Summary: Rust bindings for libclang -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/clang-sys Source: %{crates_source} -# Initial patched metadata -# * exclude unnecessary files -Patch0: clang-sys-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * exclude files that are only useful for upstream development +Patch: clang-sys-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -106,6 +105,32 @@ use the "clang_13_0" feature of the "%{crate}" crate. %files -n %{name}+clang_13_0-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+clang_14_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 14.0 + +%description -n %{name}+clang_14_0-devel %{_description} + +This package contains library source intended for building other packages which +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 similarity index 85% rename from .rust2rpm.conf rename to rust2rpm.conf index 71b6e79..8b6cc3e 100644 --- a/.rust2rpm.conf +++ b/rust2rpm.conf @@ -1,4 +1,6 @@ [DEFAULT] +unwanted-features = + clang_16_0 buildrequires = clang-devel >= 3.5 lib+default.requires = @@ -33,3 +35,7 @@ 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