|
|
|
@ -7,36 +7,38 @@
|
|
|
|
|
%global crate addr2line
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.7.0
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 0.8.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Cross-platform symbolication library written in Rust, using `gimli`
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
|
|
|
License: ASL 2.0 or MIT
|
|
|
|
|
URL: https://crates.io/crates/addr2line
|
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * bump object to 0.11
|
|
|
|
|
# * Drop "alloc" feature, it is nightly-only
|
|
|
|
|
Patch0: addr2line-fix-metadata.diff
|
|
|
|
|
# https://github.com/gimli-rs/addr2line/pull/107
|
|
|
|
|
Patch1: 0001-Update-Object-lifetimes-for-0.11.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(cpp_demangle/default) >= 0.2.0 with crate(cpp_demangle/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(fallible-iterator/default) >= 0.1.0 with crate(fallible-iterator/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(gimli/default) >= 0.16.0 with crate(gimli/default) < 0.17.0)
|
|
|
|
|
BuildRequires: (crate(intervaltree/default) >= 0.2.0 with crate(intervaltree/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(cpp_demangle) >= 0.2.0 with crate(cpp_demangle) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(fallible-iterator) >= 0.1.0 with crate(fallible-iterator) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(gimli) >= 0.16.1 with crate(gimli) < 0.17.0)
|
|
|
|
|
BuildRequires: (crate(gimli/std) >= 0.16.1 with crate(gimli/std) < 0.17.0)
|
|
|
|
|
BuildRequires: (crate(intervaltree) >= 0.2.0 with crate(intervaltree) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(intervaltree/std) >= 0.2.0 with crate(intervaltree/std) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(lazycell/default) >= 1.0.0 with crate(lazycell/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(object/default) >= 0.11.0 with crate(object/default) < 0.12.0)
|
|
|
|
|
BuildRequires: (crate(object) >= 0.11.0 with crate(object) < 0.12.0)
|
|
|
|
|
BuildRequires: (crate(object/std) >= 0.11.0 with crate(object/std) < 0.12.0)
|
|
|
|
|
BuildRequires: (crate(rustc-demangle/default) >= 0.1.0 with crate(rustc-demangle/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(smallvec/default) >= 0.6.0 with crate(smallvec/default) < 0.7.0)
|
|
|
|
|
BuildRequires: (crate(smallvec) >= 0.6.0 with crate(smallvec) < 0.7.0)
|
|
|
|
|
BuildRequires: (crate(smallvec/std) >= 0.6.0 with crate(smallvec/std) < 0.7.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: (crate(backtrace/default) >= 0.3.0 with crate(backtrace/default) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(backtrace/default) >= 0.3.13 with crate(backtrace/default) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(clap/default) >= 2.0.0 with crate(clap/default) < 3.0.0)
|
|
|
|
|
BuildRequires: (crate(findshlibs/default) >= 0.4.0 with crate(findshlibs/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(memmap/default) >= 0.6.0 with crate(memmap/default) < 0.7.0)
|
|
|
|
|
BuildRequires: (crate(memmap/default) >= 0.7.0 with crate(memmap/default) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(rustc-test/default) >= 0.3.0 with crate(rustc-test/default) < 0.4.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -84,6 +86,18 @@ which use "cpp_demangle" feature of "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+cpp_demangle-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/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 "object" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+object-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+rustc-demangle-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -96,8 +110,20 @@ which use "rustc-demangle" feature of "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+rustc-demangle-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/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 "std" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+std-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -112,6 +138,9 @@ which use "rustc-demangle" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
|
|
|
|
|
- Update to 0.8.0
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|