# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate is_executable Name: rust-%{crate} Version: 1.0.1 Release: %autorelease Summary: Is there an executable file at the given path? # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/is_executable Source: %{crates_source} # Initial patched metadata # * Drop Windows dependencies # * Exclude unnecessary files # https://github.com/fitzgen/is_executable/pull/11 Patch0: is_executable-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: This package provides a small Rust helper function which determines whether or not the given path points to an executable file.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT %doc 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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-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 # Disable useless test %cargo_test -- -- --skip readme_up_to_date %endif %changelog %autochangelog