You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-addr2line/rust-addr2line.spec

165 lines
4.4 KiB

# Generated by rust2rpm 26
# * resolve circular dependency with backtrace
7 years ago
%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
5 years ago
%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
5 years ago
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cpp_demangle-devel %{_description}
5 years ago
This package contains library source intended for building other packages which
use the "cpp_demangle" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+cpp_demangle-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%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
5 years ago
%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.
5 years ago
%files -n %{name}+smallvec-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%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
5 years ago
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog