diff --git a/.gitignore b/.gitignore index 25b49d9..2f0096f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /cbindgen-0.4.0.crate /cbindgen-0.4.2.crate /cbindgen-0.4.3.crate +/cbindgen-0.6.1.crate diff --git a/cbindgen-0.6.1-fix-metadata.diff b/cbindgen-0.6.1-fix-metadata.diff new file mode 100644 index 0000000..6a24ed5 --- /dev/null +++ b/cbindgen-0.6.1-fix-metadata.diff @@ -0,0 +1,12 @@ +--- cbindgen-0.6.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ cbindgen-0.6.1/Cargo.toml 2018-07-26T07:55:53.459738+02:00 +@@ -39,9 +39,6 @@ + version = "1.0" + features = ["derive"] + +-[dependencies.serde_derive] +-version = "=1.0.21" +- + [dependencies.serde_json] + version = "1.0" + diff --git a/rust-cbindgen.spec b/rust-cbindgen.spec index d431bd6..1eaf162 100644 --- a/rust-cbindgen.spec +++ b/rust-cbindgen.spec @@ -1,16 +1,20 @@ # Generated by rust2rpm -%bcond_without check +# Tests are run in infrastructure +%bcond_with check %global crate cbindgen Name: rust-%{crate} -Version: 0.4.3 -Release: 3%{?dist} +Version: 0.6.1 +Release: 1%{?dist} Summary: Tool for generating C bindings to Rust code License: MPLv2.0 URL: https://crates.io/crates/cbindgen Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Remove pinned serde_derive, https://github.com/eqrion/cbindgen/pull/179 +Patch0: cbindgen-0.6.1-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -20,7 +24,7 @@ BuildRequires: (crate(clap) >= 2.0.0 with crate(clap) < 3.0.0) BuildRequires: (crate(log) >= 0.3.0 with crate(log) < 0.4.0) BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive)) BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) -BuildRequires: ((crate(syn) >= 0.11.0 with crate(syn) < 0.12.0) with crate(syn/full)) +BuildRequires: ((crate(syn) >= 0.14.0 with crate(syn) < 0.15.0) with crate(syn/clone-impls) with crate(syn/derive) with crate(syn/extra-traits) with crate(syn/full) with crate(syn/parsing) with crate(syn/printing)) BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0) BuildRequires: (crate(toml) >= 0.4.0 with crate(toml) < 0.5.0) @@ -68,6 +72,9 @@ which use %{crate} from crates.io. %{cargo_registry}/%{crate}-%{version}/ %changelog +* Thu Jul 26 2018 Igor Gnatenko - 0.6.1-1 +- Update to 0.6.1 + * Sat Jul 14 2018 Fedora Release Engineering - 0.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index f74ba14..4e2f371 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cbindgen-0.4.3.crate) = ff50d3b0d295a769c81626c24297b9a87c9a9328837a590bfa532abcbce9cb920376e725eff1c876f40507bed8ccc7e458c9126c27b66742fde60c52ae4de24b +SHA512 (cbindgen-0.6.1.crate) = e4276b35eadf4cf33a97872ee0cb28e1f5b8e77fc6d52f6c8959e8fa394022588d7b3196aa462ef6d4800df0424c9f39127bfcba39b501c34015425e27ceae6c diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..3e2f1fc --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-cbindgen