# Generated by rust2rpm 22 # * resolve circular dependency with backtrace %bcond_with check %global debug_package %{nil} %global crate addr2line Name: rust-addr2line Version: 0.18.0 Release: %autorelease Summary: Cross-platform symbolication library based on gimli License: Apache-2.0 OR MIT URL: https://crates.io/crates/addr2line Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * exclude files that are only useful for upstream development Patch: addr2line-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Cross-platform symbolication library written in Rust, using `gimli`.} %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}/CHANGELOG.md %doc %{crate_instdir}/README.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}+cpp_demangle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cpp_demangle-devel %{_description} This package contains library source intended for building other packages which use the "cpp_demangle" feature of the "%{crate}" crate. %files -n %{name}+cpp_demangle-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fallible-iterator-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fallible-iterator-devel %{_description} This package contains library source intended for building other packages which use the "fallible-iterator" feature of the "%{crate}" crate. %files -n %{name}+fallible-iterator-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+object-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+object-devel %{_description} This package contains library source intended for building other packages which use the "object" feature of the "%{crate}" crate. %files -n %{name}+object-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-demangle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-demangle-devel %{_description} This package contains library source intended for building other packages which use the "rustc-demangle" feature of the "%{crate}" crate. %files -n %{name}+rustc-demangle-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+smallvec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smallvec-devel %{_description} This package contains library source intended for building other packages which use the "smallvec" feature of the "%{crate}" crate. %files -n %{name}+smallvec-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-object-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-object-devel %{_description} This package contains library source intended for building other packages which use the "std-object" feature of the "%{crate}" crate. %files -n %{name}+std-object-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