Blame rust-awc.spec

249a8d1
# Generated by rust2rpm 21
249a8d1
# * tests can only be run in-tree
51bcd93
%bcond_with check
51bcd93
%global debug_package %{nil}
51bcd93
51bcd93
%global crate awc
51bcd93
51bcd93
Name:           rust-%{crate}
249a8d1
Version:        3.0.0
46751a4
Release:        %autorelease
249a8d1
Summary:        Async HTTP and WebSocket client library
51bcd93
51bcd93
# Upstream license specification: MIT OR Apache-2.0
51bcd93
License:        MIT or ASL 2.0
51bcd93
URL:            https://crates.io/crates/awc
51bcd93
Source:         %{crates_source}
51bcd93
51bcd93
ExclusiveArch:  %{rust_arches}
51bcd93
249a8d1
BuildRequires:  rust-packaging >= 21
51bcd93
51bcd93
%global _description %{expand:
249a8d1
Async HTTP and WebSocket client library.}
51bcd93
51bcd93
%description %{_description}
51bcd93
51bcd93
%package        devel
51bcd93
Summary:        %{summary}
51bcd93
BuildArch:      noarch
51bcd93
51bcd93
%description    devel %{_description}
51bcd93
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "%{crate}" crate.
51bcd93
51bcd93
%files          devel
249a8d1
%license %{crate_instdir}/LICENSE-APACHE
249a8d1
%license %{crate_instdir}/LICENSE-MIT
249a8d1
%doc %{crate_instdir}/CHANGES.md
249a8d1
%doc %{crate_instdir}/README.md
249a8d1
%{crate_instdir}/
51bcd93
51bcd93
%package     -n %{name}+default-devel
51bcd93
Summary:        %{summary}
51bcd93
BuildArch:      noarch
51bcd93
51bcd93
%description -n %{name}+default-devel %{_description}
51bcd93
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "default" feature of the "%{crate}" crate.
51bcd93
51bcd93
%files       -n %{name}+default-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+__compress-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+__compress-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "__compress" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+__compress-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+compress-brotli-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+compress-brotli-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "compress-brotli" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+compress-brotli-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+compress-gzip-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+compress-gzip-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "compress-gzip" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+compress-gzip-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+compress-zstd-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+compress-zstd-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "compress-zstd" feature of the "%{crate}" crate.
51bcd93
249a8d1
%files       -n %{name}+compress-zstd-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+cookie-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+cookie-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "cookie" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+cookie-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+cookies-devel
51bcd93
Summary:        %{summary}
51bcd93
BuildArch:      noarch
51bcd93
249a8d1
%description -n %{name}+cookies-devel %{_description}
51bcd93
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "cookies" feature of the "%{crate}" crate.
51bcd93
249a8d1
%files       -n %{name}+cookies-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
51bcd93
249a8d1
%package     -n %{name}+dangerous-h2c-devel
51bcd93
Summary:        %{summary}
51bcd93
BuildArch:      noarch
51bcd93
249a8d1
%description -n %{name}+dangerous-h2c-devel %{_description}
51bcd93
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "dangerous-h2c" feature of the "%{crate}" crate.
51bcd93
249a8d1
%files       -n %{name}+dangerous-h2c-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
51bcd93
51bcd93
%package     -n %{name}+openssl-devel
51bcd93
Summary:        %{summary}
51bcd93
BuildArch:      noarch
51bcd93
51bcd93
%description -n %{name}+openssl-devel %{_description}
51bcd93
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "openssl" feature of the "%{crate}" crate.
51bcd93
51bcd93
%files       -n %{name}+openssl-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+tls-openssl-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+tls-openssl-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "tls-openssl" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+tls-openssl-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+trust-dns-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+trust-dns-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "trust-dns" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+trust-dns-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
249a8d1
249a8d1
%package     -n %{name}+trust-dns-resolver-devel
249a8d1
Summary:        %{summary}
249a8d1
BuildArch:      noarch
249a8d1
249a8d1
%description -n %{name}+trust-dns-resolver-devel %{_description}
249a8d1
249a8d1
This package contains library source intended for building other packages which
249a8d1
use the "trust-dns-resolver" feature of the "%{crate}" crate.
249a8d1
249a8d1
%files       -n %{name}+trust-dns-resolver-devel
249a8d1
%ghost %{crate_instdir}/Cargo.toml
51bcd93
51bcd93
%prep
51bcd93
%autosetup -n %{crate}-%{version_no_tilde} -p1
51bcd93
%cargo_prep
51bcd93
51bcd93
%generate_buildrequires
51bcd93
%cargo_generate_buildrequires
51bcd93
51bcd93
%build
51bcd93
%cargo_build
51bcd93
51bcd93
%install
51bcd93
%cargo_install
51bcd93
51bcd93
%if %{with check}
51bcd93
%check
51bcd93
%cargo_test
51bcd93
%endif
51bcd93
51bcd93
%changelog
46751a4
%autochangelog