# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate http-types Name: rust-http-types Version: 2.12.0 Release: %autorelease Summary: Common types for HTTP operations License: MIT OR Apache-2.0 URL: https://crates.io/crates/http-types Source: %{crates_source} # Update 'cookie' version to packagable one Patch: http-types-fix-dep-version.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Common types for HTTP operations.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/README.md %{crate_instdir}/ %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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-std-devel %{_description} This package contains library source intended for building other packages which use the "async-std" feature of the "%{crate}" crate. %files -n %{name}+async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async_std-devel %{_description} This package contains library source intended for building other packages which use the "async_std" feature of the "%{crate}" crate. %files -n %{name}+async_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cookie-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cookie-devel %{_description} This package contains library source intended for building other packages which use the "cookie" feature of the "%{crate}" crate. %files -n %{name}+cookie-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cookie-secure-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cookie-secure-devel %{_description} This package contains library source intended for building other packages which use the "cookie-secure" feature of the "%{crate}" crate. %files -n %{name}+cookie-secure-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cookies-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cookies-devel %{_description} This package contains library source intended for building other packages which use the "cookies" feature of the "%{crate}" crate. %files -n %{name}+cookies-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docs-devel %{_description} This package contains library source intended for building other packages which use the "docs" feature of the "%{crate}" crate. %files -n %{name}+docs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-devel %{_description} This package contains library source intended for building other packages which use the "fs" feature of the "%{crate}" crate. %files -n %{name}+fs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-devel %{_description} This package contains library source intended for building other packages which use the "http" feature of the "%{crate}" crate. %files -n %{name}+http-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hyperium_http-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hyperium_http-devel %{_description} This package contains library source intended for building other packages which use the "hyperium_http" feature of the "%{crate}" crate. %files -n %{name}+hyperium_http-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog