# Generated by rust2rpm 26 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} %global crate terminal-trx Name: rust-terminal-trx Version: 0.2.0 Release: %autorelease Summary: Handle to the terminal of the current process License: MIT OR Apache-2.0 URL: https://crates.io/crates/terminal-trx Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: terminal-trx-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Provides a handle to the terminal of the current process.} %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 %{crate_instdir}/license-apache.txt %license %{crate_instdir}/license-mit.txt %doc %{crate_instdir}/changelog.md %doc %{crate_instdir}/readme.md %{crate_instdir}/ %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 %{crate_instdir}/Cargo.toml %package -n %{name}+__test_unsupported-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+__test_unsupported-devel %{_description} This package contains library source intended for building other packages which use the "__test_unsupported" feature of the "%{crate}" crate. %files -n %{name}+__test_unsupported-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog