diff --git a/.gitignore b/.gitignore index d720c00..0e6c176 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ /cxx-1.0.78.crate /cxx-1.0.83.crate /cxx-1.0.85.crate +/cxx-1.0.88.crate diff --git a/cxx-fix-metadata.diff b/cxx-fix-metadata.diff new file mode 100644 index 0000000..851165b --- /dev/null +++ b/cxx-fix-metadata.diff @@ -0,0 +1,19 @@ +--- cxx-1.0.88/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ cxx-1.0.88/Cargo.toml 2023-01-27T15:16:23.341203+00:00 +@@ -17,10 +17,16 @@ + authors = ["David Tolnay "] + links = "cxxbridge1" + exclude = [ ++ "/book", + "/demo", + "/gen", + "/syntax", + "/third-party", ++ "/tools/bazel", ++ "/tools/buck", ++ "/BUCK", ++ "/BUILD", ++ "/WORKSPACE", + ] + description = "Safe interop between Rust and C++" + homepage = "https://cxx.rs" diff --git a/rust-cxx.spec b/rust-cxx.spec index 0d2ac37..aa9f564 100644 --- a/rust-cxx.spec +++ b/rust-cxx.spec @@ -6,13 +6,17 @@ %global crate cxx Name: rust-cxx -Version: 1.0.85 +Version: 1.0.88 Release: %autorelease Summary: Safe interop between Rust and C++ License: MIT OR Apache-2.0 URL: https://crates.io/crates/cxx Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * exclude files that are only needed for integration in bazel or buck +# * exclude unused docs sources +Patch: cxx-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -111,8 +115,6 @@ use the "std" feature of the "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep -# Remove executable bit from CI tools -find book/ tools/ -type f -executable -exec chmod a-x '{}' + %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index ec4a855..dd49aed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cxx-1.0.85.crate) = bf9386f58ea007bcc7171af713e944459a6b219ddbe88813f16df5e274ab85418be23dd7bdaee7964108e9a4a1698365de67362d5504c80bee726f1151166f5c +SHA512 (cxx-1.0.88.crate) = ace3368c9a97b0c74dffd90890c2060e8657476b87d138fbf1a65c5bc0682c1cc627597e564906eb40e80c7503c8ef970438b8bca045ec9c14baaec9970a1e1b