|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
# Generated by rust2rpm 23
|
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate mime_guess
|
|
|
|
|
|
|
|
|
|
Name: rust-mime_guess
|
|
|
|
|
Version: 2.0.4
|
|
|
|
|
Version: 2.0.5
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Simple crate for detection of a file's MIME type by its extension
|
|
|
|
|
|
|
|
|
@ -13,13 +13,13 @@ License: MIT
|
|
|
|
|
URL: https://crates.io/crates/mime_guess
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
|
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency
|
|
|
|
|
Patch: mime_guess-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Simple crate for detection of a file's MIME type by its extension.}
|
|
|
|
|
A simple crate for detection of a file's MIME type by its extension.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ use the "rev-mappings" feature of the "%{crate}" crate.
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|