You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-hyper/rust-hyper.spec

220 lines
5.8 KiB

# Generated by rust2rpm 18
# * examples and integration tests are not included in published crates
# * tower dev-dependency is not packaged
%bcond_with check
%global debug_package %{nil}
%global crate hyper
Name: rust-%{crate}
Version: 0.14.12
Release: %autorelease
Summary: Fast and correct HTTP library
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/hyper
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Fast and correct HTTP library.}
%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
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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_no_tilde}/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_no_tilde}/Cargo.toml
%package -n %{name}+ffi-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ffi-devel %{_description}
This package contains library source intended for building other packages
which use "ffi" feature of "%{crate}" crate.
%files -n %{name}+ffi-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+full-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+full-devel %{_description}
This package contains library source intended for building other packages
which use "full" feature of "%{crate}" crate.
%files -n %{name}+full-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+h2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+h2-devel %{_description}
This package contains library source intended for building other packages
which use "h2" feature of "%{crate}" crate.
%files -n %{name}+h2-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+http1-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+http1-devel %{_description}
This package contains library source intended for building other packages
which use "http1" feature of "%{crate}" crate.
%files -n %{name}+http1-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+http2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+http2-devel %{_description}
This package contains library source intended for building other packages
which use "http2" feature of "%{crate}" crate.
%files -n %{name}+http2-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libc-devel %{_description}
This package contains library source intended for building other packages
which use "libc" feature of "%{crate}" crate.
%files -n %{name}+libc-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+runtime-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+runtime-devel %{_description}
This package contains library source intended for building other packages
which use "runtime" feature of "%{crate}" crate.
%files -n %{name}+runtime-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+server-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+server-devel %{_description}
This package contains library source intended for building other packages
which use "server" feature of "%{crate}" crate.
%files -n %{name}+server-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+socket2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+socket2-devel %{_description}
This package contains library source intended for building other packages
which use "socket2" feature of "%{crate}" crate.
%files -n %{name}+socket2-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+stream-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+stream-devel %{_description}
This package contains library source intended for building other packages
which use "stream" feature of "%{crate}" crate.
%files -n %{name}+stream-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+tcp-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tcp-devel %{_description}
This package contains library source intended for building other packages
which use "tcp" feature of "%{crate}" crate.
%files -n %{name}+tcp-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog