From 3188a496de113522eedd10e51b2ba551635bd4ca Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 9 Mar 2019 12:17:57 +0100 Subject: [PATCH] Update to 0.2.15 Signed-off-by: Igor Gnatenko --- rust-structopt.spec | 17 ++++++++++------- ...metadata.diff => structopt-fix-metadata.diff | 4 ++-- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 +++++++++++++ 5 files changed, 31 insertions(+), 9 deletions(-) rename structopt-0.2.10-fix-metadata.diff => structopt-fix-metadata.diff (67%) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-structopt.spec b/rust-structopt.spec index c4f9b1d..14e8dc2 100644 --- a/rust-structopt.spec +++ b/rust-structopt.spec @@ -1,21 +1,21 @@ # Generated by rust2rpm -%bcond_without check +%bcond_with check %global debug_package %{nil} %global crate structopt Name: rust-%{crate} -Version: 0.2.14 -Release: 2%{?dist} +Version: 0.2.15 +Release: 1%{?dist} Summary: Parse command line argument by defining a struct # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/structopt -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No nightly features -Patch0: structopt-0.2.10-fix-metadata.diff +Patch0: structopt-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -29,7 +29,7 @@ BuildRequires: (crate(clap/no_cargo) >= 2.21.0 with crate(clap/no_cargo) < 3.0. BuildRequires: (crate(clap/suggestions) >= 2.21.0 with crate(clap/suggestions) < 3.0.0) BuildRequires: (crate(clap/wrap_help) >= 2.21.0 with crate(clap/wrap_help) < 3.0.0) BuildRequires: (crate(clap/yaml) >= 2.21.0 with crate(clap/yaml) < 3.0.0) -BuildRequires: (crate(structopt-derive/default) >= 0.2.14 with crate(structopt-derive/default) < 0.3.0) +BuildRequires: (crate(structopt-derive/default) >= 0.2.15 with crate(structopt-derive/default) < 0.3.0) %global _description \ Parse command line argument by defining a struct. @@ -147,7 +147,7 @@ which use "yaml" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -163,6 +163,9 @@ which use "yaml" feature of "%{crate}" crate. %endif %changelog +* Sat Mar 09 2019 Igor Gnatenko - 0.2.15-1 +- Update to 0.2.15 + * Sat Feb 02 2019 Fedora Release Engineering - 0.2.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/structopt-0.2.10-fix-metadata.diff b/structopt-fix-metadata.diff similarity index 67% rename from structopt-0.2.10-fix-metadata.diff rename to structopt-fix-metadata.diff index 73f7bfd..50abb6e 100644 --- a/structopt-0.2.10-fix-metadata.diff +++ b/structopt-fix-metadata.diff @@ -1,5 +1,5 @@ ---- structopt-0.2.10/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ structopt-0.2.10/Cargo.toml 2018-06-21T11:27:09.518140+02:00 +--- structopt-0.2.15/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ structopt-0.2.15/Cargo.toml 2019-03-09T12:18:17.758487+01:00 @@ -33,8 +33,6 @@ debug = ["clap/debug"] default = ["clap/default"] diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8b17ec7 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-structopt