From 2283d0c340e4df44bd32b3b4b76685162cd59b5e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 23 Jun 2019 11:38:17 +0200 Subject: [PATCH] Regenerate Signed-off-by: Igor Gnatenko --- encoding-index-korean-fix-metadata.diff | 4 ++-- rust-encoding-index-korean.spec | 27 +++++++++++++++---------- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 ++++++++++++ 5 files changed, 37 insertions(+), 13 deletions(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/encoding-index-korean-fix-metadata.diff b/encoding-index-korean-fix-metadata.diff index fcfc22a..9328dae 100644 --- a/encoding-index-korean-fix-metadata.diff +++ b/encoding-index-korean-fix-metadata.diff @@ -1,5 +1,5 @@ ---- encoding-index-korean-1.20141219.5/Cargo.toml 2015-04-14T03:31:07+02:00 -+++ encoding-index-korean-1.20141219.5/Cargo.toml 2018-11-03T14:55:49.015692+01:00 +--- encoding-index-korean-1.20141219.5/Cargo.toml 2015-04-14T01:31:07+00:00 ++++ encoding-index-korean-1.20141219.5/Cargo.toml 2019-06-23T09:37:47.639935+00:00 @@ -12,7 +12,6 @@ name = "encoding_index_korean" path = "lib.rs" diff --git a/rust-encoding-index-korean.spec b/rust-encoding-index-korean.spec index 5e5b89e..e494392 100644 --- a/rust-encoding-index-korean.spec +++ b/rust-encoding-index-korean.spec @@ -1,34 +1,33 @@ -# Generated by rust2rpm -# Tests require nightly compiler -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate encoding-index-korean Name: rust-%{crate} Version: 1.20141219.5 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Index tables for Korean character encodings # Upstream license specification: CC0-1.0 # https://github.com/lifthrasiir/rust-encoding/issues/111 License: CC0 URL: https://crates.io/crates/encoding-index-korean -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No paths # * Make dev-dependency as dev one Patch0: encoding-index-korean-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: (crate(encoding_index_tests/default) >= 0.1.4 with crate(encoding_index_tests/default) < 0.2.0) -%endif -%global _description \ -Index tables for Korean character encodings. +%global _description %{expand: +Index tables for Korean character encodings.} %description %{_description} @@ -57,9 +56,12 @@ 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 +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -72,6 +74,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 23 11:37:47 CEST 2019 Igor Gnatenko - 1.20141219.5-7 +- Regenerate + * Sat Feb 02 2019 Fedora Release Engineering - 1.20141219.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild 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..6367896 --- /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-encoding-index-korean