|
|
@ -1,10 +1,10 @@
|
|
|
|
# Generated by rust2rpm 16
|
|
|
|
# Generated by rust2rpm 18
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global crate cbindgen
|
|
|
|
%global crate cbindgen
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.17.0
|
|
|
|
Version: 0.20.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Tool for generating C bindings to Rust code
|
|
|
|
Summary: Tool for generating C bindings to Rust code
|
|
|
|
|
|
|
|
|
|
|
@ -19,9 +19,6 @@ BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: /usr/bin/cython
|
|
|
|
|
|
|
|
BuildRequires: /usr/bin/g++
|
|
|
|
|
|
|
|
BuildRequires: /usr/bin/gcc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Tool for generating C bindings to Rust code.}
|
|
|
|
Tool for generating C bindings to Rust code.}
|
|
|
@ -31,18 +28,18 @@ Tool for generating C bindings to Rust code.}
|
|
|
|
%if ! %{__cargo_skip_build}
|
|
|
|
%if ! %{__cargo_skip_build}
|
|
|
|
%package -n %{crate}
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
# * ASL 2.0 or Boost
|
|
|
|
# ASL 2.0 or Boost
|
|
|
|
# * ASL 2.0 or MIT
|
|
|
|
# ASL 2.0 or MIT
|
|
|
|
# * MIT
|
|
|
|
# MIT
|
|
|
|
# * MIT or ASL 2.0
|
|
|
|
# MIT or ASL 2.0
|
|
|
|
# * MPLv2.0
|
|
|
|
# MPLv2.0
|
|
|
|
License: MPLv2.0 and MIT and (ASL 2.0 or Boost)
|
|
|
|
License: MPLv2.0 and MIT and (ASL 2.0 or Boost)
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc contributing.md docs.md internals.md CHANGES README.md
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/cbindgen
|
|
|
|
%{_bindir}/cbindgen
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -57,7 +54,7 @@ which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc contributing.md docs.md internals.md CHANGES README.md
|
|
|
|
%doc README.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
@ -90,6 +87,11 @@ which use "clap" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
echo '/usr/bin/cython'
|
|
|
|
|
|
|
|
echo '/usr/bin/g++'
|
|
|
|
|
|
|
|
echo '/usr/bin/gcc'
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|