# Generated by rust2rpm # * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} %global crate owning_ref Name: rust-%{crate} Version: 0.3.3 Release: 7%{?dist} Summary: Library for creating references that carry their owner with them License: MIT URL: https://crates.io/crates/owning_ref Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # https://github.com/Kimundi/owning-ref-rs/pull/43 # see also https://github.com/rust-lang/rust/issues/47524 Patch1: owning_ref-pr43-fix-tests.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(stable_deref_trait/default) >= 1.0.0 with crate(stable_deref_trait/default) < 2.0.0) %global _description \ A library for creating references that carry their owner with them. %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 %doc 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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Oct 27 2018 Igor Gnatenko - 0.3.3-7 - Adapt to new packaging * Sun Oct 07 2018 Igor Gnatenko - 0.3.3-6 - Run tests in infrastructure * Sat Jul 14 2018 Fedora Release Engineering - 0.3.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Mar 10 2018 Josh Stone - 0.3.3-4 - fix lifetime inference regression * Fri Feb 09 2018 Fedora Release Engineering - 0.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.3.3-2 - Rebuild for rust-packaging v5 * Sun Dec 03 2017 Igor Gnatenko - 0.3.3-1 - Initial package