From 7b8d62f4e807d7ee35ea871e369cefc5ddb84423 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jun 24 2019 19:41:40 +0000 Subject: Update to 0.7.0 Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore index 61721e2..52e104c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /lab-0.6.0.crate +/lab-0.7.0.crate diff --git a/rust-lab.spec b/rust-lab.spec index a1a7d03..86a47f8 100644 --- a/rust-lab.spec +++ b/rust-lab.spec @@ -1,28 +1,32 @@ -# Generated by rust2rpm +# Generated by rust2rpm 10 %bcond_without check %global debug_package %{nil} %global crate lab Name: rust-%{crate} -Version: 0.6.0 -Release: 3%{?dist} +Version: 0.7.0 +Release: 1%{?dist} Summary: Tools for converting RGB colors to the CIE-L*a*b* color space +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/lab -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} +# Initial patched metadata +# * Update pretty_assertions to 0.6, https://github.com/TooManyBees/lab/pull/11 +Patch0: lab-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) -%endif -%global _description \ -Tools for converting RGB colors to the CIE-L*a*b* color space, and compating\ -differences in color. +%global _description %{expand: +Tools for converting RGB colors to the CIE-L*a*b* color space, and comparing +differences in color.} %description %{_description} @@ -53,9 +57,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 @@ -68,6 +75,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Mon Jun 24 21:39:56 CEST 2019 Igor Gnatenko - 0.7.0-1 +- Update to 0.7.0 + * Sat Feb 02 2019 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index f38306e..3b46a22 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lab-0.6.0.crate) = 431a8491b96a57b896382e3338bd3a3c9010d93b470ef92e02256fa09342cbe1988695adc4c15f9f8922e192fcdccb3d8b65f5f5e968ce955ae117e17cbdf535 +SHA512 (lab-0.7.0.crate) = eba2a01fae7a3fb5e4231ae09020d1574efcfe2dd53e9e053e28567a305783a58d6c03605220016279636b82b96ee8be01acf0d74a80e457b909692287d79f8a 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..d5fc7fd --- /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-lab