diff --git a/.gitignore b/.gitignore index 4adc29b..bad9483 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /bindgen-cli-0.62.0.crate +/bindgen-cli-0.63.0.crate diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 62f55f4..0000000 --- a/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2013, Jyun-Yan You -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/bindgen-cli-fix-metadata.diff b/bindgen-cli-fix-metadata.diff index cfb1d4b..39001b4 100644 --- a/bindgen-cli-fix-metadata.diff +++ b/bindgen-cli-fix-metadata.diff @@ -1,5 +1,5 @@ ---- bindgen-cli-0.62.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ bindgen-cli-0.62.0/Cargo.toml 2022-11-17T13:46:15.720565+00:00 +--- bindgen-cli-0.63.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bindgen-cli-0.63.0/Cargo.toml 2022-11-25T14:27:14.125964+00:00 @@ -55,7 +55,6 @@ [features] default = [ diff --git a/rust-bindgen-cli.spec b/rust-bindgen-cli.spec index 4bf7f1e..caa267b 100644 --- a/rust-bindgen-cli.spec +++ b/rust-bindgen-cli.spec @@ -4,15 +4,13 @@ %global crate bindgen-cli Name: rust-bindgen-cli -Version: 0.62.0 +Version: 0.63.0 Release: %autorelease Summary: Automatically generates Rust FFI bindings to C and C++ libraries License: BSD-3-Clause URL: https://crates.io/crates/bindgen-cli -Source0: %{crates_source} -# https://github.com/rust-lang/rust-bindgen/pull/2352 -Source1: https://github.com/rust-lang/rust-bindgen/raw/v0.62.0/LICENSE +Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * default to linking with libclang instead of using dlopen Patch: bindgen-cli-fix-metadata.diff @@ -26,6 +24,9 @@ Automatically generates Rust FFI bindings to C and C++ libraries.} %package -n %{crate} Summary: %{summary} +# /usr/bin/bindgen was moved from bindgen to bindgen-cli with v0.61 +Provides: bindgen = %{version}-%{release} +Obsoletes: bindgen < 0.61 # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR MIT @@ -47,7 +48,6 @@ License: BSD-3-Clause AND Apache-2.0 AND ISC and MIT AND Unicode-DFS-2016 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 -cp -pav %{SOURCE1} . %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 9c0ea43..65d5220 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bindgen-cli-0.62.0.crate) = c0e5404f6d46ad80ec18f2ee36fa9d70af859bf82e26dae1dddbe324d40feb826c4abc05b6a0b3a66878280115e316e54bed82af153c06e3c53b32842ce74523 +SHA512 (bindgen-cli-0.63.0.crate) = 5144e4b73c039a2c90a9568d43138c590e6691c98bf76d8e37e2adb47e9926c30592dd9944664b3d7c014f154a5c942d9331c7ef784266a36016877cf0ecf4e9