From 1617391d0d96867bc6da4916ec4683893df6f3c5 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mar 27 2020 12:47:53 +0000 Subject: Regenerate Signed-off-by: Igor Raits --- diff --git a/rust-snowflake.spec b/rust-snowflake.spec index 5b07cb5..68c6060 100644 --- a/rust-snowflake.spec +++ b/rust-snowflake.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 # * Tests require nightly compiler %bcond_with check %global debug_package %{nil} @@ -7,30 +7,23 @@ Name: rust-%{crate} Version: 1.3.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Module for generating guaranteed process unique IDs # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/snowflake Source: %{crates_source} -# Initial patched metadata -# * Bump uuid to 0.6 and rand to 0.4, https://github.com/Stebalien/snowflake/commit/6b7d40c42d9d3048c796e679bf9f8852bef79b14 -Patch0: snowflake-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) -BuildRequires: (crate(threadpool/default) >= 1.0.0 with crate(threadpool/default) < 2.0.0) -BuildRequires: (crate(time/default) >= 0.1.0 with crate(time/default) < 0.2.0) -BuildRequires: (crate(uuid/default) >= 0.6.0 with crate(uuid/default) < 0.7.0) -BuildRequires: (crate(uuid/v4) >= 0.6.0 with crate(uuid/v4) < 0.7.0) -%endif -%global _description \ -A module for generating guaranteed process unique IDs. +%global _description %{expand: +Module for generating guaranteed process unique IDs.} %description %{_description} @@ -46,7 +39,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -58,7 +51,7 @@ 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 %package -n %{name}+serde-devel Summary: %{summary} @@ -70,7 +63,7 @@ This package contains library source intended for building other packages which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_derive-devel Summary: %{summary} @@ -82,7 +75,7 @@ This package contains library source intended for building other packages which use "serde_derive" feature of "%{crate}" crate. %files -n %{name}+serde_derive-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_support-devel Summary: %{summary} @@ -94,12 +87,15 @@ This package contains library source intended for building other packages which use "serde_support" feature of "%{crate}" crate. %files -n %{name}+serde_support-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 @@ -112,6 +108,9 @@ which use "serde_support" feature of "%{crate}" crate. %endif %changelog +* Fri Mar 27 13:47:10 CET 2020 Igor Raits - 1.3.0-8 +- Regenerateo + * Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/snowflake-fix-metadata.diff b/snowflake-fix-metadata.diff deleted file mode 100644 index 8ee23cd..0000000 --- a/snowflake-fix-metadata.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- snowflake-1.3.0/Cargo.toml 2017-05-14T01:12:08+02:00 -+++ snowflake-1.3.0/Cargo.toml 2019-02-10T09:14:12.800302+01:00 -@@ -18,8 +18,8 @@ - - [dev-dependencies] - time = "0.1" --uuid = { version = "0.5", features = ["v4"] } --rand = "0.3" -+uuid = { version = "0.6", features = ["v4"] } -+rand = "0.4" - threadpool = "1" - - [features]