Update to version 0.26.0; Fixes RHBZ#2234876

epel9 imports/e9/rust-cbindgen-0.26.0-1.el9
Fabio Valentini 1 year ago
parent 55595f80ac
commit e4e773f2b9
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -34,3 +34,4 @@
/cbindgen-0.20.0.crate /cbindgen-0.20.0.crate
/cbindgen-0.24.3.crate /cbindgen-0.24.3.crate
/cbindgen-0.24.5.crate /cbindgen-0.24.5.crate
/cbindgen-0.26.0.crate

@ -1,15 +1,10 @@
# Generated by rust2rpm 24 # Generated by rust2rpm 25
# * tests are completely broken with Cython 3.0.0 on Fedora 39+
%if 0%{?fedora} >= 39
%bcond_with check
%else
%bcond_without check %bcond_without check
%endif
%global crate cbindgen %global crate cbindgen
Name: rust-cbindgen Name: rust-cbindgen
Version: 0.24.5 Version: 0.26.0
Release: %autorelease Release: %autorelease
Summary: Tool for generating C bindings to Rust code Summary: Tool for generating C bindings to Rust code
@ -17,7 +12,7 @@ License: MPL-2.0
URL: https://crates.io/crates/cbindgen URL: https://crates.io/crates/cbindgen
Source: %{crates_source} Source: %{crates_source}
BuildRequires: rust-packaging >= 23 BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand: %global _description %{expand:
A tool for generating C bindings to Rust code.} A tool for generating C bindings to Rust code.}
@ -90,20 +85,20 @@ use the "clap" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
%generate_buildrequires %generate_buildrequires
%cargo_generate_buildrequires %cargo_generate_buildrequires
%if %{with check} %if %{with check}
echo '/usr/bin/cython' echo '/usr/bin/cython'
echo '/usr/bin/g++'
echo '/usr/bin/gcc' echo '/usr/bin/gcc'
echo '/usr/bin/g++'
%endif %endif
%build %build
%cargo_build %cargo_build
%cargo_license_summary %{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies %{cargo_license} > LICENSE.dependencies
%install %install

@ -1,5 +0,0 @@
[DEFAULT]
testrequires =
/usr/bin/cython
/usr/bin/gcc
/usr/bin/g++

@ -0,0 +1,7 @@
[requires]
test = [
"/usr/bin/cython",
"/usr/bin/gcc",
"/usr/bin/g++",
]

@ -1 +1 @@
SHA512 (cbindgen-0.24.5.crate) = 16eb2267f6f75599d8cc4adc05a1387b8b95e595427bfee852f1746402a9609520f364b0fd443ce780f44a61f5b4b3518f2b021a4ff08d1f160afcb0a3bccecb SHA512 (cbindgen-0.26.0.crate) = 2de81f46c9c68c985241a349f13125876667d1460d3658ead8c4ee9788cd139c30dbc08bebddc172cf0bd4644f3f17c02cf66f2a3ef706c52366fdaf0f9d8059

Loading…
Cancel
Save