diff --git a/rust-structopt-derive.spec b/rust-structopt-derive.spec index edbd46c..4a6ac76 100644 --- a/rust-structopt-derive.spec +++ b/rust-structopt-derive.spec @@ -1,18 +1,21 @@ # Generated by rust2rpm -%bcond_without check +%bcond_with check %global debug_package %{nil} %global crate structopt-derive 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, derive crate # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/structopt-derive -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} +# Initial patched metadata +# * No nightly +Patch0: structopt-derive-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -53,7 +56,7 @@ which use "default" 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 @@ -68,6 +71,9 @@ which use "default" 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-derive-fix-metadata.diff b/structopt-derive-fix-metadata.diff new file mode 100644 index 0000000..f674414 --- /dev/null +++ b/structopt-derive-fix-metadata.diff @@ -0,0 +1,11 @@ +--- structopt-derive-0.2.15/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ structopt-derive-0.2.15/Cargo.toml 2019-03-09T12:16:49.631467+01:00 +@@ -34,8 +34,5 @@ + + [dependencies.syn] + version = "0.15" +- +-[features] +-nightly = ["proc-macro2/nightly"] + [badges.travis-ci] + repository = "TeXitoi/structopt" 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..d3435d5 --- /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-derive