diff --git a/content_inspector-fix-metadata.diff b/content_inspector-fix-metadata.diff index c4aac6a..807ca77 100644 --- a/content_inspector-fix-metadata.diff +++ b/content_inspector-fix-metadata.diff @@ -1,5 +1,5 @@ ---- content_inspector-0.2.4/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ content_inspector-0.2.4/Cargo.toml 2018-11-04T18:26:23.122177+01:00 +--- content_inspector-0.2.4/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ content_inspector-0.2.4/Cargo.toml 2019-07-14T17:00:18.291157+00:00 @@ -21,5 +21,6 @@ categories = ["encoding"] license = "MIT/Apache-2.0" diff --git a/rust-content_inspector.spec b/rust-content_inspector.spec index 82a0ac3..784480d 100644 --- a/rust-content_inspector.spec +++ b/rust-content_inspector.spec @@ -1,30 +1,31 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate content_inspector Name: rust-%{crate} Version: 0.2.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Fast inspection of binary buffers to guess/determine the encoding # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/content_inspector -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * Exclude CI files Patch0: content_inspector-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(memchr/default) >= 2.0.0 with crate(memchr/default) < 3.0.0) -%global _description \ -Fast inspection of binary buffers to guess/determine the encoding. +%global _description %{expand: +Fast inspection of binary buffers to guess/determine the encoding.} %description %{_description} @@ -55,9 +56,12 @@ 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 +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -70,6 +74,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Jul 14 19:00:18 CEST 2019 Igor Gnatenko - 0.2.4-5 +- Regenerate + * Sat Feb 02 2019 Fedora Release Engineering - 0.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild