# Generated by rust2rpm 10 %bcond_without check %global crate multipart Name: rust-%{crate} Version: 0.16.1 Release: 1%{?dist} Summary: Backend-agnostic extension for HTTP libraries that provides support for POST multipart/form-data requests on both client and server # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/multipart Source: %{crates_source} # Initial patched metadata # - Bump twoway to 0.2 # - Bump en_logger to 0.7.0 Patch0: multipart-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Backend-agnostic extension for HTTP libraries that provides support for POST multipart/form-data requests on both client and server.} %description %{_description} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %doc README.md %license LICENSE LICENSE-APACHE LICENSE-MIT %{_bindir}/form_test %endif %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 %doc README.md %{cargo_registry}/%{crate}-%{version}/ %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}/Cargo.toml %package -n %{name}+bench-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bench-devel %{_description} This package contains library source intended for building other packages which use "bench" feature of "%{crate}" crate. %files -n %{name}+bench-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+buf_redux-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+buf_redux-devel %{_description} This package contains library source intended for building other packages which use "buf_redux" feature of "%{crate}" crate. %files -n %{name}+buf_redux-devel %ghost %{cargo_registry}/%{crate}-%{version}/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}/Cargo.toml %package -n %{name}+clippy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+clippy-devel %{_description} This package contains library source intended for building other packages which use "clippy" feature of "%{crate}" crate. %files -n %{name}+clippy-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+httparse-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+httparse-devel %{_description} This package contains library source intended for building other packages which use "httparse" feature of "%{crate}" crate. %files -n %{name}+httparse-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+hyper-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hyper-devel %{_description} This package contains library source intended for building other packages which use "hyper" feature of "%{crate}" crate. %files -n %{name}+hyper-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+iron-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+iron-devel %{_description} This package contains library source intended for building other packages which use "iron" feature of "%{crate}" crate. %files -n %{name}+iron-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+lazy_static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lazy_static-devel %{_description} This package contains library source intended for building other packages which use "lazy_static" feature of "%{crate}" crate. %files -n %{name}+lazy_static-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+mock-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mock-devel %{_description} This package contains library source intended for building other packages which use "mock" feature of "%{crate}" crate. %files -n %{name}+mock-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+nickel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nickel-devel %{_description} This package contains library source intended for building other packages which use "nickel" feature of "%{crate}" crate. %files -n %{name}+nickel-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+nightly-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nightly-devel %{_description} This package contains library source intended for building other packages which use "nightly" feature of "%{crate}" crate. %files -n %{name}+nightly-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+quick-error-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quick-error-devel %{_description} This package contains library source intended for building other packages which use "quick-error" feature of "%{crate}" crate. %files -n %{name}+quick-error-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+rocket-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rocket-devel %{_description} This package contains library source intended for building other packages which use "rocket" feature of "%{crate}" crate. %files -n %{name}+rocket-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+safemem-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+safemem-devel %{_description} This package contains library source intended for building other packages which use "safemem" feature of "%{crate}" crate. %files -n %{name}+safemem-devel %ghost %{cargo_registry}/%{crate}-%{version}/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}/Cargo.toml %package -n %{name}+tiny_http-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tiny_http-devel %{_description} This package contains library source intended for building other packages which use "tiny_http" feature of "%{crate}" crate. %files -n %{name}+tiny_http-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+twoway-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+twoway-devel %{_description} This package contains library source intended for building other packages which use "twoway" feature of "%{crate}" crate. %files -n %{name}+twoway-devel %ghost %{cargo_registry}/%{crate}-%{version}/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 * Sun Oct 20 00:56:29 CEST 2019 Robert-André Mauchin - 0.16.1-1 - Initial package