diff --git a/.gitignore b/.gitignore index 8803f24..a544beb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /blobby-0.1.1.crate /blobby-0.1.2.crate +/blobby-0.3.0.crate diff --git a/blobby-fix-metadata.diff b/blobby-fix-metadata.diff new file mode 100644 index 0000000..b1fa128 --- /dev/null +++ b/blobby-fix-metadata.diff @@ -0,0 +1,8 @@ +--- blobby-0.3.0/Cargo.toml 2020-07-01T20:19:30+00:00 ++++ blobby-0.3.0/Cargo.toml 2020-10-19T13:09:54.315817+00:00 +@@ -21,4 +21,4 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/RustCrypto/utils" + [dev-dependencies.hex] +-version = "0.3" ++version = "0.4" diff --git a/rust-blobby.spec b/rust-blobby.spec index b97a1b8..30f8395 100644 --- a/rust-blobby.spec +++ b/rust-blobby.spec @@ -1,32 +1,30 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 13 +%bcond_without check %global debug_package %{nil} %global crate blobby Name: rust-%{crate} -Version: 0.1.2 -Release: 5%{?dist} +Version: 0.3.0 +Release: 1%{?dist} Summary: Iterator over simple binary blob storage # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/blobby Source: %{crates_source} +# Initial patched metadata +Patch0: blobby-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0) -%if %{with check} -BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0) -BuildRequires: (crate(byteorder/std) >= 1.0.0 with crate(byteorder/std) < 2.0.0) -BuildRequires: (crate(hex/default) >= 0.3.0 with crate(hex/default) < 0.4.0) -%endif -%global _description \ -Iterator over simple binary blob storage. +%global _description %{expand: +Iterator over simple binary blob storage.} %description %{_description} @@ -41,7 +39,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -53,12 +51,15 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -71,6 +72,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Mon Oct 19 2020 Fabio Valentini - 0.3.0-1 +- Update to version 0.3.0. + * Wed Jul 29 2020 Fedora Release Engineering - 0.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 858969f..17d8ae0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (blobby-0.1.2.crate) = a77b86b4a1ef730cb8860d29001f695eefd0f003bb754b984974784e8ce117bd82d646d3e27b1e06c7b0f17ea4996e1c1242281923163bf5b80bbce953a59ff1 +SHA512 (blobby-0.3.0.crate) = aaf988672a4972df8e3c73762abe685af38585a9866b4798c544626665a3453d6ac471b093bf69ba0554576789e5c0a53c1341816bf0b56a44176e36ea5af105