# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate email_address Name: rust-email_address Version: 0.2.9 Release: 1.20251124004255326116.main%{?dist} Summary: Rust crate providing an implementation of an RFC-compliant EmailAddress newtype License: MIT URL: https://crates.io/crates/email_address Source: email_address-0.2.9.crate # Manually created patch for downstream crate metadata changes Patch: email_address-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A Rust crate providing an implementation of an RFC-compliant `EmailAddress` newtype.} %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 %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/pull_request_template.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}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_support-devel %{_description} This package contains library source intended for building other packages which use the "serde_support" feature of the "%{crate}" crate. %files -n %{name}+serde_support-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n email_address-0.2.9 -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog