|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate backtrace
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.3.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Library to acquire a stack trace (backtrace) at runtime in a Rust program
|
|
|
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
URL: https://crates.io/crates/backtrace
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
# Initial patched metadata
|
|
|
|
# * No windows/osx
|
|
|
|
# * No addr2line due to backtrace(opt) -> addr2line -> error-chain(opt) -> backtrace
|
|
|
|
Patch0: backtrace-0.3.8-fix-metadata.diff
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(backtrace-sys) >= 0.1.17 with crate(backtrace-sys) < 0.2.0)
|
|
|
|
BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0)
|
|
|
|
BuildRequires: (crate(cpp_demangle) >= 0.2.3 with crate(cpp_demangle) < 0.3.0)
|
|
|
|
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
|
|
|
|
BuildRequires: (crate(rustc-demangle) >= 0.1.4 with crate(rustc-demangle) < 0.2.0)
|
|
|
|
BuildRequires: (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
|
|
|
|
BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
|
|
|
|
BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0)
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A library to acquire a stack trace (backtrace) at runtime in a Rust program.
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use %{crate} from crates.io.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
# https://github.com/alexcrichton/backtrace-rs/issues/83
|
|
|
|
%cargo_test || :
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri Jun 29 2018 Josh Stone <jistone@redhat.com> - 0.3.9-1
|
|
|
|
- Update to 0.3.9
|
|
|
|
|
|
|
|
* Wed May 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.8-1
|
|
|
|
- Update to 0.3.8
|
|
|
|
|
|
|
|
* Fri May 04 2018 Josh Stone <jistone@redhat.com> - 0.3.7-1
|
|
|
|
- Update to 0.3.7
|
|
|
|
|
|
|
|
* Sat Apr 14 2018 Josh Stone <jistone@redhat.com> - 0.3.6-1
|
|
|
|
- Update to 0.3.6
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.5-2
|
|
|
|
- Rebuild for rust-packaging v5
|
|
|
|
|
|
|
|
* Thu Jan 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.5-1
|
|
|
|
- Initial package
|