diff --git a/rpick-fix-metadata.diff b/rpick-fix-metadata.diff new file mode 100644 index 0000000..b6e1c56 --- /dev/null +++ b/rpick-fix-metadata.diff @@ -0,0 +1,11 @@ +--- rpick-0.8.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rpick-0.8.7/Cargo.toml 2022-07-15T08:44:28.174533+00:00 +@@ -58,7 +58,7 @@ + version = "2" + + [dev-dependencies.mockall] +-version = "0.10" ++version = "0.11" + + [dev-dependencies.rand] + version = "0.8" diff --git a/rust-rpick.spec b/rust-rpick.spec index a7a964f..9c6b3e0 100644 --- a/rust-rpick.spec +++ b/rust-rpick.spec @@ -1,24 +1,25 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 21 %bcond_without check %global crate rpick Name: rust-%{crate} Version: 0.8.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Helps you pick items from a list by various algorithms # Upstream license specification: GPL-3.0 License: GPLv3 URL: https://crates.io/crates/rpick Source: %{crates_source} +# Initial patched metadata +# * bump mockall dev-dependency from 0.10 to 0.11: +# https://github.com/bowlofeggs/rpick/commit/e3fdb95 +Patch0: rpick-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Helps you pick items from a list by various algorithms. Example uses: pick a @@ -26,24 +27,25 @@ restaurant you haven't been to in a while, or an album to listen to.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} -# Install all deps (without check), grab their licenses and make it simple +# * ASL 2.0 +# * ASL 2.0 or Boost # * ASL 2.0 or MIT +# * BSD # * MIT # * MIT or ASL 2.0 -# * BSD -# * CC0 -License: GPLv3 and MIT and BSD and CC0 +# * Unlicense or MIT +# * zlib or ASL 2.0 or MIT +License: GPLv3 and ASL 2.0 and BSD and MIT %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE +%doc CHANGELOG.md %doc README.md %{_bindir}/rpick -%endif %package devel Summary: %{summary} @@ -51,13 +53,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -65,11 +68,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 @@ -90,6 +93,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Fri Jul 15 2022 Fabio Valentini - 0.8.7-4 +- Bump mockall dev-dependency from 0.10 to 0.11. + * Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.8.7-3 - Rebuild with package notes