From f8fa2e9db6b882a778d266a9ea59c174a788f7db Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 12 Apr 2023 20:15:51 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- content_inspector-fix-metadata.diff | 2 +- rust-content_inspector.spec | 36 +++++++++++++---------------- 3 files changed, 17 insertions(+), 24 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 9d1c0f2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-content_inspector - -The rust-content_inspector package \ No newline at end of file diff --git a/content_inspector-fix-metadata.diff b/content_inspector-fix-metadata.diff index 807ca77..e42be12 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-01T00:00:00+00:00 -+++ content_inspector-0.2.4/Cargo.toml 2019-07-14T17:00:18.291157+00:00 ++++ content_inspector-0.2.4/Cargo.toml 2023-04-12T18:14:33.727131+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 16f03c7..be23fc2 100644 --- a/rust-content_inspector.spec +++ b/rust-content_inspector.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate content_inspector -Name: rust-%{crate} +Name: rust-content_inspector Version: 0.2.4 Release: %autorelease Summary: Fast inspection of binary buffers to guess/determine the encoding # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/content_inspector Source: %{crates_source} -# Initial patched metadata -# * Exclude CI files -Patch0: content_inspector-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * exclude files that are only useful for upstream development +Patch: content_inspector-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Fast inspection of binary buffers to guess/determine the encoding.} @@ -35,13 +30,14 @@ 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-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +45,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}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1