# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate nanoserde-derive Name: rust-nanoserde-derive Version: 0.2.1 Release: %autorelease Summary: Fork of makepad-tinyserde derive without any external dependencies License: MIT URL: https://crates.io/crates/nanoserde-derive Source: %{crates_source} # License file is not bundled in the crate; tracked upstream: # https://github.com/not-fl3/nanoserde/issues/156 Source1: https://raw.githubusercontent.com/not-fl3/nanoserde/master/LICENSE-MIT#/nanoserde-derive-LICENSE-MIT BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Fork of makepad-tinyserde derive without any external dependencies.} %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-MIT %{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}+binary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+binary-devel %{_description} This package contains library source intended for building other packages which use the "binary" feature of the "%{crate}" crate. %files -n %{name}+binary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ron-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ron-devel %{_description} This package contains library source intended for building other packages which use the "ron" feature of the "%{crate}" crate. %files -n %{name}+ron-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp %{SOURCE1} LICENSE-MIT %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install install -m 0644 LICENSE-MIT %{buildroot}/%{crate_instdir}/ %if %{with check} %check %cargo_test %endif %changelog %autochangelog