Update to 0.8.4

epel9
Josh Stone 6 years ago
parent 05ad1834cf
commit 36f0b3384b

1
.gitignore vendored

@ -13,3 +13,4 @@
/cbindgen-0.8.0.crate
/cbindgen-0.8.2.crate
/cbindgen-0.8.3.crate
/cbindgen-0.8.4.crate

@ -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 = []

@ -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 <jistone@redhat.com> - 0.8.4-1
- Update to 0.8.4
* Tue Apr 02 2019 Josh Stone <jistone@redhat.com> - 0.8.3-1
- Update to 0.8.3

@ -1 +1 @@
SHA512 (cbindgen-0.8.3.crate) = 3c922540474a8e69264ec8c9549745c221100bba40e131ce6e2527d197ce5b5c7f568898cba624436f9a045c061626fd0bafaae74e28d45672d44f5dfa2bd20d
SHA512 (cbindgen-0.8.4.crate) = a81207e9a795daa4c0d67c7ae7691efd2f839d3616209ff000fbad35aa0df2d7d60ef7237c8f6cbcd86c30fabb3597d9dd85e7b8c08e4dcf40869749172759d9

Loading…
Cancel
Save