# Generated by rust2rpm 9 %bcond_without check %global debug_package %{nil} %global crate v_escape_derive Name: rust-%{crate} Version: 0.5.3 Release: 1%{?dist} Summary: Procedural macro package for v_escape # Upstream license specification: MIT/Apache-2.0 # https://gitlab.com/r-iendo/v_escape/issues/3 License: MIT or ASL 2.0 URL: https://crates.io/crates/v_escape_derive Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(nom/default) >= 4.2.0 with crate(nom/default) < 5.0.0) BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0) BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0) BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0) %global _description %{expand: Procedural macro package for v_escape.} %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 %{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 * Thu May 30 18:17:29 CEST 2019 Igor Gnatenko - 0.5.3-1 - Initial package