diff --git a/.gitignore b/.gitignore index 8ce6708..3e633d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /diff-0.1.10.crate /diff-0.1.11.crate /diff-0.1.12.crate +/diff-0.1.13.crate diff --git a/rust-diff.spec b/rust-diff.spec index 4bdd733..06e485e 100644 --- a/rust-diff.spec +++ b/rust-diff.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 21 # * speculate is not packaged %bcond_with check %global debug_package %{nil} @@ -6,7 +6,7 @@ %global crate diff Name: rust-%{crate} -Version: 0.1.12 +Version: 0.1.13 Release: %autorelease Summary: LCS based slice and string diffing implementation @@ -16,11 +16,8 @@ URL: https://crates.io/crates/diff Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: LCS based slice and string diffing implementation.} @@ -33,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_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} @@ -47,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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 54852d8..76c33a3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (diff-0.1.12.crate) = 0e81331c0424e9369963e23894a6412b65a3ed4f3154ccc184fc84cf1c5985b81c586a6b34e8c6c0e5c3afba38fb15277cfd89e7f50c85bd5d8d4d24ba670d16 +SHA512 (diff-0.1.13.crate) = 45e259c9fe7c23bd9e9454891b42d4aef6d681d35ee039d21fdb05ae9ed5856161a40f29889e7880ac2a2daf85f1b7d752d213b4a99a1a74ed2682c18a3ae7fb