# Generated by rust2rpm 9 %bcond_with check %global debug_package %{nil} %global crate actix-web Name: rust-%{crate} Version: 1.0.0~rc Release: 1%{?dist} Summary: Actix web is a simple, pragmatic and extremely fast web framework for Rust # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/actix-web Source: %{crates_source} # Initial patched metadata # * No ring/rustls Patch0: actix-web-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(actix-codec/default) >= 0.1.2 with crate(actix-codec/default) < 0.2.0) BuildRequires: (crate(actix-http/brotli) >= 0.2.0 with crate(actix-http/brotli) < 0.3.0) BuildRequires: (crate(actix-http/default) >= 0.2.0 with crate(actix-http/default) < 0.3.0) BuildRequires: (crate(actix-http/fail) >= 0.2.0 with crate(actix-http/fail) < 0.3.0) BuildRequires: (crate(actix-http/flate2-zlib) >= 0.2.0 with crate(actix-http/flate2-zlib) < 0.3.0) BuildRequires: (crate(actix-router/default) >= 0.1.5 with crate(actix-router/default) < 0.2.0) BuildRequires: (crate(actix-rt/default) >= 0.2.2 with crate(actix-rt/default) < 0.3.0) BuildRequires: (crate(actix-server-config/default) >= 0.1.1 with crate(actix-server-config/default) < 0.2.0) BuildRequires: (crate(actix-server/default) >= 0.5.1 with crate(actix-server/default) < 0.6.0) BuildRequires: (crate(actix-service/default) >= 0.4.0 with crate(actix-service/default) < 0.5.0) BuildRequires: (crate(actix-threadpool/default) >= 0.1.0 with crate(actix-threadpool/default) < 0.2.0) BuildRequires: (crate(actix-utils/default) >= 0.4.1 with crate(actix-utils/default) < 0.5.0) BuildRequires: (crate(actix-web-codegen/default) >= 0.1.0 with crate(actix-web-codegen/default) < 0.2.0) BuildRequires: (crate(awc/default) >= 0.2.0 with crate(awc/default) < 0.3.0) BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0) BuildRequires: (crate(derive_more/default) >= 0.14.0 with crate(derive_more/default) < 0.15.0) BuildRequires: (crate(encoding/default) >= 0.2.0 with crate(encoding/default) < 0.3.0) BuildRequires: (crate(futures/default) >= 0.1.25 with crate(futures/default) < 0.2.0) BuildRequires: (crate(hashbrown/default) >= 0.3.0 with crate(hashbrown/default) < 0.4.0) BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) BuildRequires: (crate(mime/default) >= 0.3.0 with crate(mime/default) < 0.4.0) BuildRequires: (crate(net2/default) >= 0.2.33 with crate(net2/default) < 0.3.0) BuildRequires: (crate(parking_lot/default) >= 0.8.0 with crate(parking_lot/default) < 0.9.0) BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0) BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0) BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) BuildRequires: (crate(serde_urlencoded/default) >= 0.5.3 with crate(serde_urlencoded/default) < 0.6.0) BuildRequires: (crate(time/default) >= 0.1.42 with crate(time/default) < 0.2.0) BuildRequires: (crate(url/default) >= 1.7.0 with crate(url/default) < 2.0.0) BuildRequires: (crate(url/query_encoding) >= 1.7.0 with crate(url/query_encoding) < 2.0.0) %if %{with check} BuildRequires: (crate(actix-files/default) >= 0.1.0~beta.4 with crate(actix-files/default) < 0.2.0) 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/brotli) >= 0.2.0 with crate(actix-http/brotli) < 0.3.0) BuildRequires: (crate(actix-http/default) >= 0.2.0 with crate(actix-http/default) < 0.3.0) BuildRequires: (crate(actix-http/flate2-zlib) >= 0.2.0 with crate(actix-http/flate2-zlib) < 0.3.0) BuildRequires: (crate(actix-http/ssl) >= 0.2.0 with crate(actix-http/ssl) < 0.3.0) BuildRequires: (crate(brotli2/default) >= 0.3.2 with crate(brotli2/default) < 0.4.0) BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default) < 0.7.0) BuildRequires: (crate(flate2/default) >= 1.0.2 with crate(flate2/default) < 2.0.0) BuildRequires: (crate(rand/default) >= 0.6.0 with crate(rand/default) < 0.7.0) BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0) BuildRequires: (crate(tokio-timer/default) >= 0.2.8 with crate(tokio-timer/default) < 0.3.0) %endif %global _description %{expand: Actix web is a simple, pragmatic and extremely fast web framework for Rust.} %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 %license LICENSE-MIT LICENSE-APACHE %doc README.md CHANGES.md MIGRATION.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 %package -n %{name}+awc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+awc-devel %{_description} This package contains library source intended for building other packages which use "awc" feature of "%{crate}" crate. %files -n %{name}+awc-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+brotli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+brotli-devel %{_description} This package contains library source intended for building other packages which use "brotli" feature of "%{crate}" crate. %files -n %{name}+brotli-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+client-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+client-devel %{_description} This package contains library source intended for building other packages which use "client" feature of "%{crate}" crate. %files -n %{name}+client-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+fail-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fail-devel %{_description} This package contains library source intended for building other packages which use "fail" feature of "%{crate}" crate. %files -n %{name}+fail-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+flate2-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+flate2-rust-devel %{_description} This package contains library source intended for building other packages which use "flate2-rust" feature of "%{crate}" crate. %files -n %{name}+flate2-rust-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+flate2-zlib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+flate2-zlib-devel %{_description} This package contains library source intended for building other packages which use "flate2-zlib" feature of "%{crate}" crate. %files -n %{name}+flate2-zlib-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openssl-devel %{_description} This package contains library source intended for building other packages which use "openssl" feature of "%{crate}" crate. %files -n %{name}+openssl-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+ssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ssl-devel %{_description} This package contains library source intended for building other packages which use "ssl" feature of "%{crate}" crate. %files -n %{name}+ssl-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 19:20:55 CEST 2019 Igor Gnatenko - 1.0.0~rc-1 - Initial package