From 0fd39b8fda06fd19de7b7b754536ae73e1b412ef Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 26 Aug 2021 21:45:06 +0200 Subject: [PATCH] Update to version 0.20.0; Fixes RHBZ#1909565 --- .gitignore | 1 + .rust2rpm.conf | 1 + rust-cbindgen.spec | 26 ++++++++++++++------------ sources | 2 +- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 264b431..ce7a36d 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ /cbindgen-0.14.6.crate /cbindgen-0.15.0.crate /cbindgen-0.17.0.crate +/cbindgen-0.20.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index 5ee594d..1b5740d 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,4 +1,5 @@ [DEFAULT] buildrequires = + /usr/bin/cython /usr/bin/gcc /usr/bin/g++ diff --git a/rust-cbindgen.spec b/rust-cbindgen.spec index 6d057d8..ec8232c 100644 --- a/rust-cbindgen.spec +++ b/rust-cbindgen.spec @@ -1,10 +1,10 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 18 %bcond_without check %global crate cbindgen Name: rust-%{crate} -Version: 0.17.0 +Version: 0.20.0 Release: %autorelease Summary: Tool for generating C bindings to Rust code @@ -19,9 +19,6 @@ BuildArch: noarch %endif BuildRequires: rust-packaging -BuildRequires: /usr/bin/cython -BuildRequires: /usr/bin/g++ -BuildRequires: /usr/bin/gcc %global _description %{expand: Tool for generating C bindings to Rust code.} @@ -31,18 +28,18 @@ Tool for generating C bindings to Rust code.} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} -# * ASL 2.0 or Boost -# * ASL 2.0 or MIT -# * MIT -# * MIT or ASL 2.0 -# * MPLv2.0 +# ASL 2.0 or Boost +# ASL 2.0 or MIT +# MIT +# MIT or ASL 2.0 +# MPLv2.0 License: MPLv2.0 and MIT and (ASL 2.0 or Boost) %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE -%doc contributing.md docs.md internals.md CHANGES README.md +%doc README.md %{_bindir}/cbindgen %endif @@ -57,7 +54,7 @@ which use "%{crate}" crate. %files devel %license LICENSE -%doc contributing.md docs.md internals.md CHANGES README.md +%doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -90,6 +87,11 @@ which use "clap" feature of "%{crate}" crate. %generate_buildrequires %cargo_generate_buildrequires +%if %{with check} +echo '/usr/bin/cython' +echo '/usr/bin/g++' +echo '/usr/bin/gcc' +%endif %build %cargo_build diff --git a/sources b/sources index aeef06c..e6744cb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cbindgen-0.17.0.crate) = ea8adaa6cc1d681ef28391e1a3b001c250d9a90a9961d02d6666582d7d98c79333ba02ef3ff8df6bf375f0c371e72aed1b8bc60aade26d36ab74ce1bbe70f545 +SHA512 (cbindgen-0.20.0.crate) = 83c2b0da580f0a2fc9a74922f3c44d0e73ce0d1de8b5a3f5819c7fcf1c481df1ff0346e84c5b4c199a9364542c85fb81ece4e1deca3a6f12231a4478f76a7c02