# Generated by rust2rpm 9 %bcond_with check %global debug_package %{nil} %global crate actix-web-codegen Name: rust-%{crate} Version: 0.1.0 Release: 1%{?dist} Summary: Actix web proc macros # Upstream license specification: MIT/Apache-2.0 # https://github.com/actix/actix-web/issues/877 License: MIT or ASL 2.0 URL: https://crates.io/crates/actix-web-codegen Source: %{crates_source} # Initial patched metadata # * Add extra-traits feature to syn, https://github.com/actix/actix-web/pull/879 Patch0: actix-web-codegen-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging 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) BuildRequires: (crate(syn/extra-traits) >= 0.15.0 with crate(syn/extra-traits) < 0.16.0) BuildRequires: (crate(syn/full) >= 0.15.0 with crate(syn/full) < 0.16.0) BuildRequires: (crate(syn/parsing) >= 0.15.0 with crate(syn/parsing) < 0.16.0) %if %{with check} BuildRequires: (crate(actix-http-test/default) >= 0.2.0 with crate(actix-http-test/default) < 0.3.0) BuildRequires: (crate(actix-http-test/ssl) >= 0.2.0 with crate(actix-http-test/ssl) < 0.3.0) BuildRequires: (crate(actix-http/default) >= 0.2.0 with crate(actix-http/default) < 0.3.0) BuildRequires: (crate(actix-http/ssl) >= 0.2.0 with crate(actix-http/ssl) < 0.3.0) BuildRequires: (crate(actix-web/default) >= 1.0.0~beta.5 with crate(actix-web/default) < 2.0.0) BuildRequires: (crate(futures/default) >= 0.1.0 with crate(futures/default) < 0.2.0) %endif %global _description %{expand: Actix web proc macros.} %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 CHANGES.md %{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 * Fri May 31 18:12:29 CEST 2019 Igor Gnatenko - 0.1.0-1 - Initial package