# Generated by rust2rpm 9 %bcond_without check %global debug_package %{nil} %global crate roff Name: rust-%{crate} Version: 0.1.0 Release: 1%{?dist} Summary: ROFF (man page format) generation library # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/roff Source: %{crates_source} # Initial patched metadata # - Bump duct to 0.12.0 # - Bump pretty_assertions to 0.6.1 Patch0: roff-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %if ! %{__cargo_skip_build} %if %{with check} BuildRequires: (crate(duct/default) >= 0.12.0 with crate(duct/default) < 0.13.0) BuildRequires: (crate(pretty_assertions/default) >= 0.6.1 with crate(pretty_assertions/default) < 0.7.0) BuildRequires: groff-base %endif %endif %global _description %{expand: ROFF (man page format) generation library.} %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 %license LICENSE-APACHE LICENSE-MIT %{cargo_registry}/%{crate}-%{version}/ %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}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Jun 19 01:36:22 CEST 2019 Robert-André Mauchin - 0.1.0-1 - Initial package