diff --git a/.gitignore b/.gitignore index 49e9f69..9fdad85 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /unindent-0.1.2.crate /unindent-0.1.3.crate +/unindent-0.1.4.crate diff --git a/rust-unindent.spec b/rust-unindent.spec index d45381b..a4a8355 100644 --- a/rust-unindent.spec +++ b/rust-unindent.spec @@ -1,25 +1,28 @@ -# Generated by rust2rpm +# Generated by rust2rpm 10 %bcond_without check %global debug_package %{nil} %global crate unindent Name: rust-%{crate} -Version: 0.1.3 -Release: 5%{?dist} +Version: 0.1.4 +Release: 1%{?dist} Summary: Remove a column of leading whitespace from a string -# Upstream license specification: MIT/Apache-2.0 +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/unindent -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%global _description \ -Remove a column of leading whitespace from a string. +%global _description %{expand: +Remove a column of leading whitespace from a string.} %description %{_description} @@ -50,9 +53,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 @@ -65,6 +71,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Aug 18 11:35:01 CEST 2019 Igor Gnatenko - 0.1.4-1 +- Update to 0.1.4 + * Fri Jul 26 2019 Fedora Release Engineering - 0.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index de64b34..9bc0acb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (unindent-0.1.3.crate) = 76a0f77bcb56b67bd4f8996f0e8f4f8988335c42c3848895271ee8c3014f90b893e5da1fba503180c4344f4bb015107b3e9c3412ef376490c8da72ff60e2a02c +SHA512 (unindent-0.1.4.crate) = 1c6fc9d85327b3329881e440d8191ebafbf3bc48e1874e6af42488bdf21512f7c3f381bab8e925261ced4bc43398c57d4a848b0f4dbac7ccd6788e6fb1f37dc9 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..0aba612 --- /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-unindent