diff --git a/.gitignore b/.gitignore index c114aa3..bebc9f2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /LICENSE-APACHE /LICENSE-MIT /pretty_assertions-1.1.0.crate +/pretty_assertions-1.2.0.crate diff --git a/pretty_assertions-fix-metadata.diff b/pretty_assertions-fix-metadata.diff index 3a2772f..4df5a92 100644 --- a/pretty_assertions-fix-metadata.diff +++ b/pretty_assertions-fix-metadata.diff @@ -1,5 +1,5 @@ ---- pretty_assertions-1.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pretty_assertions-1.1.0/Cargo.toml 2022-02-03T11:07:25.759586+00:00 +--- pretty_assertions-1.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pretty_assertions-1.2.0/Cargo.toml 2022-03-29T20:41:16.216566+00:00 @@ -32,8 +32,3 @@ default = ["std"] std = [] diff --git a/rust-pretty_assertions.spec b/rust-pretty_assertions.spec index 2646994..c4a9f70 100644 --- a/rust-pretty_assertions.spec +++ b/rust-pretty_assertions.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate pretty_assertions Name: rust-%{crate} -Version: 1.1.0 +Version: 1.2.0 Release: %autorelease Summary: Overwrite assert_eq! and assert_ne! with colorful replacements @@ -19,7 +19,7 @@ Patch0: pretty_assertions-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Overwrite `assert_eq!` and `assert_ne!` with drop-in replacements, adding @@ -37,9 +37,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +52,7 @@ 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}+alloc-devel Summary: %{summary} @@ -63,7 +64,7 @@ This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -75,7 +76,7 @@ This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} @@ -87,7 +88,7 @@ This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-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 fb8d030..0883b03 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pretty_assertions-1.1.0.crate) = 76c9b6170293bd244bb674852d5a71b46a3560ba6fd53dbdc615516e98aed55d478e8ffb2eed8b7f8b03231b640c96c8a683e01cad19ed16ec72ff5e060bd968 +SHA512 (pretty_assertions-1.2.0.crate) = 00c09480796fc6f9e18332800b7a1de80f5cfa29faf94cb59e1bb9bdcb636f95ad0ee898f9fe7b47b915b833c186a5a89ce6becfaac33534b72849bd19e9efb7