From a22a72def15fe56cf8e0c849bd5f133e769d5815 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 4 Nov 2022 19:11:52 +0100 Subject: [PATCH] Update to version 2.0.4 --- .gitignore | 1 + mime_guess-fix-metadata.diff | 11 ++++++++++ rust-mime_guess.spec | 39 +++++++++++++++++------------------- sources | 2 +- 4 files changed, 31 insertions(+), 22 deletions(-) create mode 100644 mime_guess-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 0f39ead..4984ab4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /mime_guess-2.0.0-alpha.6.crate /mime_guess-2.0.1.crate /mime_guess-2.0.3.crate +/mime_guess-2.0.4.crate diff --git a/mime_guess-fix-metadata.diff b/mime_guess-fix-metadata.diff new file mode 100644 index 0000000..242f5bc --- /dev/null +++ b/mime_guess-fix-metadata.diff @@ -0,0 +1,11 @@ +--- mime_guess-2.0.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ mime_guess-2.0.4/Cargo.toml 2022-11-04T18:09:50.532876+00:00 +@@ -32,8 +32,6 @@ + + [dependencies.unicase] + version = "2.4.0" +-[dev-dependencies.criterion] +-version = "0.3" + [build-dependencies.unicase] + version = "2.4.0" + diff --git a/rust-mime_guess.spec b/rust-mime_guess.spec index 0a7bb63..31ed136 100644 --- a/rust-mime_guess.spec +++ b/rust-mime_guess.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate mime_guess -Name: rust-%{crate} -Version: 2.0.3 +Name: rust-mime_guess +Version: 2.0.4 Release: %autorelease 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} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: mime_guess-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Simple crate for detection of a file's MIME type by its extension.} @@ -32,13 +29,13 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +43,11 @@ 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. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rev-mappings-devel Summary: %{summary} @@ -58,11 +55,11 @@ BuildArch: noarch %description -n %{name}+rev-mappings-devel %{_description} -This package contains library source intended for building other packages -which use "rev-mappings" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rev-mappings" feature of the "%{crate}" crate. %files -n %{name}+rev-mappings-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 4686838..e6e7baa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mime_guess-2.0.3.crate) = b08013ce235e66eaf49a88ab4c5cf4d1f1b95846c1bbdc1a73efea9052058860c7dbe2b028fe1b33c713621862fe9af2ed097558cbf5e08903ee406a44af162d +SHA512 (mime_guess-2.0.4.crate) = acfbbfdc5bd725edde43e4915858b8d016e90a5b483664f0bcd5e8d2b0b3684bf0f6020aea147b5bf429f218a7af8080761cea4c5c04b68fa66fd6a676376908