# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate serde_tuple_macros Name: rust-serde_tuple_macros Version: 0.5.0 Release: %autorelease Summary: De/serialize structs with named fields as array of values License: MIT URL: https://crates.io/crates/serde_tuple_macros Source: %{crates_source} # A patch to work around the following pointless rpm build failure # *** ERROR: ./usr/share/cargo/registry/serde_tuple_macros-0.5.0/src/lib.rs has shebang which doesn't start with '/' ([recursion_limit = "4096"]) Patch0: serde_tuple_macros-fix-build.patch BuildRequires: rust-packaging >= 21 %global _description %{expand: De/serialize structs with named fields as array of values.} %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 # FIXME: no license files detected %{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 %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