|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
# Generated by rust2rpm-9-1.fc31
|
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
%global crate cbindgen
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.8.7
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.9.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Tool for generating C bindings to Rust code
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MPL-2.0
|
|
|
|
@ -14,32 +14,21 @@ URL: https://crates.io/crates/cbindgen
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(clap/default) >= 2.0.0 with crate(clap/default) < 3.0.0)
|
|
|
|
|
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0)
|
|
|
|
|
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(syn/clone-impls) >= 0.15.0 with crate(syn/clone-impls) < 0.16.0)
|
|
|
|
|
BuildRequires: (crate(syn/extra-traits) >= 0.15.0 with crate(syn/extra-traits) < 0.16.0)
|
|
|
|
|
BuildRequires: (crate(syn/full) >= 0.15.0 with crate(syn/full) < 0.16.0)
|
|
|
|
|
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)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
A tool for generating C bindings to Rust code.
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
A tool for generating C bindings to Rust code.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%if ! %{__cargo_skip_build}
|
|
|
|
|
%package -n %{crate}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
@ -47,8 +36,9 @@ Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%doc docs.md README.md
|
|
|
|
|
%{_bindir}/cbindgen
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -61,7 +51,7 @@ which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ARCHITECTURE.md CONTRIBUTING.md README.md
|
|
|
|
|
%doc contributing.md docs.md internals.md README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
@ -76,10 +66,25 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+clap-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+clap-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "clap" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+clap-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
@ -88,11 +93,13 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
export CBINDGEN_TEST_VERIFY=1
|
|
|
|
|
%cargo_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 15 2019 Josh Stone <jistone@redhat.com> - 0.9.1-1
|
|
|
|
|
- Update to 0.9.1
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|