The package rpms/rust-actix-server.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-actix-server.git/commit/?id=....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 69e7d8a3f7ce9ed73ec2b66cfa52ad43a55e09a7
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Jun 1 08:17:57 2019 +0200
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..12887eb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/actix-server-0.5.1.crate
diff --git a/actix-server-fix-metadata.diff b/actix-server-fix-metadata.diff
new file mode 100644
index 0000000..42175fd
--- /dev/null
+++ b/actix-server-fix-metadata.diff
@@ -0,0 +1,45 @@
+--- actix-server-0.5.1/Cargo.toml 1970-01-01T00:00:00+00:00
++++ actix-server-0.5.1/Cargo.toml 2019-05-31T14:06:54.668503+00:00
+@@ -61,10 +61,6 @@
+ version = "0.10"
+ optional = true
+
+-[dependencies.rustls]
+-version = "0.15.2"
+-optional = true
+-
+ [dependencies.slab]
+ version = "0.4"
+
+@@ -78,10 +74,6 @@
+ [dependencies.tokio-reactor]
+ version = "0.1"
+
+-[dependencies.tokio-rustls]
+-version = "0.9.1"
+-optional = true
+-
+ [dependencies.tokio-signal]
+ version = "0.2"
+
+@@ -91,13 +83,6 @@
+ [dependencies.tokio-timer]
+ version = "0.2.8"
+
+-[dependencies.webpki]
+-version = "0.19"
+-optional = true
+-
+-[dependencies.webpki-roots]
+-version = "0.16"
+-optional = true
+ [dev-dependencies.actix-codec]
+ version = "0.1.2"
+
+@@ -109,6 +94,5 @@
+
+ [features]
+ default = []
+-rust-tls = ["rustls", "tokio-rustls", "webpki",
"webpki-roots", "actix-server-config/rust-tls"]
+ ssl = ["openssl", "tokio-openssl",
"actix-server-config/ssl"]
+ tls = ["native-tls"]
diff --git a/rust-actix-server.spec b/rust-actix-server.spec
new file mode 100644
index 0000000..53c1cd6
--- /dev/null
+++ b/rust-actix-server.spec
@@ -0,0 +1,151 @@
+# Generated by rust2rpm 9
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate actix-server
+
+Name: rust-%{crate}
+Version: 0.5.1
+Release: 1%{?dist}
+Summary: Actix server - General purpose tcp server
+
+# Upstream license specification: MIT/Apache-2.0
+#
https://github.com/actix/actix-net/issues/25
+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}
+
+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.}
+
+%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 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
+
+%package -n %{name}+native-tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+native-tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "native-tls" feature of "%{crate}" crate.
+
+%files -n %{name}+native-tls-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
+
+%package -n %{name}+tls-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tls-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tls" feature of "%{crate}" crate.
+
+%files -n %{name}+tls-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+tokio-openssl-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+tokio-openssl-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "tokio-openssl" feature of "%{crate}" crate.
+
+%files -n %{name}+tokio-openssl-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 16:06:54 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.5.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..1c287fa
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (actix-server-0.5.1.crate) =
850fe799de268cc6cf440faa1b6254de1f7a5ac25dbcfaa07adfc5e798156102b783d5eec02903e41babc67e31d269825d5f2afce794f2ae670985af706b6fff
diff --git a/tests/.fmf/version b/tests/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/tests/provision.fmf b/tests/provision.fmf
new file mode 100644
index 0000000..503a97c
--- /dev/null
+++ b/tests/provision.fmf
@@ -0,0 +1,5 @@
+---
+standard-inventory-qcow2:
+ qemu:
+ # `cargo test` usually eats more than 1G.
+ m: 4G
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..af9f1c3
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,13 @@
+---
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+ repositories:
+ - repo: "https://src.fedoraproject.org/tests/rust.git"
+ dest: rust
+ tests:
+ - rust/cargo-test
+ environment:
+ pkg: rust-actix-server