# Generated by rust2rpm 18 %bcond_without check %global crate bindgen Name: rust-%{crate} Version: 0.59.1 Release: %autorelease Summary: Automatically generates Rust FFI bindings to C and C++ libraries # Upstream license specification: BSD-3-Clause License: BSD URL: https://crates.io/crates/bindgen Source: %{crates_source} # Initial patched metadata # * No "runtime" feature by default. We can afford linking directly to libclang # and rebuild it for each SONAME change. This just makes it better integrated # in distribution context. # * Bump which from 3.0 to 4.0 Patch0: bindgen-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Automatically generates Rust FFI bindings to C and C++ libraries.} %description %{_description} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md csmith-fuzzing/README.md %{_bindir}/bindgen %endif %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %doc README.md csmith-fuzzing/README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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_no_tilde}/Cargo.toml %package -n %{name}+env_logger-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+env_logger-devel %{_description} This package contains library source intended for building other packages which use "env_logger" feature of "%{crate}" crate. %files -n %{name}+env_logger-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use "log" feature of "%{crate}" crate. %files -n %{name}+log-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use "logging" feature of "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+runtime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+runtime-devel %{_description} This package contains library source intended for building other packages which use "runtime" feature of "%{crate}" crate. %files -n %{name}+runtime-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+static-devel %{_description} This package contains library source intended for building other packages which use "static" feature of "%{crate}" crate. %files -n %{name}+static-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+testing_only_docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing_only_docs-devel %{_description} This package contains library source intended for building other packages which use "testing_only_docs" feature of "%{crate}" crate. %files -n %{name}+testing_only_docs-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+testing_only_extra_assertions-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing_only_extra_assertions-devel %{_description} This package contains library source intended for building other packages which use "testing_only_extra_assertions" feature of "%{crate}" crate. %files -n %{name}+testing_only_extra_assertions-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+testing_only_libclang_3_9-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing_only_libclang_3_9-devel %{_description} This package contains library source intended for building other packages which use "testing_only_libclang_3_9" feature of "%{crate}" crate. %files -n %{name}+testing_only_libclang_3_9-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+testing_only_libclang_4-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing_only_libclang_4-devel %{_description} This package contains library source intended for building other packages which use "testing_only_libclang_4" feature of "%{crate}" crate. %files -n %{name}+testing_only_libclang_4-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+testing_only_libclang_5-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing_only_libclang_5-devel %{_description} This package contains library source intended for building other packages which use "testing_only_libclang_5" feature of "%{crate}" crate. %files -n %{name}+testing_only_libclang_5-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+testing_only_libclang_9-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing_only_libclang_9-devel %{_description} This package contains library source intended for building other packages which use "testing_only_libclang_9" feature of "%{crate}" crate. %files -n %{name}+testing_only_libclang_9-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+which-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+which-devel %{_description} This package contains library source intended for building other packages which use "which" feature of "%{crate}" crate. %files -n %{name}+which-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+which-rustfmt-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+which-rustfmt-devel %{_description} This package contains library source intended for building other packages which use "which-rustfmt" feature of "%{crate}" crate. %files -n %{name}+which-rustfmt-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # skip a test that requires files not shipped with the published crate %cargo_test -- -- --skip test::commandline_multiple_headers %endif %changelog %autochangelog