69bb836
# Generated by rust2rpm 20
78e4548
%bcond_without check
78e4548
%global debug_package %{nil}
78e4548
78e4548
%global crate tiny_http
78e4548
78e4548
Name:           rust-%{crate}
69bb836
Version:        0.8.2
f19ef89
Release:        %autorelease
78e4548
Summary:        Low level HTTP server library
78e4548
69bb836
# Upstream license specification: MIT OR Apache-2.0
69bb836
License:        MIT or ASL 2.0
78e4548
URL:            https://crates.io/crates/tiny_http
78e4548
Source:         %{crates_source}
78e4548
# Initial patched metadata
69bb836
# * drop unused, benchmark-only fdlimit dev-dependency
78e4548
Patch0:         tiny_http-fix-metadata.diff
78e4548
78e4548
ExclusiveArch:  %{rust_arches}
78e4548
78e4548
BuildRequires:  rust-packaging
78e4548
78e4548
%global _description %{expand:
78e4548
Low level HTTP server library.}
78e4548
78e4548
%description %{_description}
78e4548
78e4548
%package        devel
78e4548
Summary:        %{summary}
78e4548
BuildArch:      noarch
78e4548
78e4548
%description    devel %{_description}
78e4548
69bb836
This package contains library source intended for building other packages which
69bb836
use the "%{crate}" crate.
78e4548
78e4548
%files          devel
69bb836
%license LICENSE-APACHE LICENSE-MIT
78e4548
%doc CHANGELOG.md README.md
69bb836
%{cargo_registry}/%{crate}-%{version_no_tilde}/
78e4548
78e4548
%package     -n %{name}+default-devel
78e4548
Summary:        %{summary}
78e4548
BuildArch:      noarch
78e4548
78e4548
%description -n %{name}+default-devel %{_description}
78e4548
69bb836
This package contains library source intended for building other packages which
69bb836
use the "default" feature of the "%{crate}" crate.
78e4548
78e4548
%files       -n %{name}+default-devel
69bb836
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
78e4548
78e4548
%package     -n %{name}+openssl-devel
78e4548
Summary:        %{summary}
78e4548
BuildArch:      noarch
78e4548
78e4548
%description -n %{name}+openssl-devel %{_description}
78e4548
69bb836
This package contains library source intended for building other packages which
69bb836
use the "openssl" feature of the "%{crate}" crate.
78e4548
78e4548
%files       -n %{name}+openssl-devel
69bb836
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
78e4548
78e4548
%package     -n %{name}+ssl-devel
78e4548
Summary:        %{summary}
78e4548
BuildArch:      noarch
78e4548
78e4548
%description -n %{name}+ssl-devel %{_description}
78e4548
69bb836
This package contains library source intended for building other packages which
69bb836
use the "ssl" feature of the "%{crate}" crate.
78e4548
78e4548
%files       -n %{name}+ssl-devel
69bb836
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
78e4548
78e4548
%prep
78e4548
%autosetup -n %{crate}-%{version_no_tilde} -p1
78e4548
%cargo_prep
78e4548
78e4548
%generate_buildrequires
78e4548
%cargo_generate_buildrequires
78e4548
78e4548
%build
78e4548
%cargo_build
78e4548
78e4548
%install
78e4548
%cargo_install
78e4548
78e4548
%if %{with check}
78e4548
%check
78e4548
%cargo_test
78e4548
%endif
78e4548
78e4548
%changelog
f19ef89
%autochangelog