diff --git a/rust-same-file.spec b/rust-same-file.spec index 8b96f2d..93e4cc6 100644 --- a/rust-same-file.spec +++ b/rust-same-file.spec @@ -1,32 +1,36 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 9 +%bcond_without check %global debug_package %{nil} %global crate same-file Name: rust-%{crate} Version: 1.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Simple crate for determining whether two file paths point to the same file # Upstream license specification: Unlicense/MIT License: Unlicense or MIT URL: https://crates.io/crates/same-file -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows Patch0: same-file-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging +%if ! %{__cargo_skip_build} %if %{with check} BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) %endif +%endif -%global _description \ -A simple crate for determining whether two file paths point to the same file. +%global _description %{expand: +Simple crate for determining whether two file paths point to the same file.} %description %{_description} @@ -57,7 +61,7 @@ which use "default" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -72,6 +76,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 09 11:00:40 CEST 2019 Igor Gnatenko - 1.0.4-3 +- Regenerate + * Sat Feb 02 2019 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild