diff --git a/.gitignore b/.gitignore index b3872b0..585a85e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /dissimilar-1.0.1.crate /dissimilar-1.0.2.crate /dissimilar-1.0.3.crate +/dissimilar-1.0.4.crate diff --git a/rust-dissimilar.spec b/rust-dissimilar.spec index 9f7c86c..62c70dd 100644 --- a/rust-dissimilar.spec +++ b/rust-dissimilar.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate dissimilar Name: rust-%{crate} -Version: 1.0.3 +Version: 1.0.4 Release: %autorelease Summary: Diff library with semantic cleanup, based on Google's diff-match-patch -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +# Upstream license specification: Apache-2.0 +License: ASL 2.0 URL: https://crates.io/crates/dissimilar Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Diff library with semantic cleanup, based on Google's diff-match-patch.} @@ -32,13 +29,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-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} @@ -46,11 +44,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 64a684e..c99af98 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dissimilar-1.0.3.crate) = 0c05cbee349bfa775ae37ec84642b204838599b4887f3eace9cfb34464cf747f43caeea9c741d342bf5d8b142269c2eb66d848556b6babe19e878a1e2afac529 +SHA512 (dissimilar-1.0.4.crate) = 782f8b98ed734a37cec33722ab5add2a082f909a5e08c23b961e5049288e8304f68679fe33e4a7a87b2f4d45226c90978075253cc01f9d4f5ce9c379fadc9d54