|
|
69e7d8a |
# Generated by rust2rpm 9
|
|
|
69e7d8a |
%bcond_with check
|
|
|
69e7d8a |
%global debug_package %{nil}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%global crate actix-server
|
|
|
69e7d8a |
|
|
|
69e7d8a |
Name: rust-%{crate}
|
|
|
69e7d8a |
Version: 0.5.1
|
|
|
69e7d8a |
Release: 1%{?dist}
|
|
|
69e7d8a |
Summary: Actix server - General purpose tcp server
|
|
|
69e7d8a |
|
|
|
69e7d8a |
# Upstream license specification: MIT/Apache-2.0
|
|
|
69e7d8a |
# https://github.com/actix/actix-net/issues/25
|
|
|
69e7d8a |
License: MIT or ASL 2.0
|
|
|
69e7d8a |
URL: https://crates.io/crates/actix-server
|
|
|
69e7d8a |
Source: %{crates_source}
|
|
|
69e7d8a |
# Initial patched metadata
|
|
|
69e7d8a |
# * No rustls
|
|
|
69e7d8a |
Patch0: actix-server-fix-metadata.diff
|
|
|
69e7d8a |
|
|
|
69e7d8a |
ExclusiveArch: %{rust_arches}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
BuildRequires: rust-packaging
|
|
|
69e7d8a |
BuildRequires: (crate(actix-rt/default) >= 0.2.1 with crate(actix-rt/default) < 0.3.0)
|
|
|
69e7d8a |
BuildRequires: (crate(actix-server-config/default) >= 0.1.1 with crate(actix-server-config/default) < 0.2.0)
|
|
|
69e7d8a |
BuildRequires: (crate(actix-service/default) >= 0.4.0 with crate(actix-service/default) < 0.5.0)
|
|
|
69e7d8a |
BuildRequires: (crate(futures/default) >= 0.1.0 with crate(futures/default) < 0.2.0)
|
|
|
69e7d8a |
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
|
69e7d8a |
BuildRequires: (crate(mio/default) >= 0.6.13 with crate(mio/default) < 0.7.0)
|
|
|
69e7d8a |
BuildRequires: (crate(net2/default) >= 0.2.0 with crate(net2/default) < 0.3.0)
|
|
|
69e7d8a |
BuildRequires: (crate(num_cpus/default) >= 1.0.0 with crate(num_cpus/default) < 2.0.0)
|
|
|
69e7d8a |
BuildRequires: (crate(slab/default) >= 0.4.0 with crate(slab/default) < 0.5.0)
|
|
|
69e7d8a |
BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) < 0.2.0)
|
|
|
69e7d8a |
BuildRequires: (crate(tokio-reactor/default) >= 0.1.0 with crate(tokio-reactor/default) < 0.2.0)
|
|
|
69e7d8a |
BuildRequires: (crate(tokio-signal/default) >= 0.2.0 with crate(tokio-signal/default) < 0.3.0)
|
|
|
69e7d8a |
BuildRequires: (crate(tokio-tcp/default) >= 0.1.0 with crate(tokio-tcp/default) < 0.2.0)
|
|
|
69e7d8a |
BuildRequires: (crate(tokio-timer/default) >= 0.2.8 with crate(tokio-timer/default) < 0.3.0)
|
|
|
69e7d8a |
%if %{with check}
|
|
|
69e7d8a |
BuildRequires: (crate(actix-codec/default) >= 0.1.2 with crate(actix-codec/default) < 0.2.0)
|
|
|
69e7d8a |
BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0)
|
|
|
69e7d8a |
BuildRequires: (crate(env_logger/default) >= 0.6.0 with crate(env_logger/default) < 0.7.0)
|
|
|
69e7d8a |
%endif
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%global _description %{expand:
|
|
|
69e7d8a |
Actix server - General purpose tcp server.}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files devel
|
|
|
69e7d8a |
%doc CHANGES.md
|
|
|
69e7d8a |
%{cargo_registry}/%{crate}-%{version}/
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package -n %{name}+default-devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description -n %{name}+default-devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "default" feature of "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files -n %{name}+default-devel
|
|
|
69e7d8a |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package -n %{name}+native-tls-devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description -n %{name}+native-tls-devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "native-tls" feature of "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files -n %{name}+native-tls-devel
|
|
|
69e7d8a |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package -n %{name}+openssl-devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description -n %{name}+openssl-devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "openssl" feature of "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files -n %{name}+openssl-devel
|
|
|
69e7d8a |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package -n %{name}+ssl-devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description -n %{name}+ssl-devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "ssl" feature of "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files -n %{name}+ssl-devel
|
|
|
69e7d8a |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package -n %{name}+tls-devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description -n %{name}+tls-devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "tls" feature of "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files -n %{name}+tls-devel
|
|
|
69e7d8a |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%package -n %{name}+tokio-openssl-devel
|
|
|
69e7d8a |
Summary: %{summary}
|
|
|
69e7d8a |
BuildArch: noarch
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%description -n %{name}+tokio-openssl-devel %{_description}
|
|
|
69e7d8a |
|
|
|
69e7d8a |
This package contains library source intended for building other packages
|
|
|
69e7d8a |
which use "tokio-openssl" feature of "%{crate}" crate.
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%files -n %{name}+tokio-openssl-devel
|
|
|
69e7d8a |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%prep
|
|
|
69e7d8a |
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
69e7d8a |
%cargo_prep
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%build
|
|
|
69e7d8a |
%cargo_build
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%install
|
|
|
69e7d8a |
%cargo_install
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%if %{with check}
|
|
|
69e7d8a |
%check
|
|
|
69e7d8a |
%cargo_test
|
|
|
69e7d8a |
%endif
|
|
|
69e7d8a |
|
|
|
69e7d8a |
%changelog
|
|
|
69e7d8a |
* Fri May 31 16:06:54 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.1-1
|
|
|
69e7d8a |
- Initial package
|