From 36f0b3384b3b37d9a25d87b296fe29f6b0bf82fa Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 2 May 2019 16:37:43 -0700 Subject: [PATCH] Update to 0.8.4 --- .gitignore | 1 + cbindgen-test-release.patch | 18 ------------------ rust-cbindgen.spec | 13 +++++-------- sources | 2 +- 4 files changed, 7 insertions(+), 27 deletions(-) delete mode 100644 cbindgen-test-release.patch diff --git a/.gitignore b/.gitignore index e93f42a..85233c7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /cbindgen-0.8.0.crate /cbindgen-0.8.2.crate /cbindgen-0.8.3.crate +/cbindgen-0.8.4.crate diff --git a/cbindgen-test-release.patch b/cbindgen-test-release.patch deleted file mode 100644 index 11d41cd..0000000 --- a/cbindgen-test-release.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- cbindgen-0.6.6/test.py.orig 2018-05-31 09:03:09.000000000 -0700 -+++ cbindgen-0.6.6/test.py 2018-10-22 15:21:50.222301880 -0700 -@@ -8,13 +8,13 @@ import filecmp - - def build_cbindgen(): - try: -- subprocess.check_output(["cargo", "build"]) -+ subprocess.check_output(["cargo", "build", "--release"]) - return True - except subprocess.CalledProcessError: - return False - - def cbindgen(path, out, c, style, verify): -- bin = ["target/debug/cbindgen"] -+ bin = ["target/release/cbindgen"] - compile = [path, "-o", out] - flags = [] - diff --git a/rust-cbindgen.spec b/rust-cbindgen.spec index 4efdf4c..d67b29c 100644 --- a/rust-cbindgen.spec +++ b/rust-cbindgen.spec @@ -4,7 +4,7 @@ %global crate cbindgen Name: rust-%{crate} -Version: 0.8.3 +Version: 0.8.4 Release: 1%{?dist} Summary: Tool for generating C bindings to Rust code @@ -13,9 +13,6 @@ License: MPLv2.0 URL: https://crates.io/crates/cbindgen Source: %{crates_source} -# Run tests with the release binaries -Patch1: cbindgen-test-release.patch - ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging @@ -34,9 +31,7 @@ BuildRequires: (crate(syn/parsing) >= 0.15.0 with crate(syn/parsing) < 0.16.0) BuildRequires: (crate(syn/printing) >= 0.15.0 with crate(syn/printing) < 0.16.0) BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0) BuildRequires: (crate(toml/default) >= 0.4.0 with crate(toml/default) < 0.5.0) -BuildRequires: /usr/bin/pathfix.py %if %{with check} -BuildRequires: python3 BuildRequires: gcc-c++ %endif @@ -85,7 +80,6 @@ which use "default" feature of "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" test.py %build %cargo_build @@ -95,11 +89,14 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" test.py %if %{with check} %check +export CBINDGEN_TEST_VERIFY=1 %cargo_test -./test.py -v %endif %changelog +* Thu May 02 2019 Josh Stone - 0.8.4-1 +- Update to 0.8.4 + * Tue Apr 02 2019 Josh Stone - 0.8.3-1 - Update to 0.8.3 diff --git a/sources b/sources index cad16cf..9317e4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cbindgen-0.8.3.crate) = 3c922540474a8e69264ec8c9549745c221100bba40e131ce6e2527d197ce5b5c7f568898cba624436f9a045c061626fd0bafaae74e28d45672d44f5dfa2bd20d +SHA512 (cbindgen-0.8.4.crate) = a81207e9a795daa4c0d67c7ae7691efd2f839d3616209ff000fbad35aa0df2d7d60ef7237c8f6cbcd86c30fabb3597d9dd85e7b8c08e4dcf40869749172759d9