Blame rust-backtrace.spec

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