# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate pest_derive Name: rust-%{crate} Version: 1.0.1 Release: 1%{?dist} Summary: Pest's derive macro # https://github.com/pest-parser/pest/pull/183 License: MIT or ASL 2.0 URL: https://crates.io/crates/pest_derive Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Bump syn to 0.11, https://github.com/pest-parser/pest/pull/181 Patch0: pest_derive-1.0.1-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(pest) >= 1.0.0 with crate(pest) < 2.0.0) BuildRequires: (crate(quote) >= 0.3.0 with crate(quote) < 0.4.0) BuildRequires: (crate(syn) >= 0.11.0 with crate(syn) < 0.12.0) %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Pest's derive macro. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %doc _README.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Sun Jan 21 2018 Igor Gnatenko - 1.0.1-1 - Initial package