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.
69 lines
2.0 KiB
69 lines
2.0 KiB
7 years ago
|
# Generated by rust2rpm
|
||
|
%bcond_without check
|
||
|
%global debug_package %{nil}
|
||
|
|
||
|
%global crate backtrace
|
||
|
|
||
|
Name: rust-%{crate}
|
||
|
Version: 0.3.5
|
||
|
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.5-fix-metadata.diff
|
||
|
|
||
|
ExclusiveArch: %{rust_arches}
|
||
|
|
||
|
BuildRequires: rust-packaging
|
||
|
# [dependencies]
|
||
|
BuildRequires: (crate(backtrace-sys) >= 0.1.3 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
|
||
|
%cargo_test
|
||
|
%endif
|
||
|
|
||
|
%files devel
|
||
|
%license LICENSE-MIT LICENSE-APACHE
|
||
|
%{cargo_registry}/%{crate}-%{version}/
|
||
|
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
|
||
|
|
||
|
%changelog
|
||
|
* Thu Jan 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.5-1
|
||
|
- Initial package
|