diff --git a/rust-actix-server.spec b/rust-actix-server.spec index 53c1cd6..f08b852 100644 --- a/rust-actix-server.spec +++ b/rust-actix-server.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 9 -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate actix-server Name: rust-%{crate} Version: 0.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Actix server - General purpose tcp server # Upstream license specification: MIT/Apache-2.0 @@ -14,32 +14,13 @@ Summary: Actix server - General purpose tcp server License: MIT or ASL 2.0 URL: https://crates.io/crates/actix-server Source: %{crates_source} -# Initial patched metadata -# * No rustls -Patch0: actix-server-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(actix-rt/default) >= 0.2.1 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-service/default) >= 0.4.0 with crate(actix-service/default) < 0.5.0) -BuildRequires: (crate(futures/default) >= 0.1.0 with crate(futures/default) < 0.2.0) -BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) -BuildRequires: (crate(mio/default) >= 0.6.13 with crate(mio/default) < 0.7.0) -BuildRequires: (crate(net2/default) >= 0.2.0 with crate(net2/default) < 0.3.0) -BuildRequires: (crate(num_cpus/default) >= 1.0.0 with crate(num_cpus/default) < 2.0.0) -BuildRequires: (crate(slab/default) >= 0.4.0 with crate(slab/default) < 0.5.0) -BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) < 0.2.0) -BuildRequires: (crate(tokio-reactor/default) >= 0.1.0 with crate(tokio-reactor/default) < 0.2.0) -BuildRequires: (crate(tokio-signal/default) >= 0.2.0 with crate(tokio-signal/default) < 0.3.0) -BuildRequires: (crate(tokio-tcp/default) >= 0.1.0 with crate(tokio-tcp/default) < 0.2.0) -BuildRequires: (crate(tokio-timer/default) >= 0.2.8 with crate(tokio-timer/default) < 0.3.0) -%if %{with check} -BuildRequires: (crate(actix-codec/default) >= 0.1.2 with crate(actix-codec/default) < 0.2.0) -BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0) -BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default) < 0.7.0) -%endif %global _description %{expand: Actix server - General purpose tcp server.} @@ -95,6 +76,30 @@ which use "openssl" feature of "%{crate}" crate. %files -n %{name}+openssl-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+rust-tls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rust-tls-devel %{_description} + +This package contains library source intended for building other packages +which use "rust-tls" feature of "%{crate}" crate. + +%files -n %{name}+rust-tls-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+rustls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-devel %{_description} + +This package contains library source intended for building other packages +which use "rustls" feature of "%{crate}" crate. + +%files -n %{name}+rustls-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %package -n %{name}+ssl-devel Summary: %{summary} BuildArch: noarch @@ -131,10 +136,49 @@ which use "tokio-openssl" feature of "%{crate}" crate. %files -n %{name}+tokio-openssl-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+tokio-rustls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-rustls-devel %{_description} + +This package contains library source intended for building other packages +which use "tokio-rustls" feature of "%{crate}" crate. + +%files -n %{name}+tokio-rustls-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+webpki-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+webpki-devel %{_description} + +This package contains library source intended for building other packages +which use "webpki" feature of "%{crate}" crate. + +%files -n %{name}+webpki-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+webpki-roots-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+webpki-roots-devel %{_description} + +This package contains library source intended for building other packages +which use "webpki-roots" feature of "%{crate}" crate. + +%files -n %{name}+webpki-roots-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -147,5 +191,8 @@ which use "tokio-openssl" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 19:58:08 CEST 2019 Igor Gnatenko - 0.5.1-2 +- Regenerate + * Fri May 31 16:06:54 CEST 2019 Igor Gnatenko - 0.5.1-1 - Initial package