diff --git a/.gitignore b/.gitignore index cf3437b..0d6db12 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /clang-sys-1.1.1.crate /clang-sys-1.2.0.crate /clang-sys-1.2.2.crate +/clang-sys-1.3.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index 9d99a16..71b6e79 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -29,3 +29,7 @@ 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 diff --git a/clang-sys-fix-metadata.diff b/clang-sys-fix-metadata.diff index da77167..be9e3e3 100644 --- a/clang-sys-fix-metadata.diff +++ b/clang-sys-fix-metadata.diff @@ -1,6 +1,6 @@ ---- clang-sys-1.2.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ clang-sys-1.2.2/Cargo.toml 2021-09-04T16:25:51.585678+00:00 -@@ -21,6 +21,7 @@ +--- clang-sys-1.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ clang-sys-1.3.0/Cargo.toml 2021-11-09T19:49:53.803269+00:00 +@@ -20,6 +20,7 @@ readme = "README.md" license = "Apache-2.0" repository = "https://github.com/KyleMayes/clang-sys" diff --git a/rust-clang-sys.spec b/rust-clang-sys.spec index ef6b408..39c8bf4 100644 --- a/rust-clang-sys.spec +++ b/rust-clang-sys.spec @@ -5,7 +5,7 @@ %global crate clang-sys Name: rust-%{crate} -Version: 1.2.2 +Version: 1.3.0 Release: %autorelease Summary: Rust bindings for libclang @@ -14,7 +14,7 @@ License: ASL 2.0 URL: https://crates.io/crates/clang-sys Source: %{crates_source} # Initial patched metadata -# * Exclude unneeded files +# * exclude unnecessary files Patch0: clang-sys-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -82,6 +82,32 @@ which use "clang_11_0" feature of "%{crate}" crate. %files -n %{name}+clang_11_0-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+clang_12_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 12.0 + +%description -n %{name}+clang_12_0-devel %{_description} + +This package contains library source intended for building other packages +which use "clang_12_0" feature of "%{crate}" crate. + +%files -n %{name}+clang_12_0-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+clang_13_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 13.0 + +%description -n %{name}+clang_13_0-devel %{_description} + +This package contains library source intended for building other packages +which use "clang_13_0" feature of "%{crate}" crate. + +%files -n %{name}+clang_13_0-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+clang_3_5-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 2e2d941..ee55a7e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clang-sys-1.2.2.crate) = 7f1736bce5dbc644a4901a73926ea2f6a92a419a7399b6cb49bf8ffed6a3177e9327add6e68fdf6b9966f4b0b580b213555d6cefbe194ad7a4bee987adf555e5 +SHA512 (clang-sys-1.3.0.crate) = 80c78c53a877cd8208730885214c135dd65a208cfd047dba7595283bbeec266f4d39cd1e0b3c2c69a474569ba68e4db93636e31a77c350d7bb2337e06ee7cb74