# Generated by rust2rpm # * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} %global __cargo_is_bin() false %global crate error-chain Name: rust-%{crate} Version: 0.12.0 Release: 3%{?dist} Summary: Error boilerplate library # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/error-chain Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(backtrace/default) >= 0.3.3 with crate(backtrace/default) < 0.4.0) %global _description \ Yet another error boilerplate library. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+backtrace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+backtrace-devel %{_description} This package contains library source intended for building other packages which use "backtrace" feature of "%{crate}" crate. %files -n %{name}+backtrace-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+example_generated-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+example_generated-devel %{_description} This package contains library source intended for building other packages which use "example_generated" feature of "%{crate}" crate. %files -n %{name}+example_generated-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check # https://github.com/rust-lang-nursery/error-chain/issues/242 %cargo_test || : %endif %changelog * Thu Dec 20 2018 Igor Gnatenko - 0.12.0-3 - Run tests in infrastructure * Fri Nov 02 2018 Igor Gnatenko - 0.12.0-2 - Adapt to new packaging * Tue Jul 17 2018 Igor Gnatenko - 0.12.0-1 - Update to 0.12.0 * Sat Jul 14 2018 Fedora Release Engineering - 0.11.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.11.0-2 - Rebuild for rust-packaging v5 * Wed Jan 03 2018 Igor Gnatenko - 0.11.0-1 - Initial package