# Generated by rust2rpm 16 %bcond_without check %global debug_package %{nil} %global crate cursive_core Name: rust-%{crate} Version: 0.2.2 Release: 1%{?dist} Summary: Core components for the Cursive TUI # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/cursive_core Source: %{crates_source} # Fix version pins Patch0: cursive_core-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Core components for the Cursive TUI.} %description %{_description} %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 %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+markdown-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+markdown-devel %{_description} This package contains library source intended for building other packages which use "markdown" feature of "%{crate}" crate. %files -n %{name}+markdown-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+pulldown-cmark-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pulldown-cmark-devel %{_description} This package contains library source intended for building other packages which use "pulldown-cmark" feature of "%{crate}" crate. %files -n %{name}+pulldown-cmark-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+toml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+toml-devel %{_description} This package contains library source intended for building other packages which use "toml" feature of "%{crate}" crate. %files -n %{name}+toml-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+unstable_scroll-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable_scroll-devel %{_description} This package contains library source intended for building other packages which use "unstable_scroll" feature of "%{crate}" crate. %files -n %{name}+unstable_scroll-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 %cargo_test %endif %changelog * Tue May 11 15:30:07 PDT 2021 Davide Cavalca - 0.2.2-1 - Initial package