# Generated by rust2rpm 24 # * outdated dev-dependencies: serde_json ^0.6.1 %bcond_with check %global debug_package %{nil} %global crate url Name: rust-url1 Version: 1.7.2 Release: %autorelease Summary: URL library for Rust, based on the WHATWG URL Standard # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/url Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused optional feature for supporting serde 0.9 # * exclude files that are only useful for upstream development Patch: url-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: URL library for Rust, based on the WHATWG URL Standard.} %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 %doc %{crate_instdir}/UPGRADING.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}+encoding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+encoding-devel %{_description} This package contains library source intended for building other packages which use the "encoding" feature of the "%{crate}" crate. %files -n %{name}+encoding-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+heap_size-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+heap_size-devel %{_description} This package contains library source intended for building other packages which use the "heap_size" feature of the "%{crate}" crate. %files -n %{name}+heap_size-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+heapsize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+heapsize-devel %{_description} This package contains library source intended for building other packages which use the "heapsize" feature of the "%{crate}" crate. %files -n %{name}+heapsize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+query_encoding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+query_encoding-devel %{_description} This package contains library source intended for building other packages which use the "query_encoding" feature of the "%{crate}" crate. %files -n %{name}+query_encoding-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-serialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-serialize-devel %{_description} This package contains library source intended for building other packages which use the "rustc-serialize" feature of the "%{crate}" crate. %files -n %{name}+rustc-serialize-devel %ghost %{crate_instdir}/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