diff --git a/rust-mime_guess.spec b/rust-mime_guess.spec index 0252e29..bf925e5 100644 --- a/rust-mime_guess.spec +++ b/rust-mime_guess.spec @@ -1,30 +1,28 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate mime_guess Name: rust-%{crate} Version: 2.0.0~alpha.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Simple crate for detection of a file's MIME type by its extension +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/mime_guess Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(mime/default) >= 0.3.0 with crate(mime/default) < 0.4.0) -BuildRequires: (crate(phf/default) >= 0.7.0 with crate(phf/default) < 0.8.0) -BuildRequires: (crate(phf/unicase) >= 0.7.0 with crate(phf/unicase) < 0.8.0) -BuildRequires: (crate(phf_codegen/default) >= 0.7.0 with crate(phf_codegen/default) < 0.8.0) -BuildRequires: (crate(unicase/default) >= 1.1.0 with crate(unicase/default) < 2.0.0) -%global _description \ -A simple crate for detection of a file's MIME type by its extension. +%global _description %{expand: +Simple crate for detection of a file's MIME type by its extension.} %description %{_description} @@ -54,10 +52,25 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+bench-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bench-devel %{_description} + +This package contains library source intended for building other packages +which use "bench" feature of "%{crate}" crate. + +%files -n %{name}+bench-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -70,6 +83,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 21 19:49:02 CEST 2019 Igor Gnatenko - 2.0.0~alpha.6-4 +- Regenerate + * Sat Feb 02 2019 Fedora Release Engineering - 2.0.0~alpha.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild