# Generated by rust2rpm 26 # * resolve circular dependency with backtrace %bcond_with check %global debug_package %{nil} # prevent executables from being installed %global cargo_install_bin 0 %global crate addr2line Name: rust-addr2line Version: 0.24.2 Release: %autorelease Summary: Cross-platform symbolication library written in Rust, using gimli License: Apache-2.0 OR MIT URL: https://crates.io/crates/addr2line Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop binary and test that requires bin # * drop clap dependency, only used by bin Patch: addr2line-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A 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}+cargo-all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cargo-all-devel %{_description} This package contains library source intended for building other packages which use the "cargo-all" feature of the "%{crate}" crate. %files -n %{name}+cargo-all-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}+loader-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+loader-devel %{_description} This package contains library source intended for building other packages which use the "loader" feature of the "%{crate}" crate. %files -n %{name}+loader-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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # remove source code for the binary we're not shipping rm src/bin/addr2line.rs %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog